HOW TO record online radio stations to your HDD
Before we start install the
mplayer:
sudo apt-get install mplayer
Simplest way to do this is to do it from terminal. Navigate to the folder where you want to download the stream and type:
mplayer -dumpfile radioStream.mp3 -dumpstream http://www.onlineRadioAddress.com
For it to work properly we will need to change some options. To neutralize the short drops in speed of your internet connection we will need to resize the cache of the mplayer and the default size of the cache used.
mplayer -cache 4096 -cache-min 99 -dumpfile radioStream.mp3 -dumpstream http://www.onlineRadioAddress.com
This way you will have a 4MB cache that will be kept 99% full at all times possible. So if your internet connection slows down below the speed needed to stream the radio you will still have 4 MB of buffer. To stop the recording press
ctrl+c.
Here's an example:
mplayer -cache 4096 -cache-min 99 -dumpfile frequence3.mp3 -dumpstream http://stream-hautdebit.frequence3.net:8000/
You can leave a comment at the homepage.