[FFmpeg-user] Encode to Side by Side Video

Lou lou at lrcd.com
Wed May 30 21:18:07 CEST 2012


On Wed, 30 May 2012 17:49:19 +0000 (UTC)
Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Kyle <kshawkeye <at> gmail.com> writes:
> 
> > I'm wondering if FFmpeg can encode two different videos 
> > into one video that plays both side by side?
> 
> Did you try the video filter system?
> Overlay worked fine when I tried it once.
> 
> Carl Eugen

Overlay as Carl mentioned:
ffmpeg -i right.mp4 -filter:v "[in]setpts=PTS-STARTPTS,pad=iw*2:ih:iw:0,[T1]overlay=0:0[out];movie=left.mp4,setpts=PTS-STARTPTS[T1]" output

I haven't tested it in some time.


More information about the ffmpeg-user mailing list