Joined: Feb. 2007
||Posted: Mar. 11 2008,17:57
I haven't used the mplayer extension in DSL but I just installed it in Debian. I noticed that it didn't automatically do anything for any MIME-types -- e.g., using "gmplayer" as the command for playing a MPG resulted in an error box saying I didn't select a video output (-vo) option. So I wrote a quick wrapper (put in ~/bin and named myvideowrapper) that included x11 for output:
|Code Sample |
exec /path/to/mplayer -vo x11 "$@"
Then I did chmod u+x and added that as my default for mpg (also works for wmv) in firefox. Voila, it works. It also works as stand alone launcher if you want to use it in dfm for local video files. Use gmplayer instead of mplayer if you want the ugly looking GUI thing to control playback.
I also decided to try it on a local m3u and found I needed to set the -playlist tag. I just did the same thing with a saved pls playlist and with -playlist it connected right up to the Smooth Jazz Tampa Bay server:
ICY Info: StreamTitle='Metro - Metrocafe';StreamUrl='http://www.smoothjazztampabay.com'
So I've made another wrapper like the one above with -playlist for playlists that can be used in console or for firefox or opera, dfm, rox, etc.
myplaylistwrapper (chmod u+x)
|Code Sample |
exec /path/to/mplayer -playlist "$@"
I don't know if any of this will be helpful in getting mplayer to work for you, but it really helps to open things from console to get output and see where the problems might lie. Like I wrote above, I don't know if the DSL package includes scripts for various flags but that might be where the problem lies.
EDIT/Clarification: Using wrappers in dfm and rox isn't necessary if you have all your apps set up as you want them for MIME-types, but can still be useful if you want to open things in different ways (e.g., you could use a wrapper for mpg321 in or out of a terminal if xmms is your default for playing mp3 files and you want another option available).
Edit2: Posted shot to show it works.
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)