PDA

View Full Version : AlienBBC with SC7 on Ubuntu not happy :-(



retmana
2008-02-21, 15:32
Hi all,

I've just replaced my Windows XP server running SlimServer with a new Ubuntu 7.10 desktop (AMD64 on Intel Dual Core) with the SC7 (17630 build) testing debian package and the latest AlienBBC plugin (http://www.x2systems.com/AlienBBC/alienbbc-linux-v2.00beta5_7.0.tar.gz).

I've searched through a load of posts on this and other forums and have *almost* got AlienBBC working nicely.

The plugin is loading properly and displaying stations on the SB3. I also have installed mplayer (and lame,w64codecs etc.) and tested this standalone successfully with a bbc stream.

However, when I play a stream through AlienBBC the display shows "CONNECTING..." for a few seconds, then stops at 00:00 and no sound is played.

I've increased the network timeout to 30 seconds, checked that all the formats are mapped to support FLC/MP3/RTSC etc. but something is still wrong somewhere.

I tweaked a few log settings and see lots of "Buffering... 0 / 20480" lines repeating before it then writes an error "end of file or error on socket".. which I guess means it can't read the stream.

Any light anyone could shed on this or any other ideas to investigate would be much appreciated :-)
I'm hoping to stay on this release rather than go back to Slim server 6, but this is starting to get annoying now...

retmana
2008-02-21, 15:33
If it helps, here's a snippet of the log:


