From 4bf1fbe80c6469b0de13a4235ccc276e0805215e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 4 Nov 2014 03:29:04 +0300 Subject: [PATCH] Add codecs x264, x264-hq and x264-vhq --- video/ff_encode | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/video/ff_encode b/video/ff_encode index c838f97..2306f8c 100755 --- a/video/ff_encode +++ b/video/ff_encode @@ -44,6 +44,20 @@ if [ "$vcodec" = mpeg4-hq ]; then vopts="-mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2" fi +if [ "$vcodec" = x264 ]; then + vcodec=libx264 +fi + +if [ "$vcodec" = x264-hq ]; then + vcodec=libx264 + vopts="-preset slow" +fi + +if [ "$vcodec" = x264-vhq ]; then + vcodec=libx264 + vopts="-preset veryslow" +fi + if [ "$pass" -eq 1 ]; then exec ffmpeg $input_opts -i "$input" -c:v "$vcodec" $vopts $vscale -b:v "$vbitrate" -g 300 -bf 2 -c:a "$acodec" -b:a "$abitrate" $output_opts "$output" -- 2.39.5