2006 / Radio FM4 Stream Web Recorder

Radio FM4 Stream Web Recorder

If you ever wanted to have an easy time recording shows from the Radio FM4 web stream (fm4.amd.co.at), you might have found something. This set of bash/Python/PHP scripts makes it possible to schedule and record the (un)official FM4 webradio stream to your harddisk, date and timestamps and show name included. If you have a reliable broadband connection, this should give you perfect recordings in minutes! But hey, try before you rely - the fact that it works for me doesn't neccessarily mean that it will work for you.

Utilities included

  • fm4schema - Prints the current playing show
  • oggvalve.py - Wrapper around the ogg utilities; records web streams to files
  • record-ogg - Wrapper around oggvalve.py and fm4schema to automatically record the stream + information about it

Usage Information

$ record-ogg -d 30
streaming from  http://listen.fm4.amd.co.at:31337/fm4-mq.ogg
writing to      /home/thp/lib/music/web/20061127_2127.ogg
duration is     30
starting capture process
stopping capture process 6582
trying to kill all ogg123
$ oggvalve.py --help

usage: oggvalve.py [-h|--help] [-o|--output=stream_20061127_2127.ogg] [-d|--duration=20] STREAM-URL

$ oggvalve.py http://listen.fm4.amd.co.at:31337/fm4-mq.ogg
streaming from  http://listen.fm4.amd.co.at:31337/fm4-mq.ogg
writing to      stream_20061127_2129.ogg
duration is     10
starting capture process
stopping capture process 6590
trying to kill all ogg123

Download

You can download the current (as of 2009-01-03) version and the code history as Git working copy here:

fm4webrecorder-2009-01-03.tar.gz

If you make modifications, please send patches to me, so I can update the release version on this website.


Mon May 28 13:59:50 2007 +0000