[FFmpeg-devel] MAX_STREAMS

Måns Rullgård mans
Sun Jun 21 16:28:57 CEST 2009

Derk-Jan Hartman <hartman at videolan.org> writes:

> On 21 jun 2009, at 06:47, Erik Van Grunderbeeck wrote:
>> Hello; Q:
>> Is the max stream count in avformat.h; currently set to 20; maxed
>> at 20 for a specific reason?
>> Reason I ask is that I have a DVD here (Pirates of the
>> Caribbean/The curse of the black pearl/special extended version)
>> that has 39 (yes, 39) streams in it.
>> A count shows 1 video stream, 6 audio streams, and 32 (?) subtitle
>> streams.  The 32 may actually be a encoding problem for this disk,
>> but what I did find out is that the id's from the first 7 subtitles
>> stream are not the ones that are "real" subtitle streams
>> (correlated this with the id information from the ifo file). Stream
>> 8 is the first "valid" sub title stream.
> Those first might be forced subtitle streams (can be multiple in
> modern DVDs and not yet supported by dvdread/dvdnav I think), subtitle
> streams for the directors comments etc. It sure does count up.

It is also possible have up to three alternative subtitle streams for
each language, one for each display mode (full-screen, letterbox,

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list