PDA

View Full Version : 7.3 and remote streaming (via stream.mp3) of m4a files - ignoring bitrate limiting



abton
2008-12-12, 06:53
Hi all,

I've been using the recently released version 7.3 of SqueezeCenter to listen to some music at work making use of the stream.mp3 functionality. I've noticed that when I play my FLAC or MP3 files it obeys the bitrate limiting I have set in the SqueezeCenter options (192 kbps), but when I play my M4A files (all iTunes Plus files) it always streams at 128 kbps ignoring the bitrate setting.

I have checked the bitrate by playing the file in both Foobar2000 and Window Media Player and they both report the stream as 128 kbps. Has anyone else noticed this or is it just me?

SqueezeCenter is installed on a Mac Mini running Mac OS X 10.5.5 with lame correctly installed (via MacPorts).

Regards,

Neil.

awy
2008-12-12, 07:16
I wonder why. Could you enable logging at player.source=info level and post the results here. Just the 20 or so lines at the start of streaming the file.

abton
2008-12-12, 08:38
The problems seems to be getting worse!

As I have experienced problems before after upgrades I have just performed a complete uninstall and re-install of SqueezeCenter following instructions I have obtained previously from Logitech support. The re-install worked perfectly and it re-scanned my music library and everything looked fine. I then connected to the remote stream using Foobar2000 and SqueezeCenter dies - the web interface stops responding and no music is streamed. The server.log file reports the following:

[08-12-12 15:00:11.0626] Slim::Schema::init (153) Warning: Creating new database - empty database or database from 6.3.x found
[08-12-12 15:00:15.7387] Slim::Plugin::MusicMagic::Plugin::initPlugin (150) Can't connect to port 10002 - MusicIP disabled.
[08-12-12 15:00:16.0629] main::checkDataSource (909) Warning: Schema updated or no tracks in the database, initiating scan.
[08-12-12 15:28:39.9532] Slim::Networking::IO::Select::select (271) Error: Select task failed: Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
[08-12-12 15:28:49.2571] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 15:28:49.2885] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 15:28:49.6576] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 15:28:49.6582] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 15:28:50.0535] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 15:28:50.0540] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 15:28:50.4171] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 15:28:50.4176] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 15:28:50.8600] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 15:28:50.8605] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 15:28:51.2631] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 15:28:51.2636] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 15:28:51.7917] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 15:28:51.7923] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 15:28:56.2910] Slim::Networking::IO::Select::select (271) Error: Select task failed: Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.

It looks like I'll have to revert to the last known good 7.2.1 revision for now to get my remote streaming working :(

andyg
2008-12-12, 08:43
On Dec 12, 2008, at 10:38 AM, abton wrote:

>
> The problems seems to be getting worse!
>
> As I have experienced problems before after upgrades I have just
> performed a complete uninstall and re-install of SqueezeCenter
> following instructions I have obtained previously from Logitech
> support. The re-install worked perfectly and it re-scanned my music
> library and everything looked fine. I then connected to the remote
> stream using Foobar2000 and SqueezeCenter dies - the web interface
> stops responding and no music is streamed. The server.log file
> reports
> the following:
>
> [08-12-12 15:00:11.0626] Slim::Schema::init (153) Warning: Creating
> new
> database - empty database or database from 6.3.x found
> [08-12-12 15:00:15.7387] Slim::Plugin::MusicMagic::Plugin::initPlugin
> (150) Can't connect to port 10002 - MusicIP disabled.
> [08-12-12 15:00:16.0629] main::checkDataSource (909) Warning: Schema
> updated or no tracks in the database, initiating scan.
> [08-12-12 15:28:39.9532] Slim::Networking::IO::Select::select (271)
> Error: Select task failed: Not a reference at
> /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/
> Utils/Prefs.pm
> line 342.

You could try deleting/moving your server.prefs file and see if that
fixes it.

