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

Lou lou at lrcd.com
Thu Nov 26 22:18:30 CET 2015


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