[FFmpeg-user] ffmpeg optimization question:

Paul B Mahol onemda at gmail.com
Tue Jul 23 23:37:31 CEST 2013


On 7/23/13, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> 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.

Decoding overhead is irrelevant here. He is encoding video twice
and that drops quality even more....


More information about the ffmpeg-user mailing list