[FFmpeg-user] amerge multiple inputs with filter_complex

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jan 31 11:14:13 CET 2013


Madovsky <infos <at> madovsky.org> writes:

> ffmpeg -loop 1 -an -i neterviewBack.png -i stream11.mp4 

(Please remove "-an": I believe it makes no difference 
for your use case but I initially wondered if FFmpeg 
processes audio at all with your sample command line.)

Your "original" input is indefinitely long.

> -i stream22.mp4 -filter_complex "[1:1][2:1]amerge[audio]; 
> [0:0][1:0]overlay=(main_w-640)/2:(main_h-240)/2[left]; 
> [left][2:0]overlay=((main_w-640)/2)+320:(main_h-240)/2" 
> -map '[audio]' output.mp4

[...]

>   Duration: 00:02:27.24, start: 0.023220, bitrate: 353 kb/s

Your first overlay is 2:27

>   Duration: 00:02:30.81, start: 0.023220, bitrate: 288 kb/s

Your second overlay is 2:30

You will have to add a "-t" option to your command line if 
you don't want your output file to have infinite length.
(Try -t 2:27)

Carl Eugen



More information about the ffmpeg-user mailing list