Montag, 3. Oktober 2011

mplayer: switching between languages via lirc/remote

Do you love original languages but need the translation?

Well, mplayer is able to switch between audio tracks (e.g. languages) during playback together with lirc.
Opposite to mythtv and mythfrontend mplayer requires commands, not keystrokes. Also I noticed that sometimes with frequent changes mplayer likes get the hiccups - e.g. loosing audio completely or crashes.

But here is the solution. Edit the mplayer-related lirc file (which is /home/account/.lirc/mplayer) in mythbuntu and add a section:

begin
    remote = Technotrend
    prog = mplayer
    button = KEY_REPEAT
    config = switch_audio
    repeat = 0
    delay = 0
end

KEY_REPEAT is the remote key to be used to toggle between languages and defined in /etc/lircd.conf.

Keine Kommentare:

Kommentar veröffentlichen