[vdr] mplayer.sh and AID 0
syphir at syphir.sytes.net
Thu Jun 30 00:12:30 CEST 2005
Juri Haberland wrote:
> "C.Y.M" <syphir at syphir.sytes.net> wrote:
>>>I was just debugging mplayer.sh because I could not get it to play a .vdr file
>>>with an audio track set to "0", then I realized that if the AID is set to 0, the
>>>mplayer plugin does not actually specify 0 for the AID track (it just leaves it
>>>blank). The following changes to mplayer.sh fix the problem.
> Yeah, I haven't implemented this yet and I might not do this in the
> future as mplayer now seems to be able to switch audio on the fly - this
> just needs to be supported by the mplayer-plugin (hint, hint!).
> This AID stuff has more problems of that kind that you encountered, too:
> If you have a VOB file with AC3 sound the audio ids are again different
> and if the VOB file has PCM audio you need a different aid again...
I think the main problem with the AID 0 is this line:
player-mplayer.c: if(MPlayerAid>0) snprintf(aid,sizeof(aid)," AID
So, if the AID is not > 0, it does not specify the ID.
It should be:
player-mplayer.c: if(MPlayerAid>=0) snprintf(aid,sizeof(aid)," AID
More information about the vdr