How can I record a radio stream in Linux like the screamer in Windows? Does anyone have any idea or suggestion?
If you want a GUI to do this you can do it using Audacity.
excerpt from wiki
In the drop-down menu on Audacity's Device Toolbar, choose “Wave Out” or “Stereo Mix” as the input source. (The exact name may be different, depending on your computer's sound drivers). On Windows, if you don't have a “Wave Out” or “Stereo Mix” option, or if it won't record, go to the system Control Panel and try to enable this option there. For instructions see: Using the Control Panel on the Wiki.
You can also install streamtuner to browse radio stations.
# Debian/Ubuntu $ apt-get install streamtuner # Fedora/CentOS/RHEL $ yum install streamtuner
screenshot of streamtuner
You can install streamripper like so:
# Debian/Ubuntu $ sudo apt-get install streamripper # Fedora/CentOS/RHEL $ sudo yum install streamripper
To download a stream simply do the following:
$ streamripper <url>
This will save each stream into a .mp3 file.
With curl from the terminal, for example:
curl --output ~/Downloads/Radio/CostaDelMar.mp3 http://sc-costadelmar.1.fm:10156
Useful options are
--max-time <seconds> and
I'm not familiar with screamer, but it sounds like streamripper is what you want. It may already be available in your distro or you can get it at http://streamripper.sourceforge.net/
Check my radio:
For the first download playlist and get server address & port:
# http://www.wefunkradio.com/play/shoutcast.pls # cat shoutcast.pls [playlist] NumberOfEntries=2 File1=http://wefunkhub.com/radiodrops/introdrop-keithmurray2.mp3 File2=http://stream-90.shoutcast.com:80/wefunk_radio_mp3_64kbps
This is the address of server: http://stream-90.shoutcast.com:80
To play stream:
# mplayer "http://stream-90.shoutcast.com:80"
To save stream:
# wget -O stream.mp3 "http://stream-90.shoutcast.com:80"
A tip related to answer of user170267: You can avoid overwriting previous recording by making use of date&time for file name:
curl --output ~/Downloads/Radio/CostaDelMar_$(date '+%F_%T').mp3 http://sc-costadelmar.1.fm:10156