-
command line audio stream selection?
I have an mxf file from a canon camcorder. It contains 1 video stream and 2 audio streams corresponding to left and right channel. My video editor (an old version of premiere) cannot read this file, so I have to demux it into video and audio files. I have no problem with the video and first audio stream.
To extract the 2nd audio channel, I can do
ffmpeg -i input.mxf -map 0:2 -acodec copy out2.wav
I also read that you can put stream specifier on the option, so i tried
ffmpeg -i input.mxf -codec:a:2 copy out2.wav
This doesn’t work. I get the first audio stream. What am I misunderstanding?
I’m trying to understand ffmpeg better because I have more advance operations in mind (e.g. re-package the mxf file into a file that premiere cs4 can read).