[MPlayer-dev-eng] [PATCH] Online audio stream switching

Michael Behrisch list at behrisch.de
Wed May 11 07:19:28 CEST 2005


Am Sonntag, 8. Mai 2005 17:27 schrieb Guillaume POIRIER:
> When I switch back and forth between both tracks, the "original" one
> is always fine, and the "alternate" one is all funny, like if the
> audio encoding process had failed.

OK, Rich has warned me that this is going to happen. The vorbis streams 
have different headers which result in different decoding options needed
for the streams. Nevertheless fix is attached, although the matroska
people should say whether they consider calling mkv_open_audio
for all vorbis streams (in case the initial stream is vorbis) a bad hack.

Switching is now only possible if the codebook headers match
(which was the case in all my examples because I choose the same encoding 
options for all audio streams, but not in yours)

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: switch_audio_mkv_fix.diff
Type: text/x-diff
Size: 1760 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050511/504aba93/attachment.diff>


More information about the MPlayer-dev-eng mailing list