Squeezebox Touch -- Modifications - Page 88 - diyAudio
Go Back   Home > Forums > Source & Line > PC Based

PC Based Computer music servers, crossovers, and equalization

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 6th November 2013, 05:37 AM   #871
diyAudio Member
 
Monkey King's Avatar
 
Join Date: Feb 2003
Location: Toronto
Hi all,

Does anyone have insight on how to make the SBT down-sample hi-res files to 16/44? I have searched a number of forums, but can't seem to find anything that works.

My SBT is connected to an external DAC that only does 16/48. I'm looking to play a mixture of WAV, APE, and FLAC files.

Below is what I have in my custom-convert.conf file, but I don't think I know what it's doing.

flc flc * *
# FT:{START=--skip=%t}U:{END=--until=%v}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 -r 44100 -

flc flc transcode *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=-r %d}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -C 0 -r 44100 -


Thanks!
  Reply With Quote
Old 6th November 2013, 06:17 AM   #872
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Try this:

Code:
flc flc * *
             # FT:{START=--skip=%t}U:{END=--until=%v}
             [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -e signed -C 0 -b 16 - rate -v -L -b 98 48000 dither -S
Everything gets resampled to 16/48000.
You also need to add dither if going down to 16bit. That's what I do with dither -S. Above term does highest quality resampling with linear filters and pretty high bandwidth.
Don't forget to restart the server after the changes and to enable just the option flac/flac under Advanced Settings/Fileformats.



Below might also work. I havn't tried it.

Code:
flc flc transcode *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=rate -v -L -b 98 48000 dither -S}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -b 16 -C 0 - $RESAMPLE$
Make sure that the sox and flac binaries as supplied by LMS are working. You might have problems with those 32bit binaries.
I usually install more up2date Ubuntu sox and flac versions.

Quick and dirty HowTo:
Code:
sudo apt-get install sox flac 
sudo cp /usr/bin/sox /usr/bin/flac /usr/share/squeezeboxserver/Bin/i386-linux/
(You could also use links instead of above simple copy, you could backup the old binaries before overwriting them or rewrite your rules with the original binary locations, or you do it quick and dirty. )

Good luck.

Cheers

Last edited by soundcheck; 6th November 2013 at 06:46 AM.
  Reply With Quote
Old 6th November 2013, 07:09 AM   #873
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Just to let you know.

