![]() |
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 NSLU2: 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 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
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 &
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
|