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
Ralf 2013-02-09 08:37am - ralfjaeger85(a-a)gmail(d-d)com - Logged IP: 79.206.235.182

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