Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    17

    Question Transcoding FLAC->Ogg?

    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

  2. #2
    Senior 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.

  3. #3
    Senior Member
    Join Date
    Apr 2005
    Location
    Colorado
    Posts
    10,073
    Quote Originally Posted by Phil Leigh View Post
    by setting flc ogg * *

    you have altered flac streaming in all contexts.
    Even if 'FLAC FLAC Native' is still enabled in the file types settings?

  4. #4
    Junior 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.

  5. #5
    Senior 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.

    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:
    (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.)

  6. #6
    Senior Member
    Join Date
    Apr 2005
    Location
    Buckinghamshire, England
    Posts
    9,983
    Quote Originally Posted by JJZolx View Post
    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.

    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:
    (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.)
    I'll try it later...
    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.

  7. #7
    Senior 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:
    Attached Files Attached Files
    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.

  8. #8
    Senior 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?

  9. #9
    Senior Member
    Join Date
    Apr 2005
    Location
    Buckinghamshire, England
    Posts
    9,983

    Question

    Quote Originally Posted by JJZolx View Post
    How does it treat straight Flac streaming when both that rule and Flac Native are both enabled?
    for the same MAC address?

    Ogg wins.
    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.

  10. #10
    Senior Member pippin's Avatar
    Join Date
    Oct 2007
    Location
    Berlin
    Posts
    10,387
    Quote Originally Posted by RadBadMark View Post
    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).
    Why do you want to use ogg? Ogg will need much more processing power on your device and drain the battery faster. Ogg is pretty bad in that respect, from the codecs I've worked with it's the most inefficient one.
    ---
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •