ubuntu-au Digest, Vol 33, Issue 19
Simon Ives
simon at simonives.info
Tue Nov 25 23:23:48 GMT 2008
I use mplayer to save streamed content, including that from ABC Radio
National, to my PC.
To get mplayer enter the following in the terminal:
sudo aptitude install mplayer
To save the audio file from RN you need to discover the URL for it.
This is not the main URL from the website, that URL is simply a
playlist. To get the file's URL you need to:
1. Click the 'listen' link for the program you wish to save.
2. Click on 'Window's Media'.
3. Right click the 'now playing' window and select 'view source'.
4. Scroll down until you find the section that begins with the line
'object id="Media Player"'. In this section you'll find the link to the
playlist. The link for the RN live stream reads
'http://www.abc.net.au/streaming/RN.asx'.
5.
a/ In Gedit select 'Open Location' and enter the playlist URL. For
example - 'http://www.abc.net.au/streaming/RN.asx'.
b/ You may also enter 'wget http://www.abc.net.au/YOUR_URL' into the
terminal and open the downloaded file in a text editor.
6. There will usually be two entries, one prefixed with 'http' and one
prefixed with 'mms', select the one prefixed with 'mms'.
7. enter the following in the terminal - mplayer
mms://SUBSTITUE-YOUR-URL-HERE -dumpstream -PATH-TO-SAVE-TO
YOUR-FILENAME. (note: there are important spaces here).
This will stream the file via mplayer and save it where you want.
If the program is regular and doesn't have a podcast/listen option then
you may want to schedule the stream save with bash and cron.
You can use this method to discover the mms/http URL of streams so that
you can listen to them in your favourite media players too.
--
Simon Ives
simon at simonives.info
www.simonives.info
Please consider the environment before printing this email or any
attachments.
> ------------------------------
>
> Message: 4
> Date: Tue, 25 Nov 2008 22:28:27 +1100
> From: Ross <rwillman at gmail.com>
> Subject: Re: Recording radio stream from sound card - how? P.S. page
> link
> To: agora at justemail.net
> Cc: ubuntu-au at lists.ubuntu.com
> Message-ID:
> <ea77b2070811250328o254e7a52y92211854d9fd9551 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> David,
>
> Firstly, you should consider the license for the media you want to
> record - it may or may not be legal to save the audio, depending on
> ABC's TOS.
>
> That said, if you want to go ahead here is my advice. I think you're
> looking into it in the wrong way. From a quick look on the web site,
> the flash applet downloads an mp3 file which it then plays. The most
> simple way would be to grab the mp3 file yourself.... How do you get
> it? Have a look at the HTTP headers. There's a firefox add-in called
> "Live HTTP headers" that will give you the location of all HTTP
> content transferred through the browser session (including the mp3
> file that the flash applet pulls), so you can grab it yourself.
>
> Have a play around with the add in - or if you're feeling game any
> other method of inspecting HTTP headers, a packet sniffer like
> wireshark will also do the same thing but it's not nearly as friendly
> IMHO. Worst case if they're actively blocking HTTP requests you may
> need to fake the referrer - which is probably the job for wget.
>
> Regards,
>
> Ross
>
> 2008/11/25 David <agora at justemail.net>:
> > Hi,
> >
> > sorry, it would've been helpful if I'd posted the link.
> >
> > The page is:
> > http://www.abc.net.au/wideopenroad/
> >
> > You then click on "Destinations" then on "Road", then on "Road Radio" at
> > the bottom.
> >
> >
> > I'm assuming there's a flash player playing a sound file, but in the
> > source code I can see a 'site_loader.swf' but not a path to the sound
> > file.
> >
> > I get no result from Hardy's inbuilt Sound Recorder.
> >
> > Grateful for any suggestions!
> >
> > Dave
> >
> > --
> > ubuntu-au mailing list
> > ubuntu-au at lists.ubuntu.com
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-au
> >
>
>
>
> ------------------------------
>
More information about the ubuntu-au
mailing list