[FFmpeg-user] Side-by-side frames

Lou lou at lrcd.com
Wed Feb 15 21:36:58 CET 2012


On Wed, 15 Feb 2012 04:05:58 -0800 (PST)
dcoffey3296 <dan_coffey at harvard.edu> wrote:

> I am trying to accomplish the same thing (side by side videos).  Is it
> possible to specify paramaters for shrinking/modifying both videos to be
> transcoded side by side or must i transcode the overlay first?
> 
> Also, do you have an example command or 2 of how you use pad and overlay to
> place 2 videos side by side?

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

Overlay syntax is confusing. Someone else might have a "cleaner"
example.

> Any advice is greatly appreciated!


More information about the ffmpeg-user mailing list