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
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
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!