Slashdot Mirror


Realtime Audio Conversion And Serving

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?"

153 comments

  1. Easy as pie by perlionex · · 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.

    1. Re:Easy as pie by Anonymous Coward · · Score: 5, Insightful

      You'll probably need to tweak it a bit to convert OGG / WMA / RM streams as well, but it should be fairly straightforward.

      Uh, no. AFAICS that's the hard part the guy wants answering.

    2. Re:Easy as pie by Anonymous Coward · · Score: 0

      /. moderators suck.
      At least RTFA before modding
      The parent isn't trying to be funny, the article states that the problem is with streaming anything other than mp3.

    3. Re:Easy as pie by Forget4it · · Score: 1

      I would do this if LAME could give good low bit rate results such as are obtained using the Windows *ACM* Fraunhofer IIS MPEG Layer 3 Codec (Professional) at 24 kBit/s, 12,000 Hz , Stereo For radio speech/drama produces fine audio with minimum disk space. At thesame rates LAME is poor. Another thing to consider is how long it takes to download a non-live real stream. On Windows there is some abandonware StreamBox-VCR-1.0 Beta 3.1 that does it in much less than real time for broadband at bbc ListenAgain real resources.

      --
      Artificial intelligence is the study of how to make real computers act like the ones in the movies.
    4. Re:Easy as pie by smchris · · Score: 2, Insightful


      Why are you coming down on the guy? His advise is as clear and thorough as a typical linux man page.

    5. Re:Easy as pie by MegaFriedolin · · Score: 1

      Using gStreamer should work too.
      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.

  2. Dude, you're gettin a Squeezebox! by seanadams.com · · Score: 5, Informative

    SlimServer / Squeezebox does precisely what you're asking for.

    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.

    1. Re:Dude, you're gettin a Squeezebox! by phr1 · · Score: 2, Insightful

      Source code for codecs included? What codecs? Winamp? Realaudio? I thought that this was the hard part, and difficult to get or release source code for.

    2. Re:Dude, you're gettin a Squeezebox! by Anonymous Coward · · Score: 0

      Looks neat -

      Your site says it supports WMA but the submitter also mentions RA. Does it support RA radio streams? (You say you're open source so I guess this depends on Helix?)

      Some devices with WMA support don't do the rights management stuff whereas the DRM is exactly WMA's big draw to online publishers. I don't listen to WMA radio - are there any DRM issues listening to WMA radio with your box?

      Thanks!

    3. Re:Dude, you're gettin a Squeezebox! by seanadams.com · · Score: 4, Informative

      Source code for codecs included?

      Generally no, except for free (FLAC) 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.

    4. Re:Dude, you're gettin a Squeezebox! by seanadams.com · · Score: 4, Informative

      Your site says it supports WMA but the submitter also mentions RA.

      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. Take a look to see specifically which formats are supported.

    5. Re:Dude, you're gettin a Squeezebox! by Anonymous Coward · · Score: 0

      Fair enough.

    6. Re:Dude, you're gettin a Squeezebox! by Anonymous Coward · · Score: 0


      If we wanted to pay Fraunhofer "per anum" then we could distribute Lame, but it's easy enough to install separately.


      Uh... I think you mean "per annum".

    7. Re:Dude, you're gettin a Squeezebox! by seanadams.com · · Score: 4, Funny

      Uh... I think you mean "per annum".

      No, it's "per anum". Obviously you haven't seen their fee schedule. Much worse than "through the nose".

    8. Re:Dude, you're gettin a Squeezebox! by Anonymous Coward · · Score: 0

      the squeezebox definitely kicks the ass of this linksys toy... highly recommended.

      The Airport Express is cool too, and it will be even cooler once Slipstream is released by rogue amoeba. If you use Mac OS X that is. If you don't, I'm very sorry!

    9. Re:Dude, you're gettin a Squeezebox! by jtmas83 · · Score: 5, Interesting

      I would also recommend SlimServer...and I'm not a Slim employee!

      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)

      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.

    10. Re:Dude, you're gettin a Squeezebox! by apdt · · Score: 2, Informative

      Would it be possible with something like this? I've not played with either, so I don't know if this is a stupid question or not, just thought it was worth asking.

      --
      I lay awake last night wondering where the sun had gone, then it dawned on me.
    11. Re:Dude, you're gettin a Squeezebox! by aminorex · · Score: 1

      I thought the codecs were all open in helix.
      Was I fooled?

      --
      -I like my women like I like my tea: green-
    12. Re:Dude, you're gettin a Squeezebox! by tahii · · Score: 4, Funny

      ...and I'm not a Slim employee!

      So, you're more of the chubby kind?

    13. Re:Dude, you're gettin a Squeezebox! by clayton_dsp · · Score: 2, Funny
      MP3 encoding is automatically enabled if a lame installation is detected.
      Why do you have to install WinME to get MP3 encoding?
    14. Re:Dude, you're gettin a Squeezebox! by lewp · · Score: 1

      The codecs that are in Helix (if there are any) are open. Real's proprietary codecs are not part of Helix, but are added to it to make "Real Player".

      That is my almost-completely-uninformed understanding, anyway. Helix reeks of Real, which is enough to make me stay very far away.

      --
      Game... blouses.
    15. Re:Dude, you're gettin a Squeezebox! by jrumney · · Score: 1
      SlimServer / Squeezebox does precisely what you're asking for.

      But if his Mamma gets a Squeezebox, his Daddy will never sleep at nights.

    16. Re:Dude, you're gettin a Squeezebox! by julest · · Score: 1

      Well... if we're doing the self-promotion bit, Sean... I'd better chime in, too. ;)

      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

      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://<address of server>:5123/RealAudio/<complete URL of RealAudio Stream>

      That should be all that's required.

      -- Jules

  3. Possible by respite · · Score: 4, Informative

    It is definitely doable, but would require a time offset. Transcoding the streams would cause a loss of quality and could not be done entirely realtime.

    1. Re:Possible by PornMaster · · Score: 2, Insightful

      Yes, well, since the audio isn't syncing to anything, and is already delayed from the on-air broadcast, I can't imagine it would be too harmful to have a 20-second buffer to help out anyway.

    2. Re:Possible by elid · · Score: 1

      I can't imagine that there would be that much of a loss in quality, either, if it's done at high bitrates.

    3. Re:Possible by Anonymous Coward · · Score: 0

      Sure it can be done in realtime. How do you think radio stations encode live streams? Encoding RealAudio, WMA, MP3, Ogg or almost any old format in real-time is dead simple on even a remotly fast machine. Hell a three year old Athlon could do it.

    4. Re:Possible by Anonymous Coward · · Score: 0

      And given that she likes to listen to talk radio, it's probably not going to be even 128kbps RA or WMA, and it'g going to sound like a tin can direct from their server.

      Re-encoding to mp3 should be a no-brainer. Hell, even if it requires going digita-to-analog-to-digital (playing the stream through one card, recording from the analog in from another card, and encode to mp3 with icecast, the loss of quality will be negligible, and voila, super easy.

  4. Darkice by meekjt · · Score: 5, Informative

    Check out http://darkice.sourceforge.net/ You should be able to get it to do what you want.

  5. I have an idea by Anonymous Coward · · Score: 0, Informative

    Whats better?

    1. Asking thousands of slashdot pundits who have no clue how to help you, hope that your question gets posted somehow, wait for it to get posted, wade through the hundreds of sarcastic replies in a hopeless effort to try to find some inkling of an answer to lead you in the right direction

    or

    2. Do a google search

    You decide!

    1. Re:I have an idea by Anonymous Coward · · Score: 0

      There are already lots of helpful suggestions. You sir are an idiot.

    2. Re:I have an idea by Tonetheman · · Score: 2, Insightful

      It is called ask slashdot for a reason moron. Maybe this dude did not even know what to search for to start with! I have not heard of DarIce or Slim Devices and I would not have known what either was based on the name. Take a chill. Have a merry fuckin Christmas.

    3. Re:I have an idea by Seraphim_72 · · Score: 1
      Good on ya, and a Merry Christmas to you.

      Sera

      --
      Slashdot, where armchair scientists get shouted down and armchair theologians get modded up.
    4. Re:I have an idea by Anonymous Coward · · Score: 0

      "wade through hundreds of sarcastic replies"

      That sure sounds like You !

  6. Re:Hello? Standards? by Anonymous Coward · · Score: 2, Funny

    Ogg is not worthwhile to implement. It's only "free" if Linksys engineers' time is worthless.

    Sincerely,
    Joe Sixpack
    VP, Engineering
    Linksys

  7. Re:Hello? Standards? by LeslieH8 · · Score: 1

    I'd imagine it's a result of listening to internation broadcasts that are already using the WMA or streaming RA formats. Jeez.

  8. Because there's no DRM by tepples · · 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 technicians' time.

    1. Re:Because there's no DRM by GlassUser · · Score: 1

      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 technicians' time.

      I'm glad to see someone else using the correct expansion for DRM (hint for the rest: it's not about rights, it's about restrictions). But that doesn't stop me from recording any WM or RA stream that I want (though I have yet to find an RA stream worth the trouble). I can't believe that MP3 encoding would cost more than the others, though.

      Oh, and can someone check the grandparent? It seems some clueless mods decided I was a troll. Thanks.

    2. Re:Because there's no DRM by tjansen · · Score: 1

      No, I haven't seen a DRM-protected radio stream (that cant be played by mplayer, xine and friends) yet. The formats may support it, but it's not used in the real world.

  9. Simple. by seinman · · Score: 5, Informative

    One of the default options in Winamp's Shoutcast plugin is to broadcast from the sound card mixer. Wether it's microphone, line in, or WAV, it encodes and broadcasts it. Install the server, install the plugin, start streaming, then play whatever station you want to hear through whatever player you need to use. Shoutcast/Winamp handles the rest.

    1. Re:Simple. by Anonymous Coward · · Score: 0

      You deserve a gold star, pal. Grade A KISS solution.

  10. Re:Poll Troll Toll by LBArrettAnderson · · Score: 0, Troll

    wow... windows's audio format is killing the others... too bad for .swam...

  11. I think it should work by jmitchel!jmitchel.co · · Score: 3, Interesting

    IIRC (I don't have the computer I use for this handy), the magic piece of the puzzle is xine or mplayer and the 12 MBish windows codec pack. One or the other of these can read realaudio streams and transcode them to mp3 files. From there it's a matter of pushing the mp3 files out over shoutcast, or whatever the relevant stream format is, which will hopefully be fairly easy if the Linksys box plays shoutcast streams.

    1. Re:I think it should work by Joe+Tie. · · Score: 3, Informative

      To convert realaudio, I use mplayer -vo null -ao pcm -hardframedrop filename.wav To convrert the realaudio to a wav, then oggenc to convert to vorbis. Not sure how well it'd work from a live stream though, as I usually download archived episodes of radio shows.

      --
      Everything will be taken away from you.
  12. ffmpeg by GiMP · · Score: 2, Informative

    FFmpeg may do what you want. It will take a file and convert it in realtime to various other formats (and stream them).

    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.

  13. Winamp by n17ikh · · Score: 5, Informative

    If you have a random Windows box sitting around doing nothing, you can setup Winamp along with Shoutcast to achieve exactly what you want. Use WA to listen to your streams/play songs and just have Shoutcast rebroadcasting all the time as a high-quality MP3 stream. So simple any idiot can do it, even me.

    --
    Hard work pays off tomorrow, but procrastination pays off NOW!
    1. Re:Winamp by AgentPhunk · · Score: 1

      Aren't there issues with the setup you describe, specifically with Shoutcast and the bitrate the freeware version can (re)broadcast at?

    2. Re:Winamp by n17ikh · · Score: 1

      I don't think so, I have a version of Shoutcast from Back in the Day before winamp had a pro version, and there's no limitation. I didn't think shoutcast was pay software now anyways...
      Also, it shouldn't matter what version (paid or free) of Winamp you run shoutcast on, it's just a plugin

      --
      Hard work pays off tomorrow, but procrastination pays off NOW!
  14. Blogmatrix Sparks by ratpack91 · · Score: 2, Informative
    Just started using it this week. Records stations to MP3 using a schedule. Pretty good and has loads of stations preset like all the bbc ones by show.
    "Use BlogMatrix Sparks! to record streaming Internet radio feeds and download podcasts and store them in your media player (iTunes or Windows Media Player). Sparks! uses an interactive directory of radio stations and podcasts to help you find content. Sparks! runs on Windows, Macintosh OS 10.3 and Linux and is open source software."

    http://sparks.blogmatrix.com/
  15. It's quite simple. by Guspaz · · Score: 3, Informative

    All you need is a copy of Winamp and the Shoutcast server/DSP. Have Winamp tune into whatever source you want (In the case of proprietary stuff like Real Audio you'd have to have the realaudio player to play, and set Winamp to record off "wave"), then use that same copy of Winamp to just stream via shoutcast.

    1. Re:It's quite simple. by dutt · · Score: 1

      Well answerd, it's the definatley the easiest solution I've read so far.
      Shouldn't be to hard to get working and it solves the problem. Provided that the Linksys WMLS11B is already bought.

  16. WMP is the problem, not the reencoding by Anonymous Coward · · Score: 0

    encoding something that you have captured into mp3 will be easy---compared to decoding a windows media radio stream. as far as I know, you have no chance here, for the same reason that linux cannot play these streams. (if it were possible, someone would have hacked together a windows media stream listener for linux a long time ago.)

    big pity /ac

    1. Re:WMP is the problem, not the reencoding by ThJ · · Score: 1

      Yes. It's called MPlayer.

  17. Linux-based firmware by rgammon_real · · Score: 1

    There's a free software linux-based firmware for this device here:
    http://www.turtlehead.co.uk/downloads/Wmamp-0.3.zi p
    Great hacking potential for putting something like helix on it, and taking the pc out of the picture altogether :)
    wmamp.img: Linux Compressed ROM File System data

    --
    Check out Helix Player
    1. Re:Linux-based firmware by rgammon_real · · Score: 1
      --
      Check out Helix Player
    2. Re:Linux-based firmware by mk500 · · Score: 1

      You are a bit mixed up. The hack you link to is for the WMA11B, but the original poster has a WMLS11B, which is quite different.

      If anyone finds a replacement firmware for a WMLS11B, that would be great, as it seems very buggy with the default firmware.

    3. Re:Linux-based firmware by rgammon_real · · Score: 1

      oops, my mistake.

      --
      Check out Helix Player
    4. Re:Linux-based firmware by Russ+Nelson · · Score: 1

      And the user interface is crap. If you point to a folder and press play, it only plays the first tune in the folder. DOH! Software should always do the obvious thing that you ask it to do.
      -russ

      --
      Don't piss off The Angry Economist
  18. try this.. by pair-a-noyd · · Score: 0
    1. Re:try this.. by darkpadden · · Score: 1

      streamtuner (frontend to streamripper) is really nice

      --
      life, what that??? relly?? where can i download one of them?
  19. record as mp3 off sound card by Anonymous Coward · · Score: 1, Informative

    a litle program called totall recorder will record any sound you hear on a sound card it will do it in mp3 format if that helps it cost about $12 us

    http://www.mp3-converter.com/total_recorder.htm

  20. Re:I just .... by alphax45 · · Score: 0, Offtopic

    totaly OT; but I wish I had mod points for this

    --
    K Man
  21. Re:I just .... by Anonymous Coward · · Score: 0

    Starting your comment with the phrase
    "totaly(sic) OT; but" does not make your
    comment any less OT.

  22. Low Tech by AndroidCat · · Score: 5, Informative

    I would have gone for a low tech solution by pluging the computer's audio line-out into a FM wireless mic/transmitter. It's not as fancy, without remote control and bells and whistles, but costs less and could be listened to by any FM radio in the house. (And neighbouring houses depending on your power and antenna.)

    --
    One line blog. I hear that they're called Twitters now.
    1. Re:Low Tech by AndroidCat · · Score: 1

      Oh, forgot to mention that most worries about format , player, DRM or OS go away. (If you can hear it at the computer, you can hear on the radio.) Also, any "you've got mail" or "you have a conference call in five minutes" sounds or speech will heard too -- which may or may not be a good thing.

      --
      One line blog. I hear that they're called Twitters now.
    2. Re:Low Tech by jerryasher · · Score: 1

      I have been thinking about getting this FM Transmitter from the C Crane Company. Yes, everyone's favorite radio manufacturer and sponsor of Art Bell and Drug Limbug.

      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.
      * Exceptionally clean and stable digital tuning for drift-free accurate transfer.
      * Selectable Power-Off Timer.
      * Approximate line-of-sight range of 70 ft. Walls and metal objects will reduce this range.
      * Runs on included AC Adapter or (2) optional "AA" batteries.
      * Portable, fits in the palm of your hand.
      * Weighs just 5.8 ozs.
      * Size: 3.1" W x 3.5" H x 1.1" /End C Crane Plug.

    3. Re:Low Tech by gad_zuki! · · Score: 1

      The downside of this approach is that its signal is so weak you may not be able to hear it in another room. On my Neuros player, which is far from a good example, I have to place it right next to a receiver to get it to catch its little FM broadcast. The FCC limits broadcast power pretty severly.

      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 longer be in FCC Part 15 compliance, though.

    4. Re:Low Tech by littlekosh · · Score: 1

      This would work assuming he's not in a major radio market where the FM band is saturated with stations.

      --
      655321
    5. Re:Low Tech by ockegheim · · Score: 1

      With my mother, the lower tech the solution the better. If you could get the performers to stand in the next room, she would probably understand the system and be able to diagnose and fix problems herself.

      --
      I’m old enough to remember 16K of memory being described as “whopping”
    6. Re:Low Tech by AndroidCat · · Score: 1

      I think that after the wave of small pirate FM stations a few years ago, the FCC keeps tighter controls on manufacturers of assembled units than just 100mW and 6' antenna (or whatever Part 15 is limited to these days). The general rules on causing no interference allow them to do that. A kit might allow getting closer to the legal limits without going over. (But you take the responsibility for not causing interference.)

      --
      One line blog. I hear that they're called Twitters now.
    7. Re:Low Tech by AndroidCat · · Score: 1

      Could be a problem is a house that switches between Lawrence Welk and Heavy Industrial Punk Thrash Death Metal.

      --
      One line blog. I hear that they're called Twitters now.
  23. ReStreaming RealMedia/Windows Media as Ogg... by strredwolf · · Score: 1

    Hard, very hard. You need to do alot of work.

    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.

    --

    --
    # Canmephians for a better Linux Kernel
    $Stalag99{"URL"}="http://stalag99.net";
    1. Re:ReStreaming RealMedia/Windows Media as Ogg... by JabberWokky · · Score: 1

      #!/bin/bash
      #
      #

      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 ))

      cd ~evan/tmp/stream || echo "Error!"

      lame -f -mm -b16 - - >"$TARGETFILE" <$STATION.pipe &
      sleep 1
      mplayer -quiet -cache 256 -ao pcm -aofile $STATION.pipe http://ccdig.liquidviewer.com/$STATION &

      sleep $LENGTH
      KPID=$(ps ax | grep mplayer | grep -v grep |grep $STATION | gawk '{ print $1 }')
      kill -9 $KPID

      --
      "$30 for the One True Ring. $10 each additional ring!" -- JRR "Bob" Tolkien
  24. In the meantime, write a letter by interstellar_donkey · · Score: 1

    Perhaps it's the my old crotchityness (if that is a word), but I've taken to writing parties that broadcast in the Real format. It usually starts out with "I'm not sure how you got swindled into broadcasting in the Real format, but..." and providing some links to show how really terrible the real client is to the user's computers.

    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 only benifit Real gives its customers is the claim that the streams can't easily be copied (though I understand that can 'easily' be circumvented).

    Good luck with your device, and hopefully somebody can help you with an easy WMA or Real to MP3 conversion.

    --
    The Internet is generally stupid
    1. Re:In the meantime, write a letter by Joe+Tie. · · Score: 1

      and providing some links to show how really terrible the real client is to the user's computers.

      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.

      --
      Everything will be taken away from you.
    2. Re:In the meantime, write a letter by Anonymous Coward · · Score: 0
      As far as I can tell the only benifit Real gives its customers is the claim that the streams can't easily be copied (though I understand that can 'easily' be circumvented).

      Indeed it can..If that's why customers pay real for streaming, they was robbed. The only difficulty is finding the URL of the Real stream: websites (ie the BBC) seem to like hiding it behind layers of indirection. But now I just start it playing with Real, then look in the /tmp directory for the most recently changed file: that file contains the actual URL. When I've got that, my playing software (linux: name omitted here) happily reads the stream and outputs it in various formats, including to disk.

    3. Re:In the meantime, write a letter by Anonymous Coward · · Score: 0

      I work for the Beeb, and I can tell you the reason they don't drop Real is because systems to take radio output (the size and magnitude of the BBC's output) and place it onto the web are not inexpensive. You could say they cost a fair old fist of dollars - can a public institution afford or justify the investment? Projects to redesign these monster systems are always underway, but there are a lot of project stakeholders owing to the sheer size of the company. The BBC are slowly rolling out Windows Media streams as well, so we don't solely output Real content. Also, at the time when the BBC was starting its internet revolution, Real came forward with a good platform, and not necessilarly one which restricted the abilities of a user to tamper with the stream, but one which had a decent media player that operated across platforms.

      Oh, and I'd love to read some of those parties you've been writing about Real broadcasting :-) (sorry couldn't resist)

  25. VideoLAN Client Stream Output by Anonymous Coward · · Score: 2, Informative
    1. Re:VideoLAN Client Stream Output by Anonymous Coward · · Score: 1, Informative
      To expand on that a bit, here's what I run on my server to convert the WMA feed from KQED (San Francisco public radio station) to a 30Kbps Ogg Vorbis stream I can listen to on my cellphone:

      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.)

  26. Wireless Heaphone by happymark · · Score: 0

    Use Wireless Headphone. Mission Accomplised?
    Either FM based, infrared or bluetooth.

    search froogle for "wireless headphone"

  27. If you have a Mac handy... by SteeldrivingJon · · Score: 0

    If you have a Mac, I believe you can use a product called Nicecast, from Rogue Amoeba. It'll take the audio from any running application and turn it into an MP3 stream.

    So, you could set up RealPlayer, with the BBC world service running, and stream the audio to anything that can consume an MP3 stream.

    It costs $40 and a free demo is available.

    I just confirmed on my Mac that I could use it to stream RealAudio to iTunes (which doesn't do Real natively. I did have a problem connecting from other computers, which may be a networking problem peculiar to my setup.

    --
    September 2011: Looking for Cocoa/iOS work in Boston area Cocoa Programmer Quincy, MA
  28. Good suggestion by iamnotacrook · · Score: 3, Insightful
    The parent poster is correct; that solution will work and is straightforward.

    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.

    1. Re:Good suggestion by Knetzar · · Score: 3, Insightful

      Yes, but the smart business person knows that a problem created and then solved tends to make one look like a hero.

    2. Re:Good suggestion by the+angry+liberal · · Score: 2, Informative

      One also has to ask why: Why is this tripe a headline?

      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 /. accounts.

    3. Re:Good suggestion by 1lus10n · · Score: 1

      Boss is that you ?

      --
      "Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe." --Albert Einstein
    4. Re:Good suggestion by Cennon · · Score: 1

      By that arguement, should any of the slashdot posts exist at all? After all, if people wanted to read about the articles posted, they could just go to the sites themselves, couldn't they? What, his question wasn't 'geek' enough? So shutup, go read something else, and let those that would help, help. Having said that, I have no idea how to help with the first guy's problem. Meh.

    5. Re:Good suggestion by Anonymous Coward · · Score: 0

      i'm a libertarian and i said before the war, "we should not go".
      after the war, i knew it was going to be a mess and that the majority will regret going to Iraq some day... (that day has not arrived)
      that said, even though i have no love for the man, i hope pat buchanan pisses on your rotting carcass.
      you sir, are what's wrong with the democratic party, and will be it's continued undoing.
      pity too...

    6. Re:Good suggestion by Anonymous Coward · · Score: 0

      One has to ask: Why is your shit modded informative?

      Way to get a political slam in, too. This is what happens when Kerry supporters need to find a outlet for their relentless self-righteousness. It sure is a good thing people like you are becoming increasingly marginalized in politics.

      Asshat.

    7. Re:Good suggestion by the+angry+liberal · · Score: 1

      News for Nerds. Stuff that Matters. Not: HALP MY THING FROM THE STORE DONT WORK AND YOU NEED TO HELP ME OK I DONT HAVE TIME TO GO TO GOOGLE SO DO IT ALL FOR ME, K!?

      Sorry, I have to call bullshit when I see it. This article, indeed, is bullshit. How is the Cowboy supposed to recognize he is selling out when you facist yes-men are always defending tripe?

    8. Re:Good suggestion by the+angry+liberal · · Score: 1

      Oh hush up you stuffy old AC.

    9. Re:Good suggestion by Cennon · · Score: 1

      *laugh*

      I'm pretty sure I've never been called a 'facist yes-man' before.

      I'll have to add that one to the resumé.

    10. Re:Good suggestion by Doc+Ruby · · Score: 1

      The story is a request to hack either their LinkSys product, or an upstream server, to make the LinkSys product do something they want, but it doesn't do. It's all the more satisfying a hack, because (according to the story) "[i]t claims to support WMA, but we haven't had any luck in our fiddling yet".

      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 products for fun.

      --

      --
      make install -not war

  29. Partial Answer... by jerryasher · · Score: 1

    I spent several hours today trying to figure out how I could take NPR's All Music Considered programs which are in Real Media and convert them to MP3 to download to my MP3 player.

    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 (look for rm recorder)

    1. Re:Partial Answer... by smchris · · Score: 1
      A lateral move, but if you have a WinTV card and can pick up NPR locally, use radio:

      #!/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.

    2. Re:Partial Answer... by bartle · · Score: 1

      I had to do something similiar to this, I pull episodes of This American Life so I can listen to them while jogging or biking. The product that can do this for you is mplayer. Be warned: it takes some doing to get it setup so that it can decode Realmedia streams but once that's done you can use the following commands:

      mplayer -dumpstream -dumpfile file.rm rtsp://...

      mplayer -ao pcm file.rm

      lame -v --resample 44.1 audiodump.wav file.mp3

    3. Re:Partial Answer... by jerryasher · · Score: 1

      Thanks! I will definitely be checking that out.

  30. Just tell her... by Anonymous Coward · · Score: 0

    ...that she's not using it right! Show her how to use it (secretly switching to a MP3 stream station), then hand it back to her. You'll be off the hook and she will soon put it in the closet. Then you grab it and sell it to some other sucker. Done and done!

    1. Re:Just tell her... by Anonymous Coward · · Score: 0

      Just in case...

      I, Homer Simpson, did not write the above post. There! Are you happy Marge?

  31. Recording Realaudio, WMF, OGG & MP3 Radio stre by t482 · · Score: 5, Informative

    From a blog entry I wrote a few weeks ago:

    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_ sunshine/video/Summer_Sunshine_video_458.wmv
    (thi s will give you a file called "cores" in your home-directory)

    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/

    After that seemed to work I tried directly with vsound. vsound acts as a kind of virtual audio loopback cable ... it allows you to record the output audio stream of ... and line out jacks on the sound card.

    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

    Got the error:
    Failed to load rmacore.so.6.0: /usr/lib/RealPlayer8/Common/rmacore.so.6.0: Cannot open shared object file: No such file or directory

    Well I figured out that they must be looking for the real player in /usr/lib when it was in /usr/local/ so I copied the directories over to where it wanted to find them and everything worked ok.

    Also I tried out streamripper
    http://streamripper.sourceforge.net/, which seemed to work fine ripping various streams. It didn't seem to be able to read the .m3u file so I had to download the m3u file with wget and look at it and then use streamripper http://url.ogg for it to work. Cool - now I can listen to the BBC and CBC and ABC (Australian Broadcasting) and Netherlands Broadcasting when I want to and where I want to.

    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 /dev/dsp -t raw -c 2 -
    | 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...

  32. Re:Poll Troll Toll by benna · · Score: 1

    Where's my sex-with-a-mare option?

    --
    "It is not how things are in the world that is mystical, but that it exists." -Ludwig Wittgenstein
  33. RA Support by jtmas83 · · Score: 1

    I was googling and just came across this SlimServer plugin that claims to be able to add support for RealAudio streams to SlimServer. Haven't tried it, but it looks promising.

  34. swap by karvind · · Score: 0

    Merry Xmas and Happy new year

  35. music file server for WMLS? by Russ+Nelson · · Score: 1

    Does anybody know of a music file server for the WMLS other than twonkyvision-musicserver? It "works" but the combination of it and the WMLS are not terribly reliable.
    -russ

    --
    Don't piss off The Angry Economist
    1. Re:music file server for WMLS? by tjansen · · Score: 1

      Other UPnP servers include:
      - 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)

  36. Re:Poll Troll Toll by Zorilla · · Score: 1

    Wow, you're blind.

    Hint: that last one is not Shockwave.

    --

    It would be cool if it didn't suck.
  37. Cheaper solution by $exyNerdie · · Score: 1


    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 cost less (like the FM transmitter I mentioned) and give you more and with the remaining money, you can take your mom out for dinner.

    1. Re:Cheaper solution by Anonymous Coward · · Score: 0


      I meant speaker output of the computer... and your mom will be able to listen to every song that she can listen to on the PC.

    2. Re:Cheaper solution by Anonymous Coward · · Score: 0

      best ... sig ... evAr.

  38. Re:Recording Realaudio, WMF, OGG & MP3 Radio s by Master+of+Transhuman · · Score: 0, 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?)

    --
    Richard Steven Hack - This sig is TOO GODDAMN SHORT TO DO ANYTHING USEFUL WITH! MORONS!
  39. Re:Hello? Standards? by GlassUser · · Score: 2, Insightful

    Linksys isn't giving their product away. That point won't work here. I didn't say free anywhere.

  40. Why not... by ericdano · · Score: 1
    Why not get her a real radio that can pick those up?

    Such as this one or maybe these.

    Or maybe go XM Radio?

    I don't think any of these radio/internet things are ready for primetime yet........

    --
    It's either on the beat or off the beat, it's that easy.
    I moderate therefore I rule!
    --
  41. ogg by none980 · · Score: 1

    for ogg i guess they dont relize how many people have winamp installed

  42. Be Patient Grasshopper.... by Basehart · · Score: 2, Insightful

    Maybe, shoulda, woulda waited until the Jan 2005 Macworld where I hear there may be an announcement that Apple is making the iPod compatible with Sirius. Much better than listening to the crap pumped out by Clearchannel.

  43. Clear Channel NO LONGER HAS ANY PART OF XM.. by Anonymous Coward · · Score: 0

    stop the urban myth, check the latest FTC filings. Clear Channel NO LONGER OWNS ANY XM STOCK.

    Zero.

    Zip.

    Nada.

    None.

    Neyt.

  44. mplayer by dspeyer · · Score: 3, Informative
    IIRC, mplayer can read realaudio format (using a free-as-in-beer binary x86/PPC/Alpha plugin) and output WAV. If you tell it to use a named FIFO as its output file, you should be able to use it as a conversion filter in front of the broadcasting software with a minor (<1sec) time lag.

    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.

  45. Re:Poll Troll Toll by Morlark · · Score: 1

    Somebody's been h4xing the poll-ahurtz!
    Either that or somebody's been stealing all the vote-ahurtz.

    --
    Santa's suicide mission go!
  46. Another easy at pi solution by AnalogDog · · Score: 1

    I have copied Realplayer files using Gramofile. All you need to do is set up Gramofile to start recoring to a wav, then get realplayer on the station. And yes, you will want to adjust your mixer settings so the sound is good. I suggest running a test segment. I am not sure if this could be scripted, as I don't know if Realplayer or Gramofile takes command line options, but I do know they can be passed through aumix to the mixer. Rob

  47. Re:Hello? Standards? by Anonymous Coward · · Score: 0

    The point is there's a lot more involved than just saying "support OGG". It's a significant investment for the company to make.

  48. Re:Yep, this sounds like the problem.... by Anonymous Coward · · Score: 0

    Fucktards
    The parent is supposed to be modded troll, not off-topic.
    Major morons

  49. no thanks by Anonymous Coward · · Score: 0

    Postings like your remind us all that the Macintosh crowd has become seriously uncool. Even if Apple actually did come up with a nice solution, I wouldn't want to be seen with an Apple product anymore.

    1. Re:no thanks by Basehart · · Score: 1

      "Postings like your remind us"

      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

  50. It's about rights by Anonymous Coward · · Score: 0
    it's not about rights, it's about restrictions

    Depends on whose rights you're talking about.

    If you're talking about consumers, you could very well say "restrictions". However, DRM obviously refers to the rights of a publisher and therefore it refers to "rights". Making a point of saying "restrictions" instead of the correct "rights" is almost as pathetic as spelling Microsoft with $...

    Personally, I just want my music. I couldn't care less about sharing it with anyone else.

    1. Re:It's about rights by moonbender · · Score: 1

      However, DRM obviously refers to the rights of a publisher and therefore it refers to "rights".

      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.

      --
      Switch back to Slashdot's D1 system.
  51. You've been owned by Anonymous Coward · · Score: 0
    Congratulations. You've been owned.

    It's obvious that your girlfriend has been aching for a good assreaming for quite a while, but hasn't been able to find a good way to propose it to you without sounding like a slut. Well, this way she got what she wanted AND she didn't have to think about what to buy you for Christmas.

    Women are such devious creatures.

  52. BlogMatrix Sparks records Real and WMP formats by blogmatrix · · Score: 2, Interesting

    I've been working on BlogMatrix Sparks! for the last few months and it's definitely what this person is looking for:

    • it's open source
    • can record most -- every one I've seen -- streaming radio formats (including Windows Media and Real Player)
    • it runs as a native (GUI) app on Windows and Mac and (in the works) as a Python app on Linux
    • it converts recorded programs into MP3s
    • MP3s are optionally treated as Podcasts and stored in iTunes or Windows Media Player
    • there's a searchable directory of thousands of radio stations. This is really important as many radio stations try to hide their recording URIs
    • radio can be recorded now, once only at a particular time or on a repeating basis (i.e. weekly)
    • programming information is encoded into URI fragments to allow programming to be shared amongst multiple users
    • here's some (old) screenshots

    Credit where credit is due: this is an integration project on top of MPlayer and Lame. Ongoing project news is in our blog.

    - David Janes

    1. Re:BlogMatrix Sparks records Real and WMP formats by halfacat · · Score: 1

      BlogMatrix is definitly what you want. I record BBC programs all week long and then pop them onto my iPod and go cruisin. Very easy to use as well.

  53. Re:I just .... by Anonymous Coward · · Score: 0

    My girlfriend lets me put my penis in her anus occasionally... usually during period time. She has a little bit of hair around her poopie hole and it tickles the head of my penis as i slowly try to pop it in.

  54. iRecordMusic too by gibbsjoh · · Score: 1

    iRecordMusic is somthing very similar for the Mac, and it integrates well with iTunes.. I don't work for theese folks, but I did buy the software, and it 'Does What It Says On The Tin," so to speak.

    --
    -- "...I'm a bad guy because I, well, I sing some rock-and-roll songs." M. Manson
  55. I can do this with windows SNDREC32 by way2trivial · · Score: 1

    seriously, that sound recorder app included with windows-- and it's 12$ cheaper

    --
    every day http://en.wikipedia.org/wiki/Special:Random
  56. Virtual Audio Cable? by www.wi-fi.com.au · · Score: 1

    I was reading an article http://www.henshall.com/blog/archives/001056.html on dailywireless.org the other day talking about a 'new' craze on 'skypecasting'.
    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 that can take audio in from the soundcard should be enough to keep the tunes on their merry way from there...

  57. On windows: by Anonymous Coward · · Score: 0

    1> set record device to stereo output
    2> turn on icecast server
    3> open rm/wma stream on windows box

  58. Challenge by Anonymous Coward · · Score: 0

    http://www.br-online.de/bayern3/live/audio/

    can anyone listen to the windows media stream on a linux machine? (this is perhaps the most popular German station, and it is streaming in windows media player format; it is possible to listen to the realplayer stream under linux.) i highly doubt it! nope, mplayer don't do this.

    if you can make it play under linux, then I believe that you may be able to restream it as mp3, at least in principle. /ac

    1. Re:Challenge by flosofl · · Score: 1

      What challenge? Opened without a problem in mplayer... Stop spreading FUD just because you cannot configure your box correctly!

      --
      "This calls for a very special blend of psychology and extreme violence" - Vyvyan "The Young Ones"
  59. I've got one of these. by ONU+CS+Geek · · Score: 1

    I've had one for about 6 months now, and now, one of my friends picked one up as a Christmas gift.

    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. Went to Mostly Classical from Digitally Imported...worked for about a month, then borked). I noticed that they tried to push their own streaming service, but, I didn't sign up for it.

    Once you do get it working, the sound quality isn't that bad. It even has optical outs, but I'm not sure how those work -- haven't tested them yet.

    --

    I disable sigs...do you?
  60. Re:Donkey Punching is... by Anonymous Coward · · Score: 0

    Striking the recepient's spine during anal intercourse to provoke a spasm of the anal sphincter. Or more crudely, punching someone's backbone while fucking them rectally to get their ass to tighten up just before you cum.

  61. I know the easy answer! by Anonymous Coward · · Score: 0

    no you don't have to buy more hardware if you are a geek. (note: I have never done this)

    You will need:
    * linux :-)
    * CGI/web interface and scripting ability (pick your fav language, I bet it can do it)
    * icecast AND ices
    * mplayer with all of the codecs you need for listening installed and working
    * ability to read and understand manual pages

    Basically, make the cgi script take a url to stream, start up mplayer and tell it to stream the raw wave data (pcm encoded) into the standard input of ices (from icecast.org, this could also be done with pipes). Now you have to make sure that ices is set up to stream its input (using the plugin StdinPCM) to icecast, which will mp3-ify it and handle the rest of delivering to the client.

    badda-bing-badda-boom
    I guess this answer is easy for some.. but its the most straightforward thing I could think of.

  62. Media Center: On-The-Fly Bitrate & Fmt Transco by meehawl · · Score: 1

    Media Center 11 has an elegant-but-beta Library Server that does realtime transcoding of bitrates and formats between its server and attached clients, across LAN or WAN. You can couple this with its "Media Scheduler" module to record internet radio streams and then serve them up in whatever format and bitrate a client specifies. What's nice is that you can also stream video and photos to clients. MC will also do bitrate transcoding while streaming from attached Tivo HMOs.

    MC also has a beta uPNP module that lets you control attached media streaming devices and offload the transcoding duties to them.

    And oh yeah, SlimServer is GPL'd. You can script this to do on-the-fly custom transcoding. It's more flexible than pre-rolled, but less friendly.

    --

    Da Blog
  63. Slight Different usage by kaiocool · · Score: 1

    Could we use this system for a sort of house PA system. I am thinking I could use such a thing. You know, make announcements that must be heard, through these wireless speakers. Maybe programs that at set times, play some music during a some time, and it must be heard. Do you kinda get what I am saying? A PA system, with the capability of making timed pre-recorded etc announcemnts.

  64. Try AlienBBC by hansg · · Score: 1

    Actually, there is a plugin that does this. I have it installed so I can listen to Swedish radio, which is in Real only.

    Check out AlienBBC which uses mplayer to reencode to mp3.

    Works only on linux though, but has been made to work on Mac according to the site.

    /Hans

    --
    I don't have one
  65. Re:Hello? Standards? by mebob · · Score: 1

    I think linksys thought a lot of things weren't significant enought to invest in with the WMLS11B.
    great idea but poorly executed.

    --
    =1000101
  66. Re:Recording Realaudio, WMF, OGG & MP3 Radio s by Sketch · · Score: 1

    You can do most of this in one step with mplayer's encoder, mencoder. You can reencode any format mplayer can read. It will even encode directly from real rtsp and microsoft mms streams if compiled with the appropriate libraries. I sometimes find it useful to "play" real video streams and output them to divx for later viewing. All you have to do is something like this:

    mencoder http://sourcestream/ -ovc none -oac mp3lame -lameopts (see man page for the settings you want) -o output.mp3

    BTW, there is a much simpler way to save anything "streamed" over http in it's original format if it doesn't need to be reencoded:

    curl http://streamurl/ > output.mp3
    (stream.ogg, whatever)

    --
    -- OpenVerse Visual Chat: http://openverse.com
  67. A bit different requirement for me by Anonymous Coward · · Score: 0

    I have a bit different requirement. Thought I may aswell throw in.

    In India, Doordarshan (the state owned broadcaster) has started Direct-To-Home satellite service absolutely free of cost. http://www.ddinews.com/DTH/DDDIRECT. In addition to telivision, it's also pumping 14 radio channels (4 FM channels in stereo). I was wondering if I can connect this set-top-box to a linux box and convert FM music into MP3s. Any suggestions appreciated.

  68. Re:Recording Realaudio, WMF, OGG & MP3 Radio s by t482 · · Score: 1

    Thanks, Streamripper will break the shows into different files, add the IDV3 comments to the files and allow you to specify a specific number of seconds to record.

    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.

  69. Re:Recording Realaudio, WMF, OGG & MP3 Radio s by illtud · · Score: 1

    I wanted to record a couple of radio shows so that I can listen to them later on my linux machine.

    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 under trunk/snatch. Worked pretty well when I tried it last, and it has a scheduling GUI front-end.