[MPlayer-dev-eng] [PATCH] dvdnav - partial REVIEW

elupus elupus at ecce.se
Tue May 23 15:30:38 CEST 2006


> 
> dvdnav_get_audio_attr()
> dvdnav_get_spu_attr()
> These sherve to the mplayer can query the audio, spu language code and
> the audio type (stereo, 5.1, dolby digital, etc.).
> 
> New functions sice my last post to devel mail list:
> dvdnav_get_active_audio_stream()
> dvdnav_get_active_spu_stream()
> If menu spu id not default then mplayer query the spu id 
> that's way mplayer

I'm not sure if you already found this out, but something that took me a
while to figure out, is that the physical audio/spu stream does have a
direct connection to the mpeg stream id without the need to figure out type
from libdvdnav. 

If you use the lower 5 bits (3 for audio), of the mpeg stream id (128 & 0x07
= 0 for ac3...) you get a direct one to one connection. You don't need to
get the type of stream from the navigator. There is never one stream with id
128 (ac3) and then one 160 (lpcm), always 128, then 161.. 

I'm not sure this is valid for non dvd mpeg's, but I have a feeling it still
is. So it might even be worth using that mask directly in the demuxer.

/Joakim






More information about the MPlayer-dev-eng mailing list