Listen to Swedish Radio with Slimdevices player
People have asked me how I managed to get Swedish Radio stations running in my Slimdevices player. Well, it was not that hard, even though many pieces in the puzzle have to be placed in the correct location. You should also have a look at this earlier blog by me about the fdescfs device in FreeBSD 5.3.
Start with making sure mplayer works for you. Try for example to run mplayer on one of the streams from Swedish Radio. The following should work: `charles> mplayer mms://sr-wm.qbrick.com/02038_p1-wm-high : Connected to server: sr-wm.qbrick.com Cache fill: 12.50% (8192 bytes) ASF file format detected. Clip info: name: SR P1 author: Sveriges Radio copyright: SR P1 - Sveriges Radio AB Link to heading
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8003->176400) Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (FFmpeg)) Link to heading
Checking audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le… AF_pre: 44100Hz/2ch/s16le [AO OSS] audio_setup: Can’t open audio device /dev/dsp: No such file or directory AO: [null] 44100Hz 2ch s16le (2 bps) Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le… Video: no video Starting playback… A: 2.2 (02.2) 26.3% 15%`
Then install the AlienBBC plugin for the slimserver software. You can find the code on the site http://www.x2systems.com/AlienBBC/.
When the AlienBBC plugin works, it is time to patch it so also SR channels exists in there. Attached is the file AlienSRMenu.pm
that you should place in the plugins/Alien
directory. Then you must edit the Plugins/Alien/Plugin.pm
file so that it find the SR plugin menu. You find a diff attached to this posting (alien-sr.diff
).