Log in

View Full Version : ffmpeg - audio mapping to create an mpeg2 with 2 channels audio


Santa
23rd April 2010, 09:02
I have a 9 streams file as input:
0 = video
1 to 9 = audio (each stream contains a mono channel)

i want to make an encoding which create an mpeg2 file with 2 streams:

0 = video
1 = stereo channel

where the stereo channel is intended to be:
1.0 (left) = source stream 1
1.1 (right) = source stream 2


is it possible to do with ffmpeg?
how can i do it (I'm using it under windows xp, and I use the command line version)

J_Darnley
24th April 2010, 10:37
No, ffmpeg has no feature to let you arbitrarily mix channels let alone mix different audio streams. I would suggest sox for this. Something like: sox --combine merge LEFT_FILE RIGHT_FILE OUTPUT