Skip to content

Commit

Permalink
Better mp4
Browse files Browse the repository at this point in the history
  • Loading branch information
richmit committed Aug 15, 2024
1 parent 8f02ba3 commit 40eef76
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 39 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/old-media

/paraview/*_lossless.webm
paraview/*_crf01.mp4

/paraview/lorenz_rot_100_lossless.webm
/paraview/lorenz_rot_100_crf30.webm
Expand All @@ -23,3 +24,4 @@ lib/tmp.cpp
zzz_tbd_*

/README.html
/paraview/readme.html
18 changes: 9 additions & 9 deletions docs/func-viz/func-viz.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 26 additions & 26 deletions docs/func-viz/func-viz.org
Original file line number Diff line number Diff line change
Expand Up @@ -2036,40 +2036,40 @@ done
#+RESULTS:
#+begin_example
Processing Example complex_magnitude_surface
make media/complex_magnitude_surface_rot_100_crf30.html
make media/complex_magnitude_surface_rot_25_crf30.html
make media/complex_magnitude_surface_rot_50_crf30.html
skip media/complex_magnitude_surface_rot_100_crf30.html
skip media/complex_magnitude_surface_rot_25_crf30.html
skip media/complex_magnitude_surface_rot_50_crf30.html
Processing Example implicit_surface
make media/implicit_surface_rot_100_crf30.html
make media/implicit_surface_rot_25_crf30.html
make media/implicit_surface_rot_50_crf30.html
skip media/implicit_surface_rot_100_crf30.html
skip media/implicit_surface_rot_25_crf30.html
skip media/implicit_surface_rot_50_crf30.html
Processing Example lorenz
make media/lorenz_rot_25_crf30.html
make media/lorenz_rot_50_crf30.html
skip media/lorenz_rot_25_crf30.html
skip media/lorenz_rot_50_crf30.html
Processing Example trefoil
make media/trefoil_rot_100_crf30.html
make media/trefoil_rot_25_crf30.html
make media/trefoil_rot_50_crf30.html
skip media/trefoil_rot_100_crf30.html
skip media/trefoil_rot_25_crf30.html
skip media/trefoil_rot_50_crf30.html
Processing Example parametric_curve_3d
make media/parametric_curve_3d_rot_100_crf30.html
make media/parametric_curve_3d_rot_25_crf30.html
make media/parametric_curve_3d_rot_50_crf30.html
skip media/parametric_curve_3d_rot_100_crf30.html
skip media/parametric_curve_3d_rot_25_crf30.html
skip media/parametric_curve_3d_rot_50_crf30.html
Processing Example surface_plot_corner
make media/surface_plot_corner_rot_100_crf30.html
make media/surface_plot_corner_rot_25_crf30.html
make media/surface_plot_corner_rot_50_crf30.html
skip media/surface_plot_corner_rot_100_crf30.html
skip media/surface_plot_corner_rot_25_crf30.html
skip media/surface_plot_corner_rot_50_crf30.html
Processing Example ear_surface
make media/ear_surface_rot_100_crf30.html
make media/ear_surface_rot_25_crf30.html
make media/ear_surface_rot_50_crf30.html
skip media/ear_surface_rot_100_crf30.html
skip media/ear_surface_rot_25_crf30.html
skip media/ear_surface_rot_50_crf30.html
Processing Example surface_plot_annular_edge
make media/surface_plot_annular_edge_rot_100_crf30.html
make media/surface_plot_annular_edge_rot_25_crf30.html
make media/surface_plot_annular_edge_rot_50_crf30.html
skip media/surface_plot_annular_edge_rot_100_crf30.html
skip media/surface_plot_annular_edge_rot_25_crf30.html
skip media/surface_plot_annular_edge_rot_50_crf30.html
Processing Example holy_wave_surf
make media/holy_wave_surf_rot_100_crf30.html
make media/holy_wave_surf_rot_25_crf30.html
make media/holy_wave_surf_rot_50_crf30.html
skip media/holy_wave_surf_rot_100_crf30.html
skip media/holy_wave_surf_rot_25_crf30.html
skip media/holy_wave_surf_rot_50_crf30.html
#+end_example

* xx :noexport:
Expand Down
Binary file removed paraview/holy_wave_surf_rot_100.mp4
Binary file not shown.
Binary file added paraview/holy_wave_surf_rot_100_crf30.mp4
Binary file not shown.
Binary file removed paraview/holy_wave_surf_rot_25.mp4
Binary file not shown.
Binary file added paraview/holy_wave_surf_rot_25_crf30.mp4
Binary file not shown.
Binary file removed paraview/holy_wave_surf_rot_50.mp4
Binary file not shown.
Binary file added paraview/holy_wave_surf_rot_50_crf30.mp4
Binary file not shown.
12 changes: 8 additions & 4 deletions paraview/readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ magick -delay 1 -loop 0 -dispose previous ../old-media/sq_ear_surface_rot.????.p
#+begin_src sh
# for f in surface_plot_annular_edge_rot.*.png { echo $f; magick $f -gravity center -crop 1665x1665+0+0 +repage -rotate -90 ../old-media/$f }

ffmpeg -y -framerate 15 -i ../old-media/surface_plot_annular_edge_rot.%4d.png -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" -pix_fmt yuv420p surface_plot_annular_edge_rot_100.mp4;
ffmpeg -y -framerate 15 -i ../old-media/surface_plot_annular_edge_rot.%4d.png -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -pix_fmt yuv420p surface_plot_annular_edge_rot_100.mp4;
ffmpeg -y -framerate 15 -i ../old-media/surface_plot_annular_edge_rot.%4d.png -vf "scale=trunc(iw/4)*2:trunc(ih/4)*4" -pix_fmt yuv420p surface_plot_annular_edge_rot_50.mp4;
ffmpeg -y -framerate 15 -i ../old-media/surface_plot_annular_edge_rot.%4d.png -vf "scale=trunc(iw/8)*2:trunc(ih/8)*8" -pix_fmt yuv420p surface_plot_annular_edge_rot_25.mp4;

Expand All @@ -190,9 +190,13 @@ magick -delay 1 -loop 0 -dispose previous ../old-media/surface_plot_annular_edge
* holy_wave_surf_rot

#+begin_src sh
ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" -pix_fmt yuv420p holy_wave_surf_rot_100.mp4;
ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/4)*2:trunc(ih/4)*4" -pix_fmt yuv420p holy_wave_surf_rot_50.mp4;
ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/8)*2:trunc(ih/8)*8" -pix_fmt yuv420p holy_wave_surf_rot_25.mp4;

ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -crf 30 -b:v 0 -pix_fmt yuv420p holy_wave_surf_rot_100_crf30.mp4;
ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libx264 -crf 3 -b:v 0 -pix_fmt yuv420p holy_wave_surf_rot_100_crf01.mp4;
ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" -c:v libx264 -crf 30 -b:v 0 -pix_fmt yuv420p holy_wave_surf_rot_50_crf30.mp4;
ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/4)*2:trunc(ih/4)*2" -c:v libx264 -crf 3 -b:v 0 -pix_fmt yuv420p holy_wave_surf_rot_50_crf01.mp4;
ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/8)*2:trunc(ih/8)*2" -c:v libx264 -crf 30 -b:v 0 -pix_fmt yuv420p holy_wave_surf_rot_25_crf30.mp4;
ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/8)*2:trunc(ih/8)*2" -c:v libx264 -crf 3 -b:v 0 -pix_fmt yuv420p holy_wave_surf_rot_25_crf01.mp4;

ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libvpx-vp9 -lossless 1 -c:a libopus holy_wave_surf_rot_100_lossless.webm;
ffmpeg -y -framerate 15 -i ../old-media/holy_wave_surf_rot.%4d.png -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" -c:v libvpx-vp9 -crf 30 -b:v 0 -c:a libopus holy_wave_surf_rot_100_crf30.webm;
Expand Down
Binary file modified paraview/surface_plot_annular_edge_rot_100.mp4
Binary file not shown.

0 comments on commit 40eef76

Please sign in to comment.