It is strange that on Habré such useful program as
Streamripper was not mentioned
yet . This is a console program that allows you to record Internet radio from resources such as
Shoutcast and
Icecast . And it’s not just recording, but pulling out individual tracks from the stream along with the titles.
The program runs on Linux, FreeBSD, BeOS, Windows and OS / 2. Streamripper has several graphical shells, for example
StationRipper for Windows. A complete list of skins is on the Streamripper home page.
Using Streamripper
Now a little about the use and possibilities of the program. In this case, I will assume (when naming files, etc.) that the stream is in mp3 format. In the simplest case, the program is used as follows:
streamripper URL
Such a team will set Streamripper at a given URL (the URL can be easily pulled from the contents of the playlist). Streamripper by the name of the stream (which is also broadcast) will create a directory in the current one and store tracks there. Tracks that are not fully recorded will be stored in a subdirectory named incomplete. The program must be terminated forcibly (for example, by pressing Ctrl-C).
')
STREAM_NAME
|-A.mp3
|-B.mp3
|-incomplete
|-C.mp3
To create a directory not in the current directory, but in an arbitrary directory, you can use the -d switch.
streamripper URL -d DIR
DIR
|-STREAM_NAME
|-A.mp3
|-B.mp3
|-incomplete
|-C.mp3
To prevent the Streamripper from creating a directory with the name of the stream, you must use the -s option.
streamripper URL -d DIR -s
DIR
|-A.mp3
|-B.mp3
|-incomplete
|-C.mp3
Streamripper is able to complete work after a specified period of time (in seconds) or at the time when the size of the received files exceeds the specified amount (in MB). To do this, use the keys -l (lowercase L) and -M, respectively. If the -l and -M keys are used simultaneously, the program will exit when one of the values is exceeded.
streamripper URL -l 7200
Work for two hours.
streamripper URL -M 50
Work until 50MB of music is accumulated.
With the help of Streamripper you can simultaneously listen and record radio, avoiding duplication of traffic. To do this, use the -r key to create a relay-server. By default, it will hang on port 8000. Linux users can do, for example, like this:
streamripper URL -r
and in another window
mplayer http://127.0.0.1:8000
You can learn about the remaining options by typing
streamripper -h
or
man streamripper
(for Unix-like systems).
Use for recording Internet radio utility wget
If dividing into tracks is not required, you can use the console program to download wget to record Internet radio. In Linux distributions, it is usually installed by default, otherwise it probably is in the repository. Windows users can pick up wget for Windows, for example,
here .
wget -O .mp3 URL
In this case, it is necessary to shut down wget. To limit the download time, you can use a third-party
timeout utility. In Ubuntu, just install the timeout package. Using:
timeout 30 wget -O .mp3 URL
Record for 30 seconds
// First post on Habré. Correct, if that.