[MPlayer-users] Two audio tracks to different devices

Roman Odaisky roma at qwertty.com
Sun Feb 8 12:37:00 CET 2009


Greetings,

How is it possible to play several audio tracks at once, sending each to a 
separate ALSA device? Something like

mplayer -aid 1 -ao alsa:device=headphones -aid 2 -ao 
alsa:device=speakers /srv/video/movie.mkv

I want to be able to watch a film in its original language while other family 
members would also be interested in the film but would prefer the track in 
their native language.

A solution that should work would be to use SMPlayer, have it run a script 
rather than /usr/bin/mplayer, have the script spawn two slave MPlayers and 
tee the commands to both while choosing different audio tracks and having one 
of the MPlayers show no video. Are there any less ugly solutions that would 
allow pausing, seeking and so on?

-- 
TIA
Roman.


More information about the MPlayer-users mailing list