abton
2008-12-12, 09:44
I moved the server.prefs file to a backup location and restarted SqueezeCenter. It created a new server.prefs file and presented me the startup wizard when I loaded the web interface (thankfully not re-scanning my library this time - it takes over 20 minutes for that!). I then connected to stream.mp3 using Foobar2000 again and once again SqueezeCenter dies with the same error messages as before:

[08-12-12 16:41:45.1004] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 16:41:55.4483] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 16:41:55.4488] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 16:42:05.9002] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 16:42:05.9007] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 16:42:16.5409] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 16:42:16.5414] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!
[08-12-12 16:42:27.0221] Slim::Control::Request::execute (1889) Error: While trying to run function coderef [Slim::Control::Queries::serverstatusQuery]: [Not a reference at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Prefs.pm line 342.
]
[08-12-12 16:42:27.0290] Slim::Web::JSONRPC::requestMethod (358) Request failed with error: Bad dispatch!

abton
2008-12-13, 04:22
Well it appears that 7.3 has broken the remote streaming, at least on the Mac. This seems to be a recurring theme as the official 7.2.1 release broke the remote streaming as well.

It's back to the last good 7.2.1 nightly build that actually worked for me. Shame, as I wanted the 7.3 fix that actually turns off the digital outputs.

abton
2008-12-14, 06:48
As I don't like being beaten by these things, I've been doing some investigation.

I completely uninstalled SqueezeCenter and went back to the 7.2.1 nightly I had been using. Everything seems to work fine. I then did an upgrade to 7.3 and the remote streaming works and I'm back to the original problem I reported with streaming of M4A files ignoring bit rate limiting. I then stopped SqueezeCenter, removed the server.prefs file and restarted SqueezeCenter which then creates a new default server.prefs file. When I then tried to use the remote streaming SqueezeCenter crashes - put back in the server.prefs file from the upgrade and it works again.

Therefore it appears to me that the default server.prefs file created by SqueezeCenter is breaking the remote streaming and causing SqueezeCenter to crash.

If anyone from SlimDevices/Logitech wants them, I can provide copies of the server.prefs files.

abton
2008-12-15, 08:55
OK, so I got back to my original problem of M4A files ignoring the bitrate limiting. Doing some digging around I've now found out why. In convert.conf you have the line:

mov mp3 * *
# FRB:{BITRATE=-B %B}
[mov123] $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ $RESAMPLE$-v $BITRATE$ -r --big-endian - -

Spot the problem? There's an additional space between $QUALITY$ and $RESAMPLE$ and a missing space between $RESAMPLE$ and -v. The line should read:

mov mp3 * *
# FRB:{BITRATE=-B %B}
[mov123] $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ -r --big-endian - -

With this change in place it actually works.

Someone really needs to go through the various config files and check them! With the mistakes in the conversions and the default server.prefs crashing remote streaming (not to mention the other problems being reporting in this forum), it all looks a bit amateurish...

awy
2008-12-15, 09:25
http://bugs.slimdevices.com/show_bug.cgi?id=10334

jrichardson
2008-12-15, 09:37
As I don't like being beaten by these things, I've been doing some investigation.

If anyone from SlimDevices/Logitech wants them, I can provide copies of the server.prefs files.

Can you send me your working and failing server.prefs files?

Thanks,

jrichardson
2008-12-15, 09:39
Abton: Can you post your server.pref files to this bug please, I'll be investigating this for you.

abton
2008-12-15, 10:07
The files are in the attached zip archive. If you need anything else, just let me know.

The file server.prefs.working is taken from an 7.2.1 upgrade and is fine. The file server.prefs.crashes is the default 7.3 file that it creates when it cannot find an existing file.

Regards,

Neil.

ezkcdude
2009-05-30, 15:25
SqueezeCenter is installed on a Mac Mini running Mac OS X 10.5.5 with lame correctly installed (via MacPorts).



I installed lame using MacPorts as well, but SqueezeCenter doesn't seem to find it. Any advice?