NSLU2-Linux
view · edit · print · history

HowTo.PlayInternetRadio History

Hide minor edits - Show changes to markup

January 08, 2008, at 12:41 PM by fcarolo -- formatting
Changed lines 29-33 from:

[@ cat /usr/local/bin/vlcStreamBandit su patrik -c "vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ -I dummy --sout #transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}" > /dev/null & @]

to:
 cat /usr/local/bin/vlcStreamBandit

 su patrik -c "vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ -I dummy --sout  #transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}" > /dev/null &
January 08, 2008, at 12:40 PM by fcarolo -- formatting
Changed line 29 from:

[@

to:

[=[@

Changed lines 32-33 from:

su patrik -c "vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ -I dummy --sout #transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}" > /dev/null & @]

to:

su patrik -c "vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ -I dummy --sout #transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}" > /dev/null & @]=]

January 08, 2008, at 12:40 PM by fcarolo -- formatting
Changed lines 12-13 from:
 vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ --sout '#transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}'
to:
 vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ --sout '#transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}'
Changed lines 17-18 from:
 vlc http://192.168.0.201:8080
to:
 vlc http://192.168.0.201:8080
Changed line 32 from:

su patrik -c "vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ -I dummy --sout #transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}" > /dev/null &

to:

su patrik -c "vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ -I dummy --sout #transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}" > /dev/null &

January 08, 2008, at 12:39 PM by fcarolo -- formatting
Changed lines 4-5 from:

apt-get install vlc

to:
 apt-get install vlc
Changed lines 8-9 from:

yum install vlc-nox

to:
 yum install vlc-nox
Changed lines 12-13 from:

vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ --sout '#transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}'

to:
 vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ --sout '#transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}'
Changed lines 17-18 from:

vlc http://192.168.0.201:8080

to:
 vlc http://192.168.0.201:8080
Added line 22:

[@

Changed lines 25-26 from:
to:

@]

Added line 29:

[@

Added line 33:

@]

January 03, 2008, at 07:17 AM by Patrik Hermansson --
Changed lines 22-23 from:

54 10 * * * /usr/local/bin/vlcStreamBandit

to:

54 10 * * * /usr/local/bin/vlcStreamBandit\\

January 01, 2008, at 11:01 PM by Patrik Hermansson --
Added line 23:
Changed lines 29-30 from:

vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ -I dummy --sout '#transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}' & > /dev/null

to:

su patrik -c "vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ -I dummy --sout #transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}" > /dev/null &

January 01, 2008, at 10:57 PM by Patrik Hermansson --
Changed lines 19-28 from:
to:

To automate this I use Cron and a script. This is added with crontab -e:

54 10 * * * /usr/local/bin/vlcStreamBandit 56 23 * * * killall vlc

The script look like this:

cat /usr/local/bin/vlcStreamBandit vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ -I dummy --sout '#transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}' & > /dev/null

January 01, 2008, at 05:14 PM by Patrik Hermansson --
Changed lines 2-3 from:

On the Slug we install VLC, here we're using SlugOS/LE:

to:

On the Slug we install VLC, here we're using NSLU2:

January 01, 2008, at 05:14 PM by Patrik Hermansson --
Added lines 1-19:

The Slug can play some internet radio stations itself with MPD, but when it comes to stations sending wma streams MPD hits the wall and the content can't be played. A solution for this is to use another more powerful computer as an converting server who converts the wma stream to an ogg stream that the Slug can handle. The setup for this is easy (providing you have a working soundcard). On the Slug we install VLC, here we're using SlugOS/LE:

apt-get install vlc

The same is done on the server, which in this case is running Fedora 8:

yum install vlc-nox

We can then start the stream on the server:

vlc http://bandit.str.mtgradio.dgcsystems.net/bandit/ --sout '#transcode{acodec=mpga,ab=128,aenc=ffmpeg}:standard{access=http,mux=ogg,dst=192.168.0.201:8080}'

The stream is converted in realtime to a ogg stream which then is streamed by http. We can tune into this stream on the Slug with the following command:

vlc http://192.168.0.201:8080

view · edit · print · history · Last edited by fcarolo.
Based on work by fcarolo and Patrik Hermansson.
Originally by Patrik Hermansson.
Page last modified on January 08, 2008, at 12:41 PM