[FFmpeg-user] -map and matroska files

belcampo belcampo at zonnet.nl
Fri Nov 11 09:34:20 CET 2011


On 11/11/2011 03:54 AM, Marios Titas wrote:
> 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?
As .avi cannot contain subs it's automatically excluded. But other 
containers that can contain subs you have to explicitely define or 
exclude them.
>
>
> 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
>>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list