[FFmpeg-user] multiple inputs into a single frame

JULIAN GARDNER joolzg at btinternet.com
Wed Sep 19 00:01:51 CEST 2012








>________________________________
> From: Mark Himsley <mark at mdsh.com>
>To: FFmpeg user questions <ffmpeg-user at ffmpeg.org> 
>Sent: Tuesday, 18 September 2012, 23:29
>Subject: Re: [FFmpeg-user] multiple inputs into a single frame
> 
>On 18/09/2012 20:58, JULIAN GARDNER wrote:
>> Ok im trying to take 3 videos and produce a single video with all 3 side by side, with no audio
>> 
>> I took a demo command line for 2 videos and tried adding a 3rd but i get an error stating the video is out of range
>> 
>> 2 across
>> ffmpeg -i 1.avi -vf "[in] scale=128:128, pad=720:576 [left]; movie=3.avi, scale=128:128 [right]; [left][right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.t
>> 
>> 3 across
>> ffmpeg.exe -i 1.ts -vf "[in] scale=128:128, pad=720:576 [left]; movie=2.ts, scale=128:128 [middle]; movie=2.ts, scale=128:128 [right]; [left][middle] overlay=160:16, [right] overlay=204:16 [out]" -r 25 -vcodec libx264 -b:v 768k -f mpegts -y a.ts
>
>This works for me, with git head from the day-before-yesterday.
>
>ffmpeg -i one.mov -i two.mov -i three.mov -filter_complex "[0]
>scale=426:720:interl=1,pad=1280:720:0:0 [a]; [1] scale=426:720:interl=1
>[b]; [2] scale=426:720:interl=1 [c]; [a][b] overlay=426:0 [d];[d][c]
>overlay=852:0" -an -aspect 16:9 -y ~/output.mov
>
>Enjoy ;-)
>
>-- 
>Mark
>
>

Thanks, worked it out just as your post came through.

joolz



More information about the ffmpeg-user mailing list