[FFmpeg-devel] [PATCH] Playlist API

Michael Niedermayer michaelni
Fri Aug 7 13:31:12 CEST 2009

m   On Thu, Aug 06, 2009 at 06:43:25PM -0400, Ronald S. Bultje wrote:
> Hi,
> On Thu, Aug 6, 2009 at 6:36 PM, Geza Kovacs<gkovacs at mit.edu> wrote:
> > streams[0] is primary video stream
> > streams[1] is primary audio stream
> > streams[2] is primary subtitle stream
> > streams[3] is alternative video stream
> > streams[4] is alternative audio stream
> > streams[5] is alternative subtitle stream
> Well, that makes no sense. It's too limiting in all aspects.
> Your problems comes very close to that of titles in a DVD/Bluray:
> trailers often have one video, but then the main movie might have
> mutli-angle ideo, multi-language subtitles/audiostreams, etc. The
> codecs can be different between titles (LPCM for the main concert, but
> simple ac3 for the trailers, or whatever; for BR, the video codec
> might change also).
> The solution to the.problem of "how do I support multiple streams in a
> playlist" and "how do I support multiple titles in a DVD/BR disc" is
> likely the same, and I don't know if hacking AVFormatContext is the
> right way forward...

yes, thats my oppinion as well
also, i should point at AVStream.disposition & AV_DISPOSITION_DEFAULT
that indicates primary stream, that is the one that should be played
given no reason to do otherwise.
and it would certainly be possible to add a new field to AVStream to
indicate which streams belong together, but 2 streams with differing
codecs must not use the same stream id

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090807/bab403da/attachment.pgp>

More information about the ffmpeg-devel mailing list