Hi all,

I'm running 7.6 r32383 on Ubuntu Server 11.04, and I'm trying to
configure the server to transcode my FLAC files to Ogg when requested
(by http download via Squeezecommander on Android).

I've added a rule in custom-convert.conf

flc ogg * *
[sox] -q -t flac $FILE$ -t ogg -C 6 -

which works as expected for downloading Ogg files to the phone, but it
seems to mess with FLAC playback on the squeezeboxes - it now seems to
reject the flc-flc-*-* rule and does a flc-flc-transcode-* instead...

[11-05-05 23:53:15.8448] Slim::Player::TranscodingHelper::enabledFormat
(198) Checking to see if flc-flc-*-* is enabled
[11-05-05 23:53:15.8543] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-ogg-baby-00:04:20:26:1e:0b
[11-05-05 23:53:15.8558] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-ogg-*-00:04:20:26:1e:0b
[11-05-05 23:53:15.8569] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-ogg-baby-*
[11-05-05 23:53:15.8579] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-ogg-*-*
[11-05-05 23:53:15.8833] Slim::Player::TranscodingHelper::enabledFormat
(198) Checking to see if flc-ogg-*-* is enabled
[11-05-05 23:53:15.8847] Slim::Player::TranscodingHelper::checkBin
(239)    enabled
[11-05-05 23:53:15.8857] Slim::Player::TranscodingHelper::checkBin
(241)   Found command: [sox] -q -t flac $FILE$ -t ogg -C 6 -
[11-05-05 23:53:15.8898]
Slim::Player::TranscodingHelper::getConvertCommand2 (428) Matched:
flc->ogg via: [sox] -q -t flac $FILE$ -t ogg -C 6 -
[11-05-05 23:53:15.9080] Slim::Player::TranscodingHelper::enabledFormat
(198) Checking to see if flc-flc-*-* is enabled
[11-05-05 23:53:15.9092] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-ogg-baby-00:04:20:26:1e:0b
[11-05-05 23:53:15.9103] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-ogg-*-00:04:20:26:1e:0b
[11-05-05 23:53:15.9318] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-ogg-baby-*
[11-05-05 23:53:15.9329] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-ogg-*-*
[11-05-05 23:53:15.9339] Slim::Player::TranscodingHelper::enabledFormat
(198) Checking to see if flc-ogg-*-* is enabled
[11-05-05 23:53:15.9361] Slim::Player::TranscodingHelper::checkBin
(239)    enabled
[11-05-05 23:53:15.9373] Slim::Player::TranscodingHelper::checkBin
(241)   Found command: [sox] -q -t flac $FILE$ -t ogg -C 6 -
[11-05-05 23:53:15.9385]
Slim::Player::TranscodingHelper::getConvertCommand2 (370) Rejecting
[sox] -q -t flac $FILE$ -t ogg -C 6 - because required capability T not
supported: 
[11-05-05 23:53:15.9517] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-flc-baby-00:04:20:26:1e:0b
[11-05-05 23:53:15.9598] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-flc-*-00:04:20:26:1e:0b
[11-05-05 23:53:15.9610] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-flc-baby-*
[11-05-05 23:53:15.9620] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-flc-*-*
[11-05-05 23:53:15.9754] Slim::Player::TranscodingHelper::enabledFormat
(198) Checking to see if flc-flc-*-* is enabled
[11-05-05 23:53:15.9768] Slim::Player::TranscodingHelper::checkBin
(239)    enabled
[11-05-05 23:53:15.9778] Slim::Player::TranscodingHelper::checkBin
(241)   Found command: -
[11-05-05 23:53:15.9911]
Slim::Player::TranscodingHelper::getConvertCommand2 (370) Rejecting -
because required capability T not supported: 
[11-05-05 23:53:15.9925] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-flc-transcode-*
[11-05-05 23:53:15.9935] Slim::Player::TranscodingHelper::enabledFormat
(198) Checking to see if flc-flc-transcode-* is enabled
[11-05-05 23:53:16.0047] Slim::Player::TranscodingHelper::checkBin
(239)    enabled
[11-05-05 23:53:16.0158] Slim::Player::TranscodingHelper::checkBin
(241)   Found command: [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q
-t wav - -t flac -C 0 $RESAMPLE$ -
[11-05-05 23:53:16.0199]
Slim::Player::TranscodingHelper::getConvertCommand2 (428) Matched:
flc->flc via: [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav -
-t flac -C 0 

If I disable my new FLAC->Ogg mapping in the settings menu, files are
once again played without the extra FLAC->FLAC transcode. 

As a workaround I've also tried giving the phone's IP as the
destination_device_id in the rule as convert.conf suggests, but that
doesn't seem to work..

[11-05-06 01:36:46.5640] Slim::Player::TranscodingHelper::checkBin
(231) Checking formats for: flc-ogg-*-*
[11-05-06 01:36:46.5651]
Slim::Player::TranscodingHelper::getConvertCommand2 (425) Error: Didn't
find any command matches for type: flc
[11-05-06 01:36:46.5665] Slim::Web::HTTP::downloadMusicFile (2517)
Couldn't transcode
file:///mnt/data/music/Dan%20Le%20Sac%20Vs%20Scroobius%20Pip/Angles/01%20-%20The%20Beat%20That%20My%20Heart%20Skipped.flac
to ogg:

I've had a quick look at the source to try and work out what's going on
but my knowledge of perl is pretty useless. Am I doing something stupid
here or is this a bug in the server? Can anyone point me in the right
direction? Any help appreciated!

Thanks,

Mark


-- 
RadBadMark
------------------------------------------------------------------------
RadBadMark's Profile: http://forums.slimdevices.com/member.php?userid=46389
View this thread: http://forums.slimdevices.com/showthread.php?t=87523

_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta

Reply via email to