[Gllug] How does RhythmBox do it?

John Winters john at sinodun.org.uk
Thu Jul 3 19:20:00 UTC 2008


Ben Whyte wrote:
> John Winters wrote:
>> I just used mplayer to suck a program off the Radio7 web site that I
>> wanted to listen to (Tony Hancock's "Blood Donor" episode).  I then
>> processed it again with mplayer to turn it into a .wav file and
>> processed that with oggenc to create a .ogg file.
>>
> 
> John
> 
> Could you point me towards any info on sucking the content using mplayer ?

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=0,resample=44100:0:1 \
  -ao pcm:waveheader:file="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.

Cheers,
John
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list