[FFmpeg-user] Marge 2 videos (side by side)

Masud Rana masud.indeed at gmail.com
Thu Nov 26 22:23:37 CET 2015


Thanks so much. It works perfectly!!

On Thu, Nov 26, 2015 at 10:18 PM, Lou <lou at lrcd.com> wrote:

> On Thu, 26 Nov 2015 21:34:38 +0100
> Masud Rana <masud.indeed at gmail.com> wrote:
>
> > Dear support,
> > I am using the following command to marge 2 videos side by side.
> > ffmpeg -i  *left.mp4* -i  *right.mp4* -filter_complex
> > "[0:v:0]pad=iw*2:ih[bg]; [bg][1:v:0]overlay=w"
> > *output.mp4*
> >
> > Now my question is, how i can give a 10px white border or
> > space(horizontaly) in between 2 videos?
>
> "[0:v:0]pad=(iw*2)+10:ih:color=white[bg]; [bg][1:v:0]overlay=w+10"
>


More information about the ffmpeg-user mailing list