[FFmpeg-user] ffmpeg optimization question:
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Jul 23 22:05:17 CEST 2013
John Crossman <johncrossman <at> berkeley.edu> writes:
> 1. ffmpeg -i video1.mp4 -i *video2.mp4* -filter_complex
> "[1:v]pad=iw*2:ih[bg];[bg][0:v]overlay=W/2+((W/2-w)/2):(H-h)/2"
> -qscale:v 2 -strict -2 video3.mp4
> 2. ffmpeg -i video3.mp4 -acodec libmp3lame -ab 64k -ar 22050
> -r 25 -vcodec libx264 -level 41 -crf 20 -bufsize 20000k
> -maxrate 25000k -g 250 -s 1280x720 -coder 1 -subq 7
> -me_range 16 -keyint_min 25 -sc_threshold 40 final.mp4
>
> My question: How can I optimize the command #2 above?
Why are you using two commands?
Even if decoding is fast, it is certainly a huge overhead.
Carl Eugen
More information about the ffmpeg-user
mailing list