Difference between revisions of "Recording radio streams"
From Finninday
Line 16: | Line 16: | ||
That should begin recording at 8:25am and stop recording at 9:05am | That should begin recording at 8:25am and stop recording at 9:05am | ||
+ | |||
+ | It works well, but was unable to determine the song or artist by default and left the resulting mp3 file in a folder called KRML Radio/incomplete/ - .mp3 | ||
+ | |||
+ | Probably have to fiddle with the settings to get it to generate a reasonable file name automatically. |
Revision as of 13:54, 18 May 2008
The following command will create an mp3 file from a radio broadcast stream.
streamripper http://krmlcarmel.afraid.org:8000/listen.pls -d /store/music -a -l 1800
The options are:
- -d /store/music - the location to store the resulting files
- -a - do not try to split the stream into individual files based on silence between songs
- -l 1800 - record for this many seconds (30 minutes) and then quit
Put the following into /etc/cron.d/krmlradio to have it launched by cron:
25 8 * * Sun rday /usr/bin/streamripper http://krmlcarmel.afraid.org:8000/listen.pls -d /store/music -a -l 2400
That should begin recording at 8:25am and stop recording at 9:05am
It works well, but was unable to determine the song or artist by default and left the resulting mp3 file in a folder called KRML Radio/incomplete/ - .mp3
Probably have to fiddle with the settings to get it to generate a reasonable file name automatically.