Recording radio streams

From Finninday
Jump to: navigation, search

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.

opbmusic.org

Here is my standard invocation for recording from OPB:

streamripper http://opbmusic.org/media/opbmusic.pls -d /store/music/opbmusic1 -l 9600 -q

The goals here are to

  • save files with a sequence number so that order is preserved
  • put the files in a directory that won't collide with other recorded sessions