[Gllug] How does RhythmBox do it?
Ian Scott
mriscott at yahoo.co.uk
Fri Jul 4 08:39:46 UTC 2008
>
> First you need the appropriate .ram file ("Listen using standalone
> RealPlayer", then save the file).
>
> mplayer -dumpstream -dumpfile audio.dmp -ao null `cat whatever.ram`
> mplayer -quiet -vo null -vc dummy -af volume=3D0,resample=3D44100:0:1 \
> -ao pcm:waveheader:file=3D"audio.wav" audio.dmp
> oggenc audio.wav
>
> Unfortunately the first step happens in real time - if it's a half hour
> program it will take half an hour to download. I'm still working on
> putting it all in a script which I can then invoke directly from Firefox.
>
You can use the -bandwidth option in mplayer to suck the stream down real fast.
See http://www.tomtaylor.co.uk/blog/2007/04/17/play-it-again/
I have a script which downloads stuff from Radio 4 automagically, and fetching
a half-hour program only takes a few minutes - the slow bit is reencoding from
wav to mp3.
By the way, you may find http://dave.org.uk/streams/ more usful than the BBC
site for extracting the streams info.
Cheers
Ian
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list