[08-02-21 22:22:20.7733] Slim::Player::Source::openSong (1690) Trying to open: rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio1/live/r1_dsat_g2.ra?BBC-UID=e4c7eb0b5881b97ac84231ee203070dc760dbf8af00061 d4b42f38e1ff2bb685&SSO2-UID=
[08-02-21 22:22:20.7735] Slim::Player::Source::openSong (1704) URL is remote (no direct streaming) [rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio1/live/r1_dsat_g2.ra?BBC-UID=e4c7eb0b5881b97ac84231ee203070dc760dbf8af00061 d4b42f38e1ff2bb685&SSO2-UID=]
[08-02-21 22:22:20.7737] Slim::Player::ProtocolHandlers::openRemoteStream (66) Trying to open protocol stream for rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio1/live/r1_dsat_g2.ra?BBC-UID=e4c7eb0b5881b97ac84231ee203070dc760dbf8af00061 d4b42f38e1ff2bb685&SSO2-UID=
[08-02-21 22:22:20.7739] Slim::Player::ProtocolHandlers::openRemoteStream (70) Found handler for rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio1/live/r1_dsat_g2.ra?BBC-UID=e4c7eb0b5881b97ac84231ee203070dc760dbf8af00061 d4b42f38e1ff2bb685&SSO2-UID= - using Plugins::Alien::RTSP
[08-02-21 22:22:20.7807] Slim::Player::TranscodingHelper::getConvertCommand (201) undermax = 1, type = rtsp, squeezebox2 = 00:04:20:06:2c:52
[08-02-21 22:22:20.7809] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-wma-squeezebox2-00:04:20:06:2c:52
[08-02-21 22:22:20.7811] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-wma-*-00:04:20:06:2c:52
[08-02-21 22:22:20.7812] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-wma-squeezebox2-*
[08-02-21 22:22:20.7814] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-wma-*-*
[08-02-21 22:22:20.7816] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-ogg-squeezebox2-00:04:20:06:2c:52
[08-02-21 22:22:20.7818] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-ogg-*-00:04:20:06:2c:52
[08-02-21 22:22:20.7820] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-ogg-squeezebox2-*
[08-02-21 22:22:20.7822] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-ogg-*-*
[08-02-21 22:22:20.7823] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-flc-squeezebox2-00:04:20:06:2c:52
[08-02-21 22:22:20.7825] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-flc-*-00:04:20:06:2c:52
[08-02-21 22:22:20.7827] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-flc-squeezebox2-*
[08-02-21 22:22:20.7829] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: rtsp-flc-*-*
[08-02-21 22:22:20.7830] Slim::Player::TranscodingHelper::enabledFormat (105) Checking to see if rtsp-flc-*-* is enabled
[08-02-21 22:22:20.7832] Slim::Player::TranscodingHelper::enabledFormat (113) There are 6 disabled formats...
[08-02-21 22:22:20.7834] Slim::Player::TranscodingHelper::enabledFormat (119) Testing ape-flc-*-* vs rtsp-flc-*-*
[08-02-21 22:22:20.7836] Slim::Player::TranscodingHelper::enabledFormat (119) Testing ape-mp3-*-* vs rtsp-flc-*-*
[08-02-21 22:22:20.7837] Slim::Player::TranscodingHelper::enabledFormat (119) Testing ape-wav-*-* vs rtsp-flc-*-*
[08-02-21 22:22:20.7839] Slim::Player::TranscodingHelper::enabledFormat (119) Testing mov-aif-*-* vs rtsp-flc-*-*
[08-02-21 22:22:20.7841] Slim::Player::TranscodingHelper::enabledFormat (119) Testing mov-flc-*-* vs rtsp-flc-*-*
[08-02-21 22:22:20.7842] Slim::Player::TranscodingHelper::enabledFormat (119) Testing mov-mp3-*-* vs rtsp-flc-*-*
[08-02-21 22:22:20.7844] Slim::Player::TranscodingHelper::checkBin (146) enabled
[08-02-21 22:22:20.7846] Slim::Player::TranscodingHelper::checkBin (148) Found command: [mplayer.sh] -really-quiet -vc null -vo null -bandwidth 10000000 -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 $FILE$ | [flac] -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -
[08-02-21 22:22:20.7848] Slim::Player::TranscodingHelper::getConvertCommand (302) Matched Format: flc Type: rtsp Command: [mplayer.sh] -really-quiet -vc null -vo null -bandwidth 10000000 -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 $FILE$ | [flac] -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -
[08-02-21 22:22:20.7851] Plugins::Alien::RTSP::new (55) rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio1/live/r1_dsat_g2.ra?BBC-UID=e4c7eb0b5881b97ac84231ee203070dc760dbf8af00061 d4b42f38e1ff2bb685&SSO2-UID=, flc
[08-02-21 22:22:20.7896] Slim::Player::TranscodingHelper::tokenizeConvertCo mmand (360) Using command for conversion: "/usr/share/squeezecenter/Plugins/Alien/Bin/mplayer.sh" -really-quiet -vc null -vo null -bandwidth 10000000 -cache 128 -af volume=0,resample=44100:0:1,channels=2 -ao pcm:nowaveheader:file=/dev/fd/3 "rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio1/live/r1_dsat_g2.ra?BBC-UID=e4c7eb0b5881b97ac84231ee203070dc760dbf8af00061 d4b42f38e1ff2bb685&SSO2-UID=" | "/usr/share/squeezecenter/Bin/i386-linux/flac" -cs --totally-silent --endian=little --channels=2 --sign=signed --bps=16 --sample-rate=44100 --compression-level-0 -
[08-02-21 22:22:20.7968] Slim::Player::Source::openSong (1716) remoteURL is a song (audio): rtsp://rmlive.bbc.co.uk/bbc-rbs/rmlive/ev7/live24/radio1/live/r1_dsat_g2.ra?BBC-UID=e4c7eb0b5881b97ac84231ee203070dc760dbf8af00061 d4b42f38e1ff2bb685&SSO2-UID=
[08-02-21 22:22:20.7980] Slim::Player::TranscodingHelper::getConvertCommand (201) undermax = 1, type = flc, squeezebox2 = 00:04:20:06:2c:52
[08-02-21 22:22:20.7985] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-wma-squeezebox2-00:04:20:06:2c:52
[08-02-21 22:22:20.7987] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-wma-*-00:04:20:06:2c:52
[08-02-21 22:22:20.7989] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-wma-squeezebox2-*
[08-02-21 22:22:20.7991] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-wma-*-*
[08-02-21 22:22:20.7993] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-ogg-squeezebox2-00:04:20:06:2c:52
[08-02-21 22:22:20.7995] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-ogg-*-00:04:20:06:2c:52
[08-02-21 22:22:20.7996] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-ogg-squeezebox2-*
[08-02-21 22:22:20.7998] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-ogg-*-*
[08-02-21 22:22:20.8000] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-flc-squeezebox2-00:04:20:06:2c:52
[08-02-21 22:22:20.8002] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-flc-*-00:04:20:06:2c:52
[08-02-21 22:22:20.8004] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-flc-squeezebox2-*
[08-02-21 22:22:20.8006] Slim::Player::TranscodingHelper::checkBin (138) Checking formats for: flc-flc-*-*
[08-02-21 22:22:20.8008] Slim::Player::TranscodingHelper::enabledFormat (105) Checking to see if flc-flc-*-* is enabled
[08-02-21 22:22:20.8010] Slim::Player::TranscodingHelper::enabledFormat (113) There are 6 disabled formats...
[08-02-21 22:22:20.8012] Slim::Player::TranscodingHelper::enabledFormat (119) Testing ape-flc-*-* vs flc-flc-*-*
[08-02-21 22:22:20.8014] Slim::Player::TranscodingHelper::enabledFormat (119) Testing ape-mp3-*-* vs flc-flc-*-*
[08-02-21 22:22:20.8016] Slim::Player::TranscodingHelper::enabledFormat (119) Testing ape-wav-*-* vs flc-flc-*-*
[08-02-21 22:22:20.8017] Slim::Player::TranscodingHelper::enabledFormat (119) Testing mov-aif-*-* vs flc-flc-*-*
[08-02-21 22:22:20.8019] Slim::Player::TranscodingHelper::enabledFormat (119) Testing mov-flc-*-* vs flc-flc-*-*
[08-02-21 22:22:20.8021] Slim::Player::TranscodingHelper::enabledFormat (119) Testing mov-mp3-*-* vs flc-flc-*-*
[08-02-21 22:22:20.8023] Slim::Player::TranscodingHelper::checkBin (146) enabled
[08-02-21 22:22:20.8025] Slim::Player::TranscodingHelper::checkBin (148) Found command: -
[08-02-21 22:22:20.8028] Slim::Player::TranscodingHelper::getConvertCommand (302) Matched Format: flc Type: flc Command: -
[08-02-21 22:22:20.8030] Slim::Player::Source::openSong (1742) remoteURL command - type flc format flc
[08-02-21 22:22:20.8031] Slim::Player::Source::openSong (1743) remoteURL stream format : flc
[08-02-21 22:22:20.8065] Slim::Player::Source::playmode (401) 00:04:20:06:2c:52 New play mode: play
[08-02-21 22:22:20.8118] Slim::Player::Source::playmode (556) 00:04:20:06:2c:52: Current playmode: play
[08-02-21 22:22:20.9392] Slim::Player::Squeezebox::buffering (303) Buffering... 0 / 20480
[08-02-21 22:22:21.3435] Slim::Player::Squeezebox::buffering (303) Buffering... 0 / 20480
[08-02-21 22:22:21.7474] Slim::Player::Squeezebox::buffering (303) Buffering... 0 / 20480
[08-02-21 22:22:22.1515] Slim::Player::Squeezebox::buffering (303) Buffering... 0 / 20480
[08-02-21 22:22:22.3277] Slim::Player::Source::readNextChunk (2320) Read to end of file or pipe
[08-02-21 22:22:22.3283] Slim::Utils::Misc::msg (1241) Warning: [22:22:22.3279] Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Slim/Player/Source.pm line 2344.
[08-02-21 22:22:22.3287] Slim::Player::Source::readNextChunk (2343) end of file or error on socket, opening next song, (song pos: 0(tell says: . 0), totalbytes: )
[08-02-21 22:22:22.3290] Slim::Player::Source::readNextChunk (2356) Didn't stream any bytes for this song, so just mark it as played
[08-02-21 22:22:22.3293] Slim::Player::Source::gotoNext (1206) Opening next song...

