Download icecast and shoutcast streams, redirecting all fetched content to stdout and/or to disk at the same time
icecream [\s-1OPTIONS\s0] \s-1URL\s0 [\s-1URL\s0..]
icecream is a lightweight, non-interactive, stream download utility. It connects to icecast and shoutcast servers or direct stream URLs, and redirects all fetched content to stdout and/or to media files on your disk.
Listen to the stream piping the output to a stdin-capable media player. Save the stream to a named file or split it into different tracks. It is possible to redirect the stream and save it to disk at the same time.
icecream is able to parse pls and m3u playlists, and to download mp3 and ogg direct stream URLs. If the stream is anonymous it will be saved as 'stream-time.mp3', where time is actual timestamp.
Print a help message describing all options
Turn off output
Be verbose
Split stream into tracks (if possible)
Save the stream to file specified by \s-1NAME\s0. Format codes starting with \*(L"%\*(R" will be replaced. See the date command for valid format codes.
Stop downloading the stream after N kb/mb/min/songs
Set user-agent header to \s-1AGENT\s0
Output stream to stdout (implies -q)
Turn syncing on, required for some mpeg players that read from stdin
Turn on debugging outputs
icecream --stdout http://radio.com/playlist.pls | mpg123 -
icecream -t http://metal.org/radio.pls
icecream -t --stdout http://streaming.com/playlist.pls | vlc file:/dev/stdin
icecream -t --stop 74min http://trace.net/playlist.m3u
icecream -q --name 'radio_%Y_%m_%d' --stop 60min http://radio.com/playlist.pls
You are welcome to send bug reports about icecream to our mailing list. Feel free to visit http://icecream.sourceforge.net
Written by Gil Megidish <gil at megidish.net>