diff options
author | Andinus <andinus@nand.sh> | 2021-11-18 17:09:51 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2021-11-18 17:09:51 +0530 |
commit | b1259dc7b9aba4831cd61bf3521708ec3089ed3c (patch) | |
tree | 70d4971f8c0f3a5c4405e15f53eb6c65d51200cc | |
parent | 8af7ea1e0572870eb49e6a6784736a2ca803600e (diff) | |
download | fornax-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.
-rw-r--r-- | lib/Fornax/CLI.rakumod | 2 |
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"»; } } |