Topic: Streaming Media
started by: trico1
Posted by trico1 on Mar. 09 2008,20:31How do you play the following types of streaming media in Linux?
.wax, .m3u, mms, .rm
I would like to be able to listen to my favorite online radio stations and they use these different protocols.
Also, how do you get Firefox to recognize them and know what to do?
Posted by lucky13 on Mar. 09 2008,21:25You need the appropriate plugin for each type of media content. You can set each MIME-type up in the content section of Firefox' preferences (edit-preferences).
Posted by curaga on Mar. 10 2008,15:21.m3u is just a playlist, you feed it to a player as one, such as "mpg123 -@ list.m3u"
Posted by trico1 on Mar. 10 2008,15:50
When I clicked on an .m3u link on a web page, it started the mplayer application but it froze my computer. I couldn't do anything and I had to turn it off and back on again.
The same thing happens when I play other online streaming media.
What could be causing this?
Posted by lucky13 on Mar. 10 2008,16:30Improper set up? Are you using mplayer console but not opening in a terminal? I don't know if that would freeze it or not. If that's your intention (to not open up all the skinned GUI apps), you may need to write a shell wrapper and then use it for whichever MIME types (I do that with various console apps).
Most online streams will be pls or icecast, not m3u playlists. I haven't tried playing m3u playlists online (much less with mplayer -- which is not in the base so this question probably belongs in extensions), but I would think xmms would do just fine with those.
Posted by trico1 on Mar. 10 2008,17:20
I'm using the gui version of mplayer and xmms also freezes the computer.
Posted by lucky13 on Mar. 10 2008,20:38
Do you have xmms properly configured? Have you tried playing a local mp3 or ogg to make sure? Have you tried launching xmms with a URI to whichever website? I don't know if xmms will play remote m3us (unless maybe they include an accurate URI for each file in them) but xmms works perfectly fine for me in DSL for pls streams. Playing Real Media files in Linux requires proprietary codecs and/or Helix player from Real. I have no idea if Windows wax codecs are available for Linux but my guess is they aren't -- probably not for xmms anyway. Have you checked for pls streams of the stuff you're interested in listening to?
Posted by WDef on Mar. 11 2008,00:00Load codecpak.dsl if using the old mplayer.dsl or mplayer-1.0pre8.uci to get the realmedia codecs.
You might like to post the link to the radio stream you want so we can get try to get it working for you.
OR easier: you could try the realpalyer uci from the uci section of the extensions repo.
Posted by lucky13 on Mar. 11 2008,17:57I 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:
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)
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.
< http://lucky13linux.wordpress.com/2008/03/11/553/ >