Realtime Audio Conversion And Serving 153
Hobadee writes "First of all, Happy Christmas and Merry New Year! This year for Christmas, my dad and I decided to give my mom a Linksys WMLS11B. (Radio which can play MP3 streams) Since my mom listens to a lot of international news radio on the Internet, we figured this would be great so that she wouldn't have to sit at the computer all the time. The problem is that most of the stations she listens to are either RealMedia or Windows Audio streams, while the player only supports MP3 streams. (It claims to support WMA, but we haven't had any luck in our fiddling yet.) So here is the question: Would it be possible to get other types of files to play on the device? My idea is to have an intermediate server download, convert to MP3, and re-stream the files, but I'm not sure of the implementation. Would this be easily do-able with something like Icecast and Lame?"
Easy as pie (Score:5, Informative)
I did something like this for my office, streaming Christmas music using Icecast, Lame, and Shout. Here's one possible installation:
1) Setup Icecast as usual. Take note of the encoding password.
2) Install the Shout Perl libraries.
3) Use the example2.pl that comes with Shout.
For the example2.pl, I think it comes with the basic Perl library installation). By default it takes it the MP3 files specified on the command line, uses LAME to convert them to a bitrate you specify, and sends them to a mountpoint on the LAME server. I modified mine so that it loops indefinitely, and of course I hardcoded my Icecast IP address, mount point, and encoder password. You'll probably need to tweak it a bit to convert OGG / WMA / RM streams as well, but it should be fairly straightforward.
Re:Easy as pie (Score:5, Insightful)
Uh, no. AFAICS that's the hard part the guy wants answering.
Re:Easy as pie (Score:3, Insightful)
Why are you coming down on the guy? His advise is as clear and thorough as a typical linux man page.
Good suggestion (Score:3, Insightful)
But one has to ask: Why didnt the original article poster (Hobadee) investigate what product would have suited his mother's needs better?
As they say a problem avoided is a problem solved, that is the geek way.
Re:Good suggestion (Score:4, Insightful)
Re:Good suggestion (Score:2)
Re:Good suggestion (Score:2, Informative)
So, a user buys the wrong product, comes to slashdot and gets a headline. I have a better idea: hit Google and a couple of stream related forums for an hour or two. Figure it out. It is not very geek to bring such a basic question to a forum looking for turn-key solutions when you should have read the tech specs in the god damned advertisement before buying it..
This is what happens when Bush voters get
Re:Good suggestion (Score:1)
Re:Good suggestion (Score:2)
For all your ranting about "reading specs", you haven't read the actual story. And for all your ranting about "Bush voters" on Slashdot, it is *you* who doesn't understand what matters to nerds: hacking produ
Re:Easy as pie (Score:1)
Re:Easy as pie (Score:1)
It's a looooooong command-line.
You should look at Fluendo'S flumotion.
This seems to be a very clean solution, but I haven't tested ot yet.
Dude, you're gettin a Squeezebox! (Score:5, Informative)
You might be able to get it to work with the WMLS11B if that device is capable of playing an arbitrary mp3 stream by URL, as SlimServer can convert and rebroadcast streams in
various formats.
But if you have the Squeezebox it will work so much better, because it's designed to do all of this, and you can choose the stations (or your own music collection) from the display.
SlimServer is also open source, so it supports just about every file format and radio format in existence. There is a free emulator included, SoftSqueeze, that you can use to try it
out.
PS I work for Slim. Mod up if you want me to answer questions in this thread; mod down if you don't care for self-promotion.
Re:Dude, you're gettin a Squeezebox! (Score:3, Insightful)
Re:Dude, you're gettin a Squeezebox! (Score:5, Informative)
Generally no, except for free (FLAC) [sourceforge.net] or trivial (WAV/AIFF) encodings, which are built-in.
SlimServer's trick is to take advantage of thrid-party codecs which are installed on your computer. This allows us to support Apple Lossless, for example, by leveraging Quicktime (Windows or Mac). The same goes for WMA. MP3 encoding is automatically enabled if a lame installation is detected.
It's all quite automatic - nearly always, if someone has Apple Lossless or WMA files, then they'll have Quicktime or Windows Media, respectively, installed. So whichever formats you're using will "just work" with SlimServer.
If we wanted to pay Fraunhofer "per anum" then we could distribute Lame, but it's easy enough to install separately.
Re:Dude, you're gettin a Squeezebox! (Score:2, Funny)
Re:Dude, you're gettin a Squeezebox! (Score:5, Funny)
No, it's "per anum". Obviously you haven't seen their fee schedule. Much worse than "through the nose".
Re:Dude, you're gettin a Squeezebox! (Score:5, Interesting)
I've been using SlimServer for at least 6 months now and I absolutely love it. I have it installed on one of my spare linux servers and can access my entire music library anywhere that has internet access and an mp3 player (I'm currently away for the Holidays and as I'm typing this very message I'm listening to my music stored hundreds of miles away). However, the beauty of it is that it should be able to do exactly what you want: it can connect to internet streams and do conversion on the fly. There are also a number of plugins available (for example, here [rtfm.info])
I should mention that I only use their software, SlimServer (which is free), and not their hardware unit, SqueezeBox. This is not because I'm a cheap bastard, but because I'm a college student living in a dorm room...you can't *not* be next to your computer in a dorm, so I have no use for something like SqueezeBox. However, once I move out next year, one of my first pruchases will be a SqueezeBox.
Re:Dude, you're gettin a Squeezebox! (Score:4, Funny)
So, you're more of the chubby kind?
Re:Dude, you're gettin a Squeezebox! (Score:2)
But if his Mamma gets a Squeezebox, his Daddy will never sleep at nights.
Re:Dude, you're gettin a Squeezebox! (Score:1)
AlienBBC (which is a Slimserver plugin) has a transcoder proxy server, which can request a RealAudio stream, and output an mp3 stream. Sounds just about exactly what is required. AlienBBC is available from: http://www.mrtickle.org/alienbbc.html [mrtickle.org]
The bit you'll actually need is 'transcoder_proxy.pl'. Satisfy it's pre-requisities, and it's just a matter of having it runinng, and pointing your mp3-consuming device to:
http://
Re:Dude, you're gettin a Squeezebox! (Score:5, Informative)
WMA definitely; RA "no, but possible". Real's software is quite closed and inextensible (yes, even compared to MSFT), and I don't think there's a solution for this yet. All it would take though is a decoder app, and you could hook it in in five seconds using SlimServer's transcoding logic [slimdevices.com]. Take a look to see specifically which formats are supported.
Re:Dude, you're gettin a Squeezebox! (Score:3, Informative)
RA Support (Score:1)
Re:Dude, you're gettin a Squeezebox! (Score:2)
Was I fooled?
Re:Dude, you're gettin a Squeezebox! (Score:1)
That is my almost-completely-uninformed understanding, anyway. Helix reeks of Real, which is enough to make me stay very far away.
mplayer (Score:4, Informative)
For that matter, mplayer with FIFOs and a little CGI may make an adequate ad-hoc solution, though I suspect real-time MP3 encoding is a lot trickier, and a package designed for that might be a good idea.
Try AlienBBC (Score:1)
Check out AlienBBC [mrtickle.org] which uses mplayer to reencode to mp3.
Works only on linux though, but has been made to work on Mac according to the site.
Possible (Score:4, Informative)
Re:Possible (Score:3, Insightful)
Re:Possible (Score:2)
Darkice (Score:5, Informative)
Simple. (Score:5, Informative)
I think it should work (Score:3, Interesting)
Re:I think it should work (Score:3, Informative)
ffmpeg (Score:3, Informative)
Another options would be any media streamer like icecast.
If none of these let you specify a media stream as a source input, you can convert it by a line-out -> line-in hack.
Winamp (Score:5, Informative)
Re:Winamp (Score:1)
Re:Winamp (Score:1)
Also, it shouldn't matter what version (paid or free) of Winamp you run shoutcast on, it's just a plugin
Blogmatrix Sparks (Score:2, Informative)
http://sparks.blogmatrix [blogmatrix.com]
iRecordMusic too (Score:1)
It's quite simple. (Score:4, Informative)
Re:It's quite simple. (Score:1)
Shouldn't be to hard to get working and it solves the problem. Provided that the Linksys WMLS11B is already bought.
Linux-based firmware (Score:1)
http://www.turtlehead.co.uk/downloads/Wmamp-0.3.zi p [turtlehead.co.uk]
Great hacking potential for putting something like helix [helixcommunity.org] on it, and taking the pc out of the picture altogether
wmamp.img: Linux Compressed ROM File System data
Re:Linux-based firmware (Score:1)
Re:Linux-based firmware (Score:1)
If anyone finds a replacement firmware for a WMLS11B, that would be great, as it seems very buggy with the default firmware.
Re:Linux-based firmware (Score:1)
Re:Linux-based firmware (Score:2)
-russ
try this.. (Score:1)
record as mp3 off sound card (Score:1, Informative)
http://www.mp3-converter.com/total_recorder.htm
I can do this with windows SNDREC32 (Score:2)
Low Tech (Score:5, Informative)
Re:Low Tech (Score:1)
Re:Low Tech (Score:2)
C Crane makes one whose best feature is that you can set the retransmission frequency. I've bought the cheap ones to find that the four frequencies they choose are often already used in the cities I am in.
It's currently, uh, $69.95 but comes with free shipping.
FM Transmitter features:
* Full stereo on any FM frequency of your choice.
Re:Low Tech (Score:2)
This is a great suggestion if it works. Of course you can roll your own or buy a kit. You can even raise the power and install a nice antenna and I doubt the FCC will come looking for you. Your device will no long
Re:Low Tech (Score:1)
Re:Low Tech (Score:1)
Re:Low Tech (Score:1)
ReStreaming RealMedia/Windows Media as Ogg... (Score:2)
First, you need to install MPlayer (1.0-preX), so you can play most of those streams. I'm not sure about RealMedia files, but Windows Media it should play 99% of.
Then, you need to set up MPlayer to shoot out raw audio and pipe it into LAME, and then IceS. The latter two you may want to try coding up a script with Icecast's Shout perl module, which should do the job roughtly.
Re:ReStreaming RealMedia/Windows Media as Ogg... (Score:2)
#
#
STATION=kfbk
PROGRAM=$( echo $STATION | tr '[[:lower:]]' '[[:upper:]]' )
[ "$2" ] && PROGRAM=$2
[ $( basename $0 ) == reckste ] && STATION=kste
LENGTH=`printf "%d" $1`
TARGETFILE="$PROGRAM - "$(date +"%m.%d.%y %a %R")".mp3"
[ $LENGTH == 0 ] && echo "Must specify a time in hours or seconds" && exit 1
[ $LENGTH -lt 10 ] && LENGTH=$(( $LENGTH * 3600 ))
printf "Recording for %d seconds ( %d:%02d )\n" $LENGTH $(( $LENGTH / 3600 )) $(( $(( $LENGTH % 3600 )) / 60
In the meantime, write a letter (Score:2)
I know this won't help your situation now, but gosh I can't wait until otherwise credible media producers--such as NPR or the BBC--drop Real for good. As far as I can tell the o
Re:In the meantime, write a letter (Score:1)
Is the windows player really still that bad with the real player 10 release? It seems like not all, but most of the complaints I've heard were cleaned up there. And the linux version actually seems pretty nice.
VideoLAN Client Stream Output (Score:2, Informative)
http://www.videolan.org/streaming/features.html [videolan.org]
Re:VideoLAN Client Stream Output (Score:1, Informative)
vlc -I dummy http://www.kqed.org/w/streamingfiles/kqed_wmp.asx --sout '#transcode{acodec=vorb,ab=30}:standard{access=htt p,mux=ogg,url=my.server.com:8031/kqed.ogg}'
Remove the space in front of the "p" if you're cutting and pasting that (Slashdot put it in there, not me.)
Partial Answer... (Score:2)
I wasn't terribly successful. Nothing said it could do streaming media and restream it. Several products claim to be able to take streams and record them, and then convert them for you to play back later.
I didn't find anything GPL'd.
Non GPL'd products can apparently be found at:
totalrecorder.com
replay-music.com
wmrecorder . com
Re:Partial Answer... (Score:2)
#!/bin/sh
DATE=`date +%d-%m-%Y`
# Adjust mixer settings
/usr/bin/aumix -l 100 -v 100
# Run radio -- parameter is station frequency
/usr/bin/radio -qf $1
sox -t ossdsp -w -s -r 44100 -c 2 /dev/dsp -t raw - | lame -x -m s - /radio/$DATE.mp3
exit 0
(Run from cron as needed)
Or you might look into wrapping your player in the vsound program, feeding it the mms parameter, and piping the output as above.
Re:Partial Answer... (Score:2)
mplayer -dumpstream -dumpfile file.rm rtsp://...
mplayer -ao pcm file.rm
lame -v --resample 44.1 audiodump.wav file.mp3
Re:Partial Answer... (Score:2)
Recording Realaudio, WMF, OGG & MP3 Radio stre (Score:5, Informative)
I wanted to record a couple of radio shows so that I can listen to them later on my linux machine. Basically I would like to listen to a mix of realplayer, Windows Media, Ogg and MP3 streams and save them as mp3 or ogg files so I can listen to them later on my computer or iriver ogg/mp3 player.
First I tried mplayer's dumpstream command
1) mplayer -dumpfile cores -dumpstream http://wm.warnermusic.com/France/the_corrs/summer
(th
2) mplayer -vo null -vc null -ao pcm -aofile audio.wav cores
(this will convert the videofile to a wav audiofile)
3) lame audio.wav cores.mp3
(this will convert the file from wav to mp3)
However this process core dumped on realplayer recorder over 10 minutes. Also it doesn't know about ram files so you have to download them first (wget filename) and then open them to file the real link to the rm file. So I went on to look for some other tools.
Most of the tools seem to be wrappers around vsound and/or sox and lame/oggenc. Another tool I looked at is streamripper, which works for mp3 or ogg streams.
First I grabbed realcap which is a shell script front end to those tools. Downloaded, compiled and installed vsound.
Trick one - you have to ensure that realplayer is using OSS drivers
http://www.osl.iu.edu/~tveldhui/radio/ [iu.edu]
After that seemed to work I tried directly with vsound. vsound acts as a kind of virtual audio loopback cable
vsound --timing -f myfile.wav realplay http://www.radio.org/ra/show.ram
oggenc myfile.wav
I also checked out the trplayer - which is a command line wrapper to realplayer. http://www.linux-speakup.org/trplayer.html [linux-speakup.org]
Got the error:
Failed to load rmacore.so.6.0:
Well I figured out that they must be looking for the real player in
Also I tried out streamripper
http://streamripper.sourceforge.net/ [sourceforge.net], which seemed to work fine ripping various streams. It didn't seem to be able to read the
Finally I had a look at mp3record - a bash shell wrapper for lame and sox
Basically it does this:
(sox -r $strFreqRate -t ossdsp -w -s
| lame -s 44.1 -x -b $strBitRate -m s - $strFileName) &
Things to get working...
1) streaming directly to ogg with no intermediary wav step.
2) see if I can get this running from a cron job...
Re:Recording Realaudio, WMF, OGG & MP3 Radio s (Score:1, Offtopic)
Ah, another Corrs fan!
Which one are you in love with - Andrea, Sharon, Caroline - or Jim? (Or all three - or four - or any two?)
Re:Recording Realaudio, WMF, OGG & MP3 Radio s (Score:2)
Have a look at snatch, done by xiph as part of the vorbis project. It's only available in CVS (or subversion now!). You can find it here [xiph.org] under trunk/snatch. Worked pretty well when I tried it last, and it has a scheduling GUI front-end.
Re:Recording Realaudio, WMF, OGG & MP3 Radio s (Score:2)
As I mentioned in the post - mplayer (latest) was core dumping on realplayer files over 10 min. I'm guessing mencoder might do the same. Searching forums, other users experience the same issue.
music file server for WMLS? (Score:2)
-russ
Re:music file server for WMLS? (Score:2)
- Microsoft Windows Media Connect (free)
- Nero MediaHome (part of Nero 6, $70)
- Musicmatch UPnP music server (?)
- Allegro Media Server ($25)
(Note that I don't know whether they are really compatible with the Linksys device, but they should)
Cheaper solution (Score:2)
There is a much cheaper way of doing this. Just get a FM transmitter (Bestbuy, Radioshack or any electronics store should have it) that has power adapter and hook it to the speaker output. Then listen to this music on your favorite Radio/Music system that has FM radio. As far as not being able to read the song/artist title information goes, you already mentioned that you don't want your mom to sit in front of computer (or your linksys radio).
Maybe you still have time to return it and get something that will
Why not... (Score:2)
Such as this one [ccrane.com] or maybe these [ccrane.com].
Or maybe go XM Radio [ccrane.com]?
I don't think any of these radio/internet things are ready for primetime yet........
Be Patient Grasshopper.... (Score:3, Insightful)
Re:no thanks (Score:1)
Are you posting this on behalf of a secret society of illiterates? Jeez, so I was totally misinformed about XM having no affiliations with ClearChannel, and live in hope of listening to Howerd Stern live on my iPod. Big Deal. Geat over it. Have fun with your Rio Grande XL
Another easy at pi solution (Score:1)
BlogMatrix Sparks records Real and WMP formats (Score:2, Interesting)
I've been working on BlogMatrix Sparks! [blogmatrix.com] for the last few months and it's definitely what this person is looking for:
Re:BlogMatrix Sparks records Real and WMP formats (Score:1)
Virtual Audio Cable? (Score:1)
The author uses (windows) 'Virtual Audio Cable' to dump the audio from skype to wav (then to mp3).
Basically it acts as a virtual sound card which you can pipe (via a second 'virtual cable' instance) to another app as an input audio device.
It amounts to having a software cable from your speaker out to your mic in. Any windows based casting software tha
I've got one of these. (Score:2)
I'm completely dissapointed in these devices. You can't control the streams, can't control any of the functions without having a Windows Client, and my attempts on breaking the protocol don't seem to work at all.
The stream listings on it go away (One of my favorite classical streams on this device was WBHM out of Birmingham, Alabama. They moved the streaming location, or moved to WMP, and then it borked. W
Media Center: On-The-Fly Bitrate & Fmt Transco (Score:2)
MC also has a beta uPNP module [jriver.com] tha
Slight Different usage (Score:1)
Re:Hello? Standards? (Score:2, Funny)
Sincerely,
Joe Sixpack
VP, Engineering
Linksys
Re:Hello? Standards? (Score:3, Insightful)
Re:Hello? Standards? (Score:1)
Because there's no DRM (Score:3, Interesting)
Publishers of commercial streams want to exclude people from downloading their streams. Unlike Windows Media Player and RealPlayer, MPEG-1 and Ogg (the most common containers for MP3 and Vorbis respectively) do not define a digital restrictions management layer. Thus, commercial publishers tend to shy away from MP3 and Ogg Vorbis. In addition, it is claimed that the MP3 royalty is greater than the Windows Media Player or RealPlayer royalty, and Ogg Vorbis doesn't have enough of an install base to be worth
Re:Because there's no DRM (Score:2)
Re:It's about rights (Score:2)
Considering how DRM gives publishers more than their original rights that's a bit weird. I think digital restrictions management really describes the technology very well, because that's just exactly what it does. If nothing else, it's more accurate and to the point.
ogg (Score:1)
Re:Because there's no DRM (Score:2)
Re:Poll Troll Toll (Score:1, Troll)
Re:Poll Troll Toll (Score:1)
Either that or somebody's been stealing all the vote-ahurtz.
Re:Poll Troll Toll (Score:2)
Re:Poll Troll Toll (Score:2)
Hint: that last one is not Shockwave.
Re:I have an idea (Score:2, Insightful)
Re:I have an idea (Score:2)
Sera
Re:WMP is the problem, not the reencoding (Score:1)
Re:Challenge (Score:1)