[MPlayer-dev-eng] [PATCH] demux_ogg: add switch audio control

Moritz Bunkus moritz at bunkus.org
Fri Nov 11 09:53:25 CET 2005


Hey,

I do read the list, and I usually read all the threads whose topics
indicate that they might involve my files.

That being said...

There are two problems with OGM and audio switching. The first is that
in order to get all the necessary header packets the OGM demuxer must
read up to three packets (in case of Vorbis) for each audio stream. As
we want to support non-seeking streams all packets will have to be
buffered so that you won't have to seek back.

This should also allow for what Rich wants: finding the comment headers
which is the second header packet.

The second problem is that you must not switch audio tracks if the
Vorbis codec init packets don't match (third packet). The same might be
true for other audio codecs, e.g. AAC. The next problem is that
mplayer's demuxer layer only supports one stream of each kind (video,
audio). So you must not switch between different audio types either
(e.g. from Vorbis to AAC).

So in reality audio switching will not work all that often. Especially
not if you have one audio track with superb quality and e.g. director's
comments in mono or something like this.

Mosu

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20051111/d7859dff/attachment.pgp>


More information about the MPlayer-dev-eng mailing list