[FFmpeg-user] multple video filters in a single pass

gheine at mathnmaps.com gheine at mathnmaps.com
Tue Mar 5 17:48:01 CET 2013

Carl, thanks for the suggestion.
The following works:

ffmpeg -i IMG_0036.MOV -i bg.mkv -filter_complex "[0:v] 
scale=480:270,transpose=2[front]; [1:v][front] overlay=(W-w)/2:0 " 
-acodec copy out.mkv

bg.mkv needs to be at least as long as the main video; otherwise the 
latter will truncate, and ffmpeg will give lots of buffer-overflow 

On 2013-03-04 17:23, Carl Eugen Hoyos wrote:
> <gheine <at> mathnmaps.com> writes:
>> ffmpeg -i IMG_0036.MOV -i bg.mkv -vf:0:v
>> "scale=480:270,transpose=2[out]" -filter_complex
>> '[1:v] scale=480:270, transpose=2[new]; [1:v][new]overlay=0:0'
>> -acodec copy output.mkv
> I strongly suspect that you should try hard to avoid using
> both -vf and -filter_complex in one command line.
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

More information about the ffmpeg-user mailing list