Bug 14768 - SoX does not use the best available quality to resample
: SoX does not use the best available quality to resample
Status: RESOLVED WONTFIX
Product: Logitech Media Server
Classification: Unclassified
Component: Transcoding
: 7.4.0
: All All
: -- enhancement (vote)
: 7.4.x
Assigned To: Alan Young
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-14 11:25 UTC by Bruno Liechti
Modified: 2009-10-17 03:28 UTC (History)
2 users (show)

See Also:
Category: Feature


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Liechti 2009-10-14 11:25:03 UTC
I would change convert.conf as follows if CPU usage allows to do so:

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

The very high quality SoX is famous for is achieved with the command "- rate -v %d" instead of "-r %d -".
Comment 1 Spies Steven 2009-10-15 11:46:05 UTC
I would think we would want the most cpu efficient resampling by default for most users.  Perhaps an option could be added to SqueezeboxServer for speed vs accuracy settings for resampling like we do for lame transcoding.

Alan, what do you think?
Comment 2 Alan Young 2009-10-16 01:16:29 UTC
Yes, the current setting (the sox defaults) are chosen as a good compromise between CPU usage and quality. A knowledgeable user could modify convert.conf as suggested, or (better) create a custom-convert.conf file and entry.

Perhaps someone could create a wiki entry with this information.
Comment 3 Bruno Liechti 2009-10-17 03:28:40 UTC
I can live with that. Thanks for having looked at it. I will try to put a wiki entry.

[0.02$]
The lines above are just needed to downsample high resolution files. A user who owns hi-res material typically cares more about quality than CPU usage. Without the proposed change SBS serves a customer who is after the best quality when it comes to files but on the other hand is willing to sacrifice quality when it comes to transcoding. IMHO such a customer doesn't exist.
[/0.02$]