Discussion:
Cannot play mp3 radio streams, but aac streams work
matzrh
2013-07-07 20:17:14 UTC
Permalink
Hello,

this is really odd, at least for my understanding.
I have the logitech media server 7.7.2 installed on a cubieboard which
is kind of a raspberry pi on crack, but with little software support so
far.
I can open and stream radio stations to the following
- a squeezebox radio in my bedroom
- a squeezelite client on the same cubieboard
- a squeezelite client on my iMac

So far, so great. However, on my iMac, I can only play back AAC
streams, and MP3 fails. If anything, the inverse would make more sense
to me, so I am hoping for a quick fix ;)
Streams do work on the cubieboard itself and the Squeezebox radio.

for the iMac: the following error is thrown: [13-07-07 19:34:47.8306]
Slim::Player::Song:: open (409) Error: Couldn't create command line for
mp3 playback for ....broadcast.infomaniak.net/energyzuerich-high.mp3


Some details on my setup:
On the cubieboard: Ubuntu Wheezy custom kernel (based on 3.0.76)
I basically used the Raspberry Pi setup:
allthingspi.webspace.virginmedia.com/lms.php
However, the binaries in /usr/share/squeezeboxserver/Bin/arm-linux did
not work, as the cubieboard's processor is armv7l, not 6l
I installed faad, flac, sox and created symbolic links and it worked,
then. I then found the sources at github.com/Logitech/slimserver-vendor
and natively compiled: faad, flac, sox and wvunpack.
I still cannot run the binaries "mac" and "sls" and wonder if this may
cause the error (if so, where is the source code so I can compile it).

The mac is running OS 10.8.4 and I installed the latest build of
squeezelite (tried it with an older build with the same result).
The squeezelite on the cubieboard was natively compiled, if I recall
correctly (with all the tweaking I have done ;)

The web interface says for all players "The Lame encoder appears to be
installed correctly on your system"
Even more curious: I had a LMS installed on my iMac, that I started,
and I have the same effect, here. The MP3 stream works on my bedroom
radio, but not on the iMac itself.
So my guess is, in spite of the somewhat daring cubieboard installation,
it is more something missing on the iMac that is not advertising that
it can play back mp3, and LMS cannot convert mp3 into something else.

Debug Logs:
for the MP3 station on the iMac, which won't play:

Code:
--------------------

[13-07-07 20:42:22.3333] Slim::Player::StreamingController::_Stream (1215) Song queue is now 0
[13-07-07 20:42:22.3347] Slim::Player::StreamingController::_Stream (1218) a8:20:66:58:6e:ba: preparing to stream song index 0
[13-07-07 20:42:22.3458] Slim::Player::Song::open (363) ...broadcast.infomaniak.net/energyzuerich-high.mp3
[13-07-07 20:42:22.3498] Slim::Player::Song::open (387) seek=false time=0 canSeek=0SEEK_ERROR_TYPE_NOT_SUPPORTEDm3u
[13-07-07 20:42:22.3532] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-flc-squeezelite-a8:20:66:58:6e:ba
[13-07-07 20:42:22.3546] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-flc-*-a8:20:66:58:6e:ba
[13-07-07 20:42:22.3651] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-flc-squeezelite-*
[13-07-07 20:42:22.3711] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-flc-*-*
[13-07-07 20:42:22.3735] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-aif-squeezelite-a8:20:66:58:6e:ba
[13-07-07 20:42:22.3748] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-aif-*-a8:20:66:58:6e:ba
[13-07-07 20:42:22.3861] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-aif-squeezelite-*
[13-07-07 20:42:22.3894] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-aif-*-*
[13-07-07 20:42:22.3926] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-pcm-squeezelite-a8:20:66:58:6e:ba
[13-07-07 20:42:22.3943] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-pcm-*-a8:20:66:58:6e:ba
[13-07-07 20:42:22.4005] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-pcm-squeezelite-*
[13-07-07 20:42:22.4066] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-pcm-*-*
[13-07-07 20:42:22.4084] Slim::Player::TranscodingHelper::getConvertCommand2 (425) Error: Didn't find any command matches for type: mp3
[13-07-07 20:42:22.4098] Slim::Player::Song::open (409) Error: Couldn't create command line for mp3 playback for ...broadcast.infomaniak.net/energyzuerich-high.mp3
[13-07-07 20:42:22.4115] Slim::Player::StreamingController::_playersMessage (789) Problem: Unable to play file type for:: ...broadcast.infomaniak.net/energyzuerich-high.mp3
[13-07-07 20:42:22.4152] Slim::Player::StreamingController::_willRetry (1463) no retry data

--------------------

same thing on the cubieboard / squeezelite, which works, although some
errors are thrown:

Code:
--------------------

