[FFmpeg-user] -map and matroska files

Marios Titas redneb8888 at gmail.com
Fri Nov 11 03:54:25 CET 2011

You are right, adding the -sn option solved the problem. This doesn't
make much sense to me though. I think it would be more reasonable for
ffmpeg to assume that I don't want the subtitles since I did not
explicitly included them in my stream mappings. It does do that for
the other audio streams, why not for the subtitles too?

On Thu, Nov 10, 2011 at 21:19, James Darnley <james.darnley at gmail.com> wrote:
> On 2011-11-11 03:12, Marios Titas wrote:
>> Hi all,
>> I have a video file with multiple audio streams and I want to select
>> one of them. I did
>>     ffmpeg -i input.mkv -map 0.0 -map 0.2 -y output.avi
>> to select streams 0 (the video) and 2 (the desired audio stream) and
>> this works fine. But if I try to output to matroska, ie
>>     ffmpeg -i input.mkv -map 0.0 -map 0.2 -y output.mkv
>> this fails with the following error:
>>     Number of stream maps must match number of output streams
>> Why is this happening?
> Without the uncut output, we can never really know, but a guess leads me to
> think that you are not accounting for subtitles.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

More information about the ffmpeg-user mailing list