Save an MP3 stream with Curl

Use the following code to save a MP3 stream to disk. Useful with cron to record a show for later time shifting.

curl -sS -o /tmp/output.mp3 --max-time 1800 http://stream1.opb.org/radio.mp3

Courtesy of comandlinefu.com

Leave A Reply - 1 Reply
Replies
February 9th 2013 - Ralf

Yeah. To clean unreadable garbage at begin and end of the outputted file use mp3val afterwards with parameter -f ;) bak files can be optionally disabled!

All content licensed under the Creative Commons License