This is a simple wrapper for MPlayer to add support for language tags in OGM video files.
It also disables muxed subs when loading and external sub file, and downmixes 5.1 AAC.
Usage example: to enable japanese audio and english subtitles, call
mplayer.pl -alang jap -slang eng file.ogm
To make that the default selection, with fallback to spanish if japanese isn't found, add the following to your ~/.mplayer/config:
alang=jpn,spa
slang=eng
Note: The lang codes are case-insensive prefix matches, which are often, but not always, compatible with the ISO 639-2 codes used by DVD or Matroska.
mplayer.pl [...] file1.ogm file2.ogm uses the same -aid and -sid numbers for both videos.)