I'm running a DDX320 full digital amp via Toslink fed by my Touch.
The DDX resamples everything to 24/96 before doing the post processing on its own DSP. ( Similar behaviour you'll find on MiniDSP and all kind of other DSPs or DACs with ASRCs)

I thought I might be able to do a better resampling job by using Sox instead of letting the DDX do the resampling. Sox is known for its great reampling quality.

I introduced below setup:

Code:
flc flc * *
             # FT:{START=--skip=%t}U:{END=--until=%v}
             [flac] -dcs $START$ $END$ -- $FILE$  |  [sox] -D -q -t wav - -t flac -e signed  -C 0 -b 24 - rate -v -L -b 98 96000

In the past streaming flacs was a NoGo due to its negative impact on SQ. That's what prevented me from doing the resampling.
You can do resampling in the LMS universe only, if you stream flacs to the streaming client. I skipped it. At that point it was the right choice.

However. I'm not running my Touch the typical way anymore. I'm running the Touch with Squeezelite and a special setup (TT60) .
This way it can process flacs without causing much sound degradation.
Or to be more exact. The improvements associated to the DDX320 and resampling done by Sox are higher then potential losses due to flac decoding on the Touch.

It's always about finding the better compromise.

Enjoy.

Last edited by soundcheck; 6th November 2013 at 07:12 AM.
  Reply With Quote
Old 6th November 2013, 11:15 PM   #874
diyAudio Member
 
Monkey King's Avatar
 
Join Date: Feb 2003
Location: Toronto
Hi Soudcheck,

Thanks for these tips!

I am still getting a sample rate not recognised error. In the server.log file, it says:

Code:
[13-11-06 17:29:38.1048] Slim::Player::Song::open (409) Error: Couldn't create command line for flc playback for [file:///Volumes/public/My%20Music/00_SACD%20d2p%2024-176%20flac%20files/Heifetz_Brahms%20&%20Tchaikovsky%20Violin%20Concertos_SACD%20d2p_24-176_flac/01%20-%20Jascha%20Heifetz%20violin%20Fritz%20Reiner%20conductor%20Chicago%20Sy%20-%20Allegro%20non%20troppo%20(Cadenza%20Heifetz).flac]
The server.log in debug mode shows this error:

Code:
[13-11-06 18:03:02.4356] Slim::Player::TranscodingHelper::getConvertCommand2 (425) Error: Didn't find any command matches for type: flc
Other bits from the log in debug mode:

Code:
[13-11-06 18:03:02.4298] Slim::Player::TranscodingHelper::checkBin (241)   Found command: [flac] -dcs --force-raw-format --endian=little --sign=signed $START$ $END$ -- $FILE$
[13-11-06 18:03:02.4300] Slim::Player::TranscodingHelper::getConvertCommand2 (370) Rejecting [flac] -dcs --force-raw-format --endian=little --sign=signed $START$ $END$ -- $FILE$ because required capability D not supported: 
[13-11-06 18:03:02.4301] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-mp3-fab4-00:04:20:22:e3:94
[13-11-06 18:03:02.4303] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-mp3-*-00:04:20:22:e3:94
[13-11-06 18:03:02.4304] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-mp3-fab4-*
[13-11-06 18:03:02.4306] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-mp3-*-*
[13-11-06 18:03:02.4308] Slim::Player::TranscodingHelper::enabledFormat (198) Checking to see if flc-mp3-*-* is enabled
[13-11-06 18:03:02.4309] Slim::Player::TranscodingHelper::enabledFormat (206) There are 17 disabled formats...
[13-11-06 18:03:02.4311] Slim::Player::TranscodingHelper::enabledFormat (212) Testing aac-aac-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4312] Slim::Player::TranscodingHelper::enabledFormat (212) Testing aac-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4314] Slim::Player::TranscodingHelper::enabledFormat (212) Testing aif-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4315] Slim::Player::TranscodingHelper::enabledFormat (212) Testing alc-alc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4317] Slim::Player::TranscodingHelper::enabledFormat (212) Testing alc-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4319] Slim::Player::TranscodingHelper::enabledFormat (212) Testing ape-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4320] Slim::Player::TranscodingHelper::enabledFormat (212) Testing flc-aif-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4322] Slim::Player::TranscodingHelper::enabledFormat (212) Testing flc-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4323] Slim::Player::TranscodingHelper::enabledFormat (212) Testing mp4-aac-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4325] Slim::Player::TranscodingHelper::enabledFormat (212) Testing mp4-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4326] Slim::Player::TranscodingHelper::enabledFormat (212) Testing ogg-aif-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4328] Slim::Player::TranscodingHelper::enabledFormat (212) Testing ogg-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4329] Slim::Player::TranscodingHelper::enabledFormat (212) Testing ogg-ogg-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4331] Slim::Player::TranscodingHelper::enabledFormat (212) Testing sls-aac-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4332] Slim::Player::TranscodingHelper::enabledFormat (212) Testing sls-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4334] Slim::Player::TranscodingHelper::enabledFormat (212) Testing wav-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4336] Slim::Player::TranscodingHelper::enabledFormat (212) Testing wvp-flc-*-* vs flc-mp3-*-*
[13-11-06 18:03:02.4337] Slim::Player::TranscodingHelper::checkBin (239)    enabled
[13-11-06 18:03:02.4339] Slim::Player::TranscodingHelper::checkBin (241)   Found command: [flac] -dcs $START$ $END$ -- $FILE$ | [lame] --silent -q $QUALITY$ $RESAMPLE$ -v $BITRATE$ - -
[13-11-06 18:03:02.4342] Slim::Player::TranscodingHelper::checkBin (264)    couldn't find binary for: lame
[13-11-06 18:03:02.4343] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-spdr-fab4-00:04:20:22:e3:94
[13-11-06 18:03:02.4345] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-spdr-*-00:04:20:22:e3:94
[13-11-06 18:03:02.4347] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-spdr-fab4-*
[13-11-06 18:03:02.4348] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-spdr-*-*
[13-11-06 18:03:02.4350] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-test-fab4-00:04:20:22:e3:94
[13-11-06 18:03:02.4351] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-test-*-00:04:20:22:e3:94
[13-11-06 18:03:02.4353] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-test-fab4-*
[13-11-06 18:03:02.4354] Slim::Player::TranscodingHelper::checkBin (231) Checking formats for: flc-test-*-*
[13-11-06 18:03:02.4356] Slim::Player::TranscodingHelper::getConvertCommand2 (425) Error: Didn't find any command matches for type: flc
[13-11-06 18:03:02.4358] Slim::Player::Song::open (409) Error: Couldn't create command line for flc playback for [file:///Volumes/public/My%20Music/00_SACD%20d2p%2024-176%20flac%20files/Mendelssohn_Shostakovich_Vioin%20Concertos_Hilary%20Hahn_SACD_d2p%2024-176%20flac/01%20-%20HILARY%20HAHN%20OSLO%20PHILHARMONIC%20ORCHESTRA%20HUGH%20WOLFF%20-%20Mendelssohn%20Concerto%20for%20Violin%20and%20Orchestra%20in%20E%20Minor.flac]
[13-11-06 18:03:02.4360] Slim::Player::StreamingController::_playersMessage (789) Unsupported sample-rate: file:///Volumes/public/My%20Music/00_SACD%20d2p%2024-176%20flac%20files/Mendelssohn_Shostakovich_Vioin%20Concertos_Hilary%20Hahn_SACD_d2p%2024-176%20flac/01%20-%20HILARY%20HAHN%20OSLO%20PHILHARMONIC%20ORCHESTRA%20HUGH%20WOLFF%20-%20Mendelssohn%20Concerto%20for%20Violin%20and%20Orchestra%20in%20E%20Minor.flac


