Recording On-line Radio Streams using MPlayer on Ubuntu Linux

Want to record your favourite on-line radio show for later enjoyment? Here is a command that will work in Ubuntu Linux or any distribution with MPlayer installed. The following command line will do the trick.

echo 'mplayer -playlist http://radiostreams.cbc.ca/cbc-cbcr1vcr-96.m3u -dumpstream -dumpfile test_stream -endpos 1:00:00' | at 14:00

In this example, mplayer will record one hour ('1:00:00') of the stream at http://radiostreams.cbc.ca/cbc-cbcr1vcr-96.m3u (CBC Radio 1 Vancouver) into the file 'test_stream' starting at 14:00 (2:00 PM).

For more options, see the manual pages of 'mplayer' and 'at' by opening a terminal and running

man at

and

man mplayer

To listen to the show, open with mplayer through the menu at Applications->Sound & Video->MPlayer Movie Player and then use File->Open

Or, to listen from the command line, run

mplayer test_stream

where 'test_stream' is the name of your stream file.