[13-07-07 20:44:29.0294] Slim::Player::TranscodingHelper::checkBin (239) enabled
[13-07-07 20:44:29.0322] Slim::Player::TranscodingHelper::checkBin (241) Found command: -
[13-07-07 20:44:29.0336] Slim::Player::TranscodingHelper::getConvertCommand2 (361) Rejecting - because no available stream mode supported: R
[13-07-07 20:44:29.0384] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-mp3-transcode-*
[13-07-07 20:44:29.0655] Slim::Player::TranscodingHelper::enabledFormat (198) Checking to see if mp3-mp3-transcode-* is enabled
[13-07-07 20:44:29.0672] Slim::Player::TranscodingHelper::checkBin (239) enabled
[13-07-07 20:44:29.0688] Slim::Player::TranscodingHelper::checkBin (241) Found command: [lame] --silent -q $QUALITY$ -v $BITRATE$ $RESAMPLE$ --mp3input $FILE$ -
[13-07-07 20:44:29.0704] Slim::Player::TranscodingHelper::getConvertCommand2 (361) Rejecting [lame] --silent -q $QUALITY$ -v $BITRATE$ $RESAMPLE$ --mp3input $FILE$ - because no available stream mode supported: R
[13-07-07 20:44:29.0717] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-loc-squeezelite-f2:b9:23:cd:dd:62
[13-07-07 20:44:29.0730] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-loc-*-f2:b9:23:cd:dd:62
[13-07-07 20:44:29.0743] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-loc-squeezelite-*
[13-07-07 20:44:29.0837] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-loc-*-*
[13-07-07 20:44:29.0883] Slim::Player::TranscodingHelper::getConvertCommand2 (425) Error: Didn't find any command matches for type: mp3
[13-07-07 20:44:30.1496] Slim::Player::StreamingController::_eventAction (271) f2:b9:23:cd:dd:62: StatusHeartbeat in PLAYING-STREAMING -> Slim::Player::StreamingController::_CheckSync

--------------------

and the AAC file playing on the iMac (also working)

Code:
--------------------

13-07-07 20:51:06.0836] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: aac-pcm-*-*
[13-07-07 20:51:06.0914] Slim::Player::TranscodingHelper::enabledFormat (198) Checking to see if aac-pcm-*-* is enabled
[13-07-07 20:51:06.0928] Slim::Player::TranscodingHelper::checkBin (239) enabled
[13-07-07 20:51:06.0941] Slim::Player::TranscodingHelper::checkBin (241) Found command: [faad] -q -w -f 2 -b 1 $FILE$
[13-07-07 20:51:06.0959] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: ogg-pcm-*-*
[13-07-07 20:51:06.0972] Slim::Player::TranscodingHelper::enabledFormat (198) Checking to see if ogg-pcm-*-* is enabled
[13-07-07 20:51:06.0985] Slim::Player::TranscodingHelper::checkBin (239) enabled
[13-07-07 20:51:06.0998] Slim::Player::TranscodingHelper::checkBin (241) Found command: [sox] -q -t ogg $FILE$ -t raw -r 44100 -c 2 -2 -s -
[13-07-07 20:51:06.1012] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-pcm-*-*
[13-07-07 20:51:06.1026] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-flc-*-*
[13-07-07 20:51:06.1039] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: mp3-aif-*-*
[13-07-07 20:51:06.1055] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: wmap-pcm-*-*
[13-07-07 20:51:06.1075] Slim::Player::TranscodingHelper::enabledFormat (198) Checking to see if wmap-pcm-*-* is enabled
[13-07-07 20:51:06.1093] Slim::Player::TranscodingHelper::checkBin (239) enabled
[13-07-07 20:51:06.1106] Slim::Player::TranscodingHelper::checkBin (241) Found command: [wmadec] -r 44100 -b 16 -n 2 $PATH$
[13-07-07 20:51:06.1129] Slim::Player::TranscodingHelper::checkBin (264) couldn't find binary for: wmadec
---some stuff cut---
[13-07-07 20:51:06.1559] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: wma-aif-*-*
[13-07-07 20:51:06.1573] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: rtsp-pcm-*-*
[13-07-07 20:51:06.1587] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: rtsp-flc-*-*
[13-07-07 20:51:06.1600] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: rtsp-aif-*-*

--------------------

any ideas?


------------------------------------------------------------------------
matzrh's Profile: http://forums.slimdevices.com/member.php?userid=60644
View this thread: http://forums.slimdevices.com/showthread.php?t=99124
Roland0
2013-07-07 22:11:44 UTC
Permalink
maybe your squeezelite / iMac cannot play mp3s natively. Are libmad
and/or libmpg123 installed on your Mac?

try to run squeezelite from the mac cli, check this line:

Code:
--------------------

-c <codec1>,<codec2> Restrict codecs to those specified, otherwise load all available codecs; known codecs: flac,pcm,mp3,ogg,aac (mad,mpg for specific mp3 codec)

--------------------


is mp3 available?

you might want to check the cubieboard / squeezelite for the same issue
- the mp3/mp3 conversion looks suspicious...



