From: Oleg Broytman Date: Tue, 4 Nov 2014 00:29:04 +0000 (+0300) Subject: Add codecs x264, x264-hq and x264-vhq X-Git-Url: https://git.phdru.name/?p=audio-cdr-video.git;a=commitdiff_plain;h=4bf1fbe80c6469b0de13a4235ccc276e0805215e Add codecs x264, x264-hq and x264-vhq --- 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"