LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mplayer with multiple audio languages (https://www.linuxquestions.org/questions/linux-newbie-8/mplayer-with-multiple-audio-languages-450663/)

Whiskerz 06-01-2006 02:43 PM

Mplayer with multiple audio languages
 
Hi!

I am currently using mplayer as my video player and ever so often theres an ogm video file I want to play. However up to now I have not been able to really find out which ID maps to which language short of trying every available audio ID. If I use
Code:

mplayer -identify
all I get is something like

...
ID_VIDEO_ID=0
[Ogg] stream 0: video (FOURCC DX50), -vid 0
ID_AUDIO_ID=0
[Ogg] stream 1: audio (Vorbis), -aid 0
ID_AUDIO_ID=1
[Ogg] stream 2: audio (Vorbis), -aid 1
[Ogg] stream 3: subtitles (SRT-like text subtitles), -sid 0
ID_SUBTITLE_ID=0
...
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
ID_AID_0_LANG=English
ID_SID_0_LANG=English
[Ogg] Language for -sid 0 is '-slang "English"'
...

so I know the language of the default track (or whatever track I selected using -aid), but not of all the other tracks. Anyone know a way to find out which ID corresponds to which language without going through all -aid possibilities?

Regards

Whizz

Linux~Powered 06-01-2006 10:37 PM

mplayer -aid 128 works for me

Whiskerz 06-11-2006 03:29 PM

Did a few tests with different files and different options, and it seems that Matroska files display information on the language of the different audio and subtitle tracks, however every .ogm file I tried I only got the selected audio and subtitle to display information other than its id.

Anybody have an idea what this might be?

Regards

Whizz

noware 07-26-2006 04:06 AM

Try to increase the verbosity level of mplayer (mplayer -v something.ogm) or use the -msglevel option. They might help.


All times are GMT -5. The time now is 07:32 AM.