In Logitech Media Server, file types are set to:
FLAC
AIFF (disabled)
FLAC (disabled)
MP3 (disabled)
PCM (FLAC)
WAV
FLAC (disabled)
MP3 (disabled)
PCM (Native)
I running Logitech Media Server 7.7.3 on OSX 10.9. The DAC is a Forsell Air Reference, it's from a small Swedish company, and it manual just says it's a 1-bit DAC.

About using an updated version of sox, am I right in thinking that I modify the command line to reflect where sox is located in OSX, e.g. /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Bin/darwin instead


Quote:
Originally Posted by soundcheck View Post
Try this:

Code:
flc flc * *
             # FT:{START=--skip=%t}U:{END=--until=%v}
             [flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -e signed -C 0 -b 16 - rate -v -L -b 98 48000 dither -S
Everything gets resampled to 16/48000.
You also need to add dither if going down to 16bit. That's what I do with dither -S. Above term does highest quality resampling with linear filters and pretty high bandwidth.
Don't forget to restart the server after the changes and to enable just the option flac/flac under Advanced Settings/Fileformats.



Below might also work. I havn't tried it.

Code:
flc flc transcode *
# FT:{START=--skip=%t}U:{END=--until=%v}D:{RESAMPLE=rate -v -L -b 98 48000 dither -S}
[flac] -dcs $START$ $END$ -- $FILE$ | [sox] -q -t wav - -t flac -b 16 -C 0 - $RESAMPLE$
Make sure that the sox and flac binaries as supplied by LMS are working. You might have problems with those 32bit binaries.
I usually install more up2date Ubuntu sox and flac versions.

Quick and dirty HowTo:
Code:
sudo apt-get install sox flac 
sudo cp /usr/bin/sox /usr/bin/flac /usr/share/squeezeboxserver/Bin/i386-linux/
(You could also use links instead of above simple copy, you could backup the old binaries before overwriting them or rewrite your rules with the original binary locations, or you do it quick and dirty. )

Good luck.

Cheers

Last edited by Monkey King; 6th November 2013 at 11:21 PM. Reason: Uploaded attachement
  Reply With Quote
Old 7th November 2013, 07:21 AM   #875
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
1. You seemed to have mispelled flac in your custom-convert rule. The error log complains about "flc"

2. Your file type setup is wrong.

Disable FLAC PCM
Enable FLAC FLAC

And don't forget to save the changes afterwards.

You should see something like FLAC FLAC(flac/sox) in the flac line of file type.

I don't know how to install Sox on OSX.
  Reply With Quote
Old 8th November 2013, 02:54 AM   #876
diyAudio Member
 
Monkey King's Avatar
 
Join Date: Feb 2003
Location: Toronto
Thanks soundcheck!

Everything is working now. I changed the file type settings for FLAC so that FLAC - PCM (disabled) and FLAC FLAC (flac/sox).


Quote:
Originally Posted by soundcheck View Post
1. You seemed to have mispelled flac in your custom-convert rule. The error log complains about "flc"

2. Your file type setup is wrong.

Disable FLAC PCM
Enable FLAC FLAC

And don't forget to save the changes afterwards.

You should see something like FLAC FLAC(flac/sox) in the flac line of file type.

I don't know how to install Sox on OSX.
  Reply With Quote
Old 8th November 2013, 08:18 AM   #877
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Quote:
Originally Posted by Monkey King View Post
Thanks soundcheck!

Everything is working now. I changed the file type settings for FLAC so that FLAC - PCM (disabled) and FLAC FLAC (flac/sox).
Good to see you managed.

Have you seen my resampling post ??
You might get some more/new ideas.

Enjoy
  Reply With Quote
Old 25th January 2014, 06:51 PM   #878
diyAudio Member
 
Join Date: Jan 2014
Dear Soundcheck! I have a question regarding installation of toolbox 3.0, can i write email to you? Regards, Oleg
  Reply With Quote
Old 3rd March 2014, 12:20 PM   #879
diyAudio Member
 
MurphyUHF10's Avatar
 
Join Date: Oct 2010
Location: Melbourne
Hi There,

Sorry to revive such an old thread..
But after a long time enjoying TT3.0, I am ready to perform some HW mods..

The first one I want to try is the "direct wiring of SPDIF cable to the main board".
Are there any photos of this mod? I am confused as to where the connections are made on the main board. How far up the line are we talking,, directly to U34??

Thanks,
CM
  Reply With Quote
Old 4th March 2014, 10:12 AM   #880
diyAudio Member
 
soundcheck's Avatar
 
Join Date: Mar 2005
Location: D
Quote:
Originally Posted by MurphyUHF10 View Post
Hi There,

Sorry to revive such an old thread..
But after a long time enjoying TT3.0, I am ready to perform some HW mods..

The first one I want to try is the "direct wiring of SPDIF cable to the main board".
Are there any photos of this mod? I am confused as to where the connections are made on the main board. How far up the line are we talking,, directly to U34??

Thanks,
CM
I soldered the cable directly to the comb connector. It's been the first or second pin.
You can measure it easily.

Cheers
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question to Squeezebox Touch users Martin Prothero PC Based 50 13th August 2010 10:27 PM
Which PS for Squeezebox Touch upgrade? Twisted Pear Placid, or AMB σ11? orpheus PC Based 8 4th June 2010 09:52 AM
Squeezebox Receiver Modifications jkeny Digital Source 3 12th March 2010 08:22 AM
Finish of the speaker, the final touch.. thanx Multi-Way 3 20th November 2007 03:12 AM
Squeezebox 3 I_Forgot Digital Source 0 3rd January 2006 03:16 PM


New To Site? Need Help?

All times are GMT. The time now is 12:30 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Copyright 1999-2014 diyAudio

Content Relevant URLs by vBSEO 3.3.2