retmana
2008-02-21, 16:44
No worries guys, I've sorted this now.

I got a little suspicious over the mention of FLC codecs in the log, I did a little more testing and discovered other stream formats (e.g. Virgin) were using MP3 and working.

I did a little digging in /usr/share/squeezecentre/Bin
there's an i386-linux folder in there with some binaries for flac, alac, sox etc.
I tried running the flac in there and got a file not found error - odd, but I think that's because this is a 32 bit binary and I'm running a 64 bit O/S.

So, I overwrote the flac file in i386-linux with the 64 bit version in /usr/bin/flac and now the BBC streams play properly.

Hurrah!

I guess this might help others running 64bit O/S's, but perhaps the package is broken since it shouldn't have installed 32 bit binaries really. Also, is there a better/cleaner way to relace/update these addon programs?

Anyway, I can listen to the radio now, and finally chuck the Windows XP server in a skip :-)

Many thanks,

Andrew.

Mark Miksis
2008-02-21, 17:03
I did a little digging in /usr/share/squeezecentre/Bin
there's an i386-linux folder in there with some binaries for flac, alac, sox etc.
I tried running the flac in there and got a file not found error - odd, but I think that's because this is a 32 bit binary and I'm running a 64 bit O/S.

So, I overwrote the flac file in i386-linux with the 64 bit version in /usr/bin/flac and now the BBC streams play properly.

Hurrah!

I guess this might help others running 64bit O/S's, but perhaps the package is broken since it shouldn't have installed 32 bit binaries really. Also, is there a better/cleaner way to relace/update these addon programs?

Please open a bug about this. Bug 7158 addressed a similar problem with the mDNSResonder binary. It looks like no one has actualy tested the rest of those binaries on AMD64/Ubuntu.

retmana
2008-02-22, 01:51
I've raised this in Bugzilla - it's bug number 7279.
http://bugs.slimdevices.com/show_bug.cgi?id=7279

Thanks all for the other helpful posts on here... don't think I would have got this far without them.

Cheers,

Andrew.