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::getConvertCommand 2 (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::getConvertCommand 2 (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::getConvertCommand 2 (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::getConvertCommand 2 (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::getConvertCommand 2 (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
Results 1 to 10 of 29
Thread: Transcoding FLAC->Ogg?
-
2011-05-05, 19:18 #1Junior Member
- Join Date
- May 2011
- Posts
- 17
Transcoding FLAC->Ogg?
-
2011-05-06, 01:27 #2Senior Member
- Join Date
- Apr 2005
- Location
- Buckinghamshire, England
- Posts
- 9,983
by setting flc ogg * *
you have altered flac streaming in all contexts. If you just want to stream as Ogg for your phone, you need to find the mac address of the phone and then JUST set
flc ogg * {mac address of phone}You want to see the signal path BEFORE it gets onto a CD/vinyl...it ain't what you'd call minimal...
Touch(wired/W7)+Teddy Pardo PSU - Audiolense 3.3/2.0+INGUZ DRC - MF M1 DAC - Linn 5103 - full Aktiv 5.1 system (6x LK140's, ESPEK/TRIKAN/KATAN/SEIZMIK 10.5), Pekin Tuner, Townsend Supertweeters,VdH Toslink,Kimber 8TC Speaker & Chord Signature Plus Interconnect cables
Stax4070+SRM7/II phones
Kitchen Boom, Outdoors: SB Radio, Harmony One remote for everything.
-
2011-05-06, 01:36 #3Senior Member
- Join Date
- Apr 2005
- Location
- Colorado
- Posts
- 10,073
-
2011-05-06, 01:58 #4Junior Member
- Join Date
- May 2011
- Posts
- 17
Thanks for the response.
I assumed (like JJZolx) that all the transcode mappings could co-exist, and only apply when required - all I've done is add a rule for flc-ogg-*-* similar to the flc-pcm-*-* rule that already exists. Why would the ogg rule alter streaming in all contexts when the pcm one doesn't?
I did try with a a MAC address specified but I'm fairly sure it failed in a similar way to when I gave an IP address - I will try it again tonight though.
-
2011-05-06, 02:41 #5Senior Member
- Join Date
- Apr 2005
- Location
- Colorado
- Posts
- 10,073
Doesn't make much sense to me.
If I'm reading the log correctly it appears to stream Flac natively when the 'Flac Ogg sox' rule is disabled, but transcodes Flac to Flac via sox when the rule is enabled.
The log says that the 'flc-flc-*-*' (native streaming) is rejected due to lack of ability to seek to a start time offset.
(After finding a matching and enabled rule, didn't the server previously log the actual command line used, showing full paths to both the applications used and the source file? I no longer see that with player.source set to Debug.)Code:[11-05-06 03:19:23.3600] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-flc-*-* [11-05-06 03:19:23.3602] Slim::Player::TranscodingHelper::enabledFormat (198) Checking to see if flc-flc-*-* is enabled [11-05-06 03:19:23.3603] Slim::Player::TranscodingHelper::checkBin (239) enabled [11-05-06 03:19:23.3605] Slim::Player::TranscodingHelper::checkBin (241) Found command: - [11-05-06 03:19:23.3606] Slim::Player::TranscodingHelper::getConvertCommand2 (370) Rejecting - because required capability T not supported:
-
2011-05-06, 03:07 #6Senior Member
- Join Date
- Apr 2005
- Location
- Buckinghamshire, England
- Posts
- 9,983
You want to see the signal path BEFORE it gets onto a CD/vinyl...it ain't what you'd call minimal...
Touch(wired/W7)+Teddy Pardo PSU - Audiolense 3.3/2.0+INGUZ DRC - MF M1 DAC - Linn 5103 - full Aktiv 5.1 system (6x LK140's, ESPEK/TRIKAN/KATAN/SEIZMIK 10.5), Pekin Tuner, Townsend Supertweeters,VdH Toslink,Kimber 8TC Speaker & Chord Signature Plus Interconnect cables
Stax4070+SRM7/II phones
Kitchen Boom, Outdoors: SB Radio, Harmony One remote for everything.
-
2011-05-06, 03:55 #7Senior Member
- Join Date
- Apr 2005
- Location
- Buckinghamshire, England
- Posts
- 9,983
this worked:
flc ogg * 00:1f:1f:fa:2a:22
# FT:{START=-skip %t}
[sox] -q -t flac $FILE$ -t ogg -C 6 -
I temporarily disabled all other filetypes for that MAC address. Log output below:You want to see the signal path BEFORE it gets onto a CD/vinyl...it ain't what you'd call minimal...
Touch(wired/W7)+Teddy Pardo PSU - Audiolense 3.3/2.0+INGUZ DRC - MF M1 DAC - Linn 5103 - full Aktiv 5.1 system (6x LK140's, ESPEK/TRIKAN/KATAN/SEIZMIK 10.5), Pekin Tuner, Townsend Supertweeters,VdH Toslink,Kimber 8TC Speaker & Chord Signature Plus Interconnect cables
Stax4070+SRM7/II phones
Kitchen Boom, Outdoors: SB Radio, Harmony One remote for everything.
-
2011-05-06, 03:59 #8Senior Member
- Join Date
- Apr 2005
- Location
- Colorado
- Posts
- 10,073
How does it treat straight Flac streaming when both that rule and Flac Native are both enabled?
-
2011-05-06, 04:29 #9Senior Member
- Join Date
- Apr 2005
- Location
- Buckinghamshire, England
- Posts
- 9,983
Last edited by Phil Leigh; 2011-05-06 at 04:42.
You want to see the signal path BEFORE it gets onto a CD/vinyl...it ain't what you'd call minimal...
Touch(wired/W7)+Teddy Pardo PSU - Audiolense 3.3/2.0+INGUZ DRC - MF M1 DAC - Linn 5103 - full Aktiv 5.1 system (6x LK140's, ESPEK/TRIKAN/KATAN/SEIZMIK 10.5), Pekin Tuner, Townsend Supertweeters,VdH Toslink,Kimber 8TC Speaker & Chord Signature Plus Interconnect cables
Stax4070+SRM7/II phones
Kitchen Boom, Outdoors: SB Radio, Harmony One remote for everything.
-
2011-05-06, 04:59 #10---
learn more about iPeng, the iPhone and iPad remote for the Squeezebox and
New: Logitech UE Smart Radio as well as iPeng Party, the free Party-App,
at penguinlovesmusic.com

Reply With Quote

