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.

mplayer.pl

Requires:
Perl
MPlayer (tested version: 1.0pre5)
ogminfo (tested version: 1.4)
mkvinfo (tested version: 0.94)

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.


To Do (hah!):
last updated: 2004-7-26