Discussion:
[FFmpeg-user] Merge 2 Video + Audio files in a single file side by side.
m***@amultek.com
2015-05-19 11:04:33 UTC
Permalink
Hi...

I need some help :)

I need to merge 2 video files along with their audio in single file side by
side.

I am able to merge 2 video files in single file but it using audio of first
video file only, where as i need to merge audio of second file as well.

below is command i am using to do that.


`ffmpeg.exe -i input1.webm -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left];
movie=input2.webm, scale=iw/2:ih/2 [right]; [left][right] overlay=main
_w/2:0 [out]" -b:v 768k ouput.webm`

i have tried various way with `amerge` but no success. As I am new to
FFMpeg, i am not sure how can i achieve this.

Please please help me on this.

Thanks in Advance.



--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Merge-2-Video-Audio-files-in-a-single-file-side-by-side-tp4670537.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
Lou
2015-05-19 19:00:49 UTC
Permalink
Post by m***@amultek.com
Hi...
I need some help :)
I need to merge 2 video files along with their audio in single file side by
side.
I am able to merge 2 video files in single file but it using audio of first
video file only, where as i need to merge audio of second file as well.
below is command i am using to do that.
`ffmpeg.exe -i input1.webm -vf "[in] scale=iw/2:ih/2, pad=2*iw:ih [left];
movie=input2.webm, scale=iw/2:ih/2 [right]; [left][right] overlay=main
_w/2:0 [out]" -b:v 768k ouput.webm`
Of course you're expected to show the complete console output from your
command.
Moritz Barsnick
2015-05-19 22:27:23 UTC
Permalink
Post by m***@amultek.com
I am able to merge 2 video files in single file but it using audio of first
video file only, where as i need to merge audio of second file as well.
[...]
Post by m***@amultek.com
i have tried various way with `amerge` but no success. As I am new to
FFMpeg, i am not sure how can i achieve this.
You are not being quite clear on what you mean by merging. On the wiki,
there are a few examples with explanitory graphs. I think you mean some
mixing either like this:
https://trac.ffmpeg.org/wiki/AudioChannelManipulation#a2monostereo
or like this:
https://trac.ffmpeg.org/wiki/AudioChannelManipulation#a2stereostereo

Does that help you? If not, what are you trying to achieve exactly?

Cheers,
Moritz

Loading...