about summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2021-11-18 17:09:51 +0530
committerAndinus <andinus@nand.sh>2021-11-18 17:09:51 +0530
commitb1259dc7b9aba4831cd61bf3521708ec3089ed3c (patch)
tree70d4971f8c0f3a5c4405e15f53eb6c65d51200cc /lib
parent8af7ea1e0572870eb49e6a6784736a2ca803600e (diff)
downloadfornax-b1259dc7b9aba4831cd61bf3521708ec3089ed3c.tar.gz
Set default crf to 24
From https://trac.ffmpeg.org/wiki/Encode/H.265:

     The default is 28, and it should visually correspond to libx264
     video at CRF 23, but result in about half the file size.

This will result in larger videos. Maybe the default should be
libx265. I did try it, results in smaller videos but I wasn't able to
play the video on Firefox.
Diffstat (limited to 'lib')
-rw-r--r--lib/Fornax/CLI.rakumod2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Fornax/CLI.rakumod b/lib/Fornax/CLI.rakumod
index bac08ff..98f20a7 100644
--- a/lib/Fornax/CLI.rakumod
+++ b/lib/Fornax/CLI.rakumod
@@ -92,7 +92,7 @@ multi sub MAIN(
         my Str $log-level = $debug ?? "info" !! "error";
         run «ffmpeg -loglevel "$log-level" -r "$frame-rate" -i "$output/\%08d.png"
                     -vf 'tpad=stop_mode=clone:stop_duration=2'
-                    -vcodec libx264 -crf 28 -pix_fmt yuv420p "$output/solution.mp4"»;
+                    -vcodec libx264 -crf 24 -pix_fmt yuv420p "$output/solution.mp4"»;
     }
 }