[MPlayer-users] switch_audio on *.ts files
    RVM 
    rvm3000 at ya.com
       
    Thu Jun 18 03:59:08 CEST 2009
    
    
  
Tested with MPlayer SVN-r29355.
I've got a ts file with two audio tracks, reported this way by mplayer:
ID_AUDIO_ID=1403
ID_AUDIO_ID=1402
If I try to change the audio track with the switch_audio command, using the ID 
as parameter (1402 or 1403), it doesn't work, the audio doesn't change. I have 
to use instead the numbers 0 and 1 (0 selects the first audio track, 1 the 
second).
But wouldn't be the correct to use the ID number?
I think to remember that at least for DVDs the ID was required.
This is what http://www.mplayerhq.hu/DOCS/tech/slave.txt says about it:
switch_audio [value] (currently MPEG*, AVI, Matroska and streams handled by 
libavformat)
    Switch to the audio track with the ID [value]. Cycle through the
    available tracks if [value] is omitted or negative.
BTW, there's another problem. Initially mplayer reports this:
ID_AID_1403_LANG=eng
ID_AID_1402_LANG=spa
But some lines below says this:
ID_AID_1403_LANG=spa
ID_AID_1402_LANG=spa
which is wrong.
Full log attached (and compressed, it's huge). BTW, is it necessary that those 
ID_VIDEO_ID and ID_AUDIO_ID lines appear so many times?
-- 
RVM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.txt.gz
Type: application/x-gzip
Size: 7631 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20090618/9708439d/attachment-0001.bin>
    
    
More information about the MPlayer-users
mailing list