2012-06-09, 07:09
I have a bit of media that doesn't play correctly on the XBMC player and on those occasions I just SSH in and watch them by starting mplayer from the command line with any needed options to watch them correctly. To do that I have to go into the settings and change the audio output device in order to unblock it for use by mplayer.
I would like to know if it is possible from the command line so I can script it.
Something like
#!/bin/bash
(command to change output)
export DISPLAY=:0
mplayer -fs -ao etc...
(cammand to change output back)
I would like to know if it is possible from the command line so I can script it.
Something like
#!/bin/bash
(command to change output)
export DISPLAY=:0
mplayer -fs -ao etc...
(cammand to change output back)