[MPlayer-dev-eng] [PATCH] Audio track switching not working for DVB TS

KS Ng - dmbth hk.dmbth at gmail.com
Fri Oct 1 13:33:53 CEST 2010


I have a sample clip which can demonstrate the problem, but 
unfortunately it has file size of over 3GB. It's characteristics is that 
there're 2 audio streams and no subtitle streams initially. Audio stream 
switching using the hotkey '#' basically works OK initially, with the 
respective OSD cycling through "Audio : (0) unknown", "Audio : (1) 
unknown" and "Audio : Disabled". However when it comes to a few minutes 
from the beginning, there're 2 subtitle streams added to the program, 
and from then onwards, hotkey "#" results in OSD display becomes "Audio 
: (2) unknown" and audio output is muted. It got stuck in "Audio : (2) 
unknown" with further pressing of "#", and it cannot cycle back to the 
other audio streams. Audio (2) stream is in fact one of the subtitle 
streams incorrectly added as audio stream.

There's no such problem if subtitle streams are present right at the 
beginning.

With my patch, the dynamically occurring subtitle streams at least are 
not treated as audio, and the "#" key will cycle through audio 0, 1 and 
disabled, though subtitle does not function - they're not displayed even 
though the hotkey "j" cycles through subtitle 0 & 1, but this is another 
issue not related to my patch.

Audio stream switching functions correctly with the lavf demuxer, i.e. 
with option "-demuxer lavf".

I've tried to extract a small portion of my clip using ffmpeg, but up to 
now, I have no success to include the subtitle streams which do not 
occur at the beginning. Without the subtitle tracks, my problem cannot 
be demonstrated.

Regards,
K.S. Ng


More information about the MPlayer-dev-eng mailing list