[ extGUI4LMS - an alternative web interface: 'forum'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
/ 'homepage' (http://code.google.com/p/extgui4lms/) ]
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=99124
matzrh
2013-07-07 22:54:24 UTC
Permalink
hmm. I get the same line as you. The -h option just prints out the
help message, though. It may be a standard phrase without actually
checking, what is happening.
I checked the options and enabled some logging, though, and get the
following:


Code:
--------------------

[00:45:10.838122] stream_init:264 init stream
[00:45:10.839057] stream_init:265 streambuf size: 2097152
[00:45:10.839096] output_init:1337 init output
[00:45:10.839116] output_init:1340 outputbuf size: 3528000
[00:45:10.839122] output_init:1381 requested latency: 0
[00:45:10.900090] output_init:1398 output: default maxrate: 384000
[00:45:10.900113] _pa_open:520 opening device in PlayNice mode
[00:45:10.901609] _pa_open:540 opened device 2 - Built-in Output at 44100 latency 12 ms
[00:45:10.901660] decode_init:129 init decode
[00:45:10.902113] load_faad:560 dlerror: dlopen(libfaad.2.dylib, 2): image not found
[00:45:10.902178] load_vorbis:257 dlerror: dlopen(libvorbisidec.1.dylib, 2): image not found
[00:45:10.906312] load_flac:235 loaded libFLAC.8.dylib
[00:45:10.906321] register_pcm:352 using pcm
[00:45:10.906364] load_mad:309 dlerror: dlopen(libmad.0.dylib, 2): image not found
[00:45:10.906395] load_mpg:215 dlerror: dlopen(libmpg123.0.dylib, 2): image not found
[00:45:10.906446] discover_server:633 sending discovery
[00:45:10.913540] discover_server:644 got response from: 192.168.1.55:3483
[00:45:10.913561] slimproto:686 connecting to 192.168.1.55:3483
[00:45:10.914025] slimproto:713 connected
[00:45:10.914053] sendHELO:109 mac: a8:20:66:58:6e:ba
[00:45:10.914058] sendHELO:111 cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePlayPoints=1,HasDigitalOut=1,MaxSampleRate=384000,flc,aif,pcm

--------------------

The flc,aif,pcm message confirms that the server tries some
conversions.
I will look into those libraries that cannot be loaded (libfaad and
libvorbisidec). Too late, now ;)


------------------------------------------------------------------------
matzrh's Profile: http://forums.slimdevices.com/member.php?userid=60644
View this thread: http://forums.slimdevices.com/showthread.php?t=99124
Roland0
2013-07-07 23:58:46 UTC
Permalink
matzrh wrote:
Code:
--------------------
Post by matzrh
[00:45:10.902113] load_faad:560 dlerror: dlopen(libfaad.2.dylib, 2): image not found
[00:45:10.902178] load_vorbis:257 dlerror: dlopen(libvorbisidec.1.dylib, 2): image not found
[00:45:10.906312] load_flac:235 loaded libFLAC.8.dylib
[00:45:10.906364] load_mad:309 dlerror: dlopen(libmad.0.dylib, 2): image not found
[00:45:10.906395] load_mpg:215 dlerror: dlopen(libmpg123.0.dylib, 2): image not found
--------------------
Well, it pretty clearly states that libmad and libmpg123 cannot be found
- that's why there's no mp3 (same for aac and ogg - libraries also
missing)

The line

Code:
--------------------

[00:45:10.914058] sendHELO:111 cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePlayPoints=1,HasDigitalOut=1,MaxSampleRate=384000,flc,aif,pcm

--------------------

means that squeezelite tells the server it can only play flac, aif, and
pcm - it's not about the conversion, that's up to the server



[ extGUI4LMS - an alternative web interface: 'forum'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
/ 'homepage' (http://code.google.com/p/extgui4lms/) ]
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=99124
matzrh
2013-07-08 19:35:05 UTC
Permalink
Yes, with the squeezelite log it became pretty clear.
I had my codecs all mixed up and partially not installed. Also because
I installed some natively and others with homebrew. Now I have all
codecs re-installed with homebrew and it works well.
Will check the codecs on the Server, though, as well.


Code:
--------------------

[21:30:01.442452] sendHELO:109 mac: a8:20:66:58:6e:ba
[21:30:01.442463] sendHELO:111 cap: Model=squeezelite,ModelName=SqueezeLite,AccuratePlayPoints=1,HasDigitalOut=1,MaxSampleRate=384000,aac,ogg,flc,aif,pcm,mp3

--------------------

Thanks for your help


------------------------------------------------------------------------
matzrh's Profile: http://forums.slimdevices.com/member.php?userid=60644
View this thread: http://forums.slimdevices.com/showthread.php?t=99124
rkrug
2014-12-02 10:35:47 UTC
Permalink
Post by matzrh
Yes, with the squeezelite log it became pretty clear.
I had my codecs all mixed up and partially not installed. Also because
I installed some natively and others with homebrew. Now I have all
codecs re-installed with homebrew and it works well.
Will check the codecs on the Server, though, as well.
The programs which have to be installed in homebrew are:

mad
mpg123

By using the commands


Code:
--------------------
brew install mad
brew install mpg123
--------------------


Cheers

Rainer


------------------------------------------------------------------------
rkrug's Profile: http://forums.slimdevices.com/member.php?userid=62249
View this thread: http://forums.slimdevices.com/showthread.php?t=99124
Loading...