SoX DSP discussion, Split from: Command-Line Decoder Wrapper |
This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.
See also: Hydrogenaudio Terms of Service.
![]() ![]() |
SoX DSP discussion, Split from: Command-Line Decoder Wrapper |
Nov 8 2012, 09:14
Post
#1
|
|
|
Group: Members Posts: 339 Joined: 24-November 08 Member No.: 63072 |
I'd like to see a similar wrapper for DSP processing (piped input/output). Especially this would be useful for external resamplers in conversion profiles...
possible? |
|
|
|
Nov 8 2012, 22:38
Post
#2
|
|
![]() Group: Developer (Donating) Posts: 711 Joined: 1-December 07 Member No.: 49165 |
If you are referring to SoX, there is already a SoX based resampler....
|
|
|
|
Nov 9 2012, 09:59
Post
#3
|
|
|
Group: Members Posts: 339 Joined: 24-November 08 Member No.: 63072 |
|
|
|
|
Nov 9 2012, 10:30
Post
#4
|
|
![]() Group: Admin Posts: 3226 Joined: 30-September 01 Member No.: 84 |
foobar2000 DSPs operate on 32bit floating-point data; doing any dithering in DSPs is outright harmful.
Dithering should happen at the end of the pipeline which is exactly what foobar2000's dithering feature does. -------------------- This job would be great if it wasn't for the users.
|
|
|
|
Nov 9 2012, 10:39
Post
#5
|
|
|
Group: Members Posts: 339 Joined: 24-November 08 Member No.: 63072 |
So the foobar's SoX resampler with foobar's internal dithering is supposed to produce same or better final output than using SoX externally?
|
|
|
|
Nov 9 2012, 13:38
Post
#6
|
|
![]() Group: Admin Posts: 3226 Joined: 30-September 01 Member No.: 84 |
Using foobar2000's internal dithering at least ensures you get your output dithered to the correct bit depth. Whether there are any advantages to using external dithering, you're free to find out for yourself; at least it's completely pointless (and harmful) if you're converting to a lossy format or lossless higher than 16-bit. -------------------- This job would be great if it wasn't for the users.
|
|
|
|
Nov 11 2012, 02:06
Post
#7
|
|
|
Group: Members Posts: 339 Joined: 24-November 08 Member No.: 63072 |
Okay, I'd have 2 more questions:
If I convert the source to lossy format, does bit depth matter? (If so, is it better to convert from 24bit or 16bit source? and moreover is dithering in effect when no bit depth conversion is made?) And finally, what are optimum values for Passband, aliasing allowed/disallowed and phase response when downsampling to 96kHz and leaving the original bit depth? |
|
|
|
Nov 11 2012, 10:38
Post
#8
|
|
|
Group: Developer (Donating) Posts: 2040 Joined: 19-October 01 From: Finland Member No.: 322 |
Dithering is controlled by the option it has in the Converter, source vs target bitdepth does not matter there. You can't control source bit depth as that is a feature of your source files. You can tell the component what bit depth encoders accept. If you use the built-in profiles they are already set to correct and optimal values. All lossy codecs I know of support at least 24 bit input files so dithering with them is not required. The quantization error noise is way under the noise floor of any equipment or human hearing. If you convert to 16 bit lossless files from higher bit depth source files, from lossy files or perform DSP operations, dithering is beneficial in theory. Though I don't think there have been any ABX cases where this has been audible with normal music. Only with very quiet samples. I'd skip the dithering as I can't hear improvement with it and it ruins digital silence.
SoX resampler component has optimal settings selected by default. Just select target samplerate and Best quality from the dropdown. |
|
|
|
Nov 11 2012, 12:56
Post
#9
|
|
|
Group: Members Posts: 339 Joined: 24-November 08 Member No.: 63072 |
|
|
|
|
Nov 14 2012, 11:29
Post
#10
|
|
|
Group: Members Posts: 339 Joined: 24-November 08 Member No.: 63072 |
SoX resampler component has optimal settings selected by default. Just select target samplerate and Best quality from the dropdown. Please explain. This states that default setting (HQ Passband 95%) is optimum, by other opinions it's 99% (the maximum value). Which is right? I assume I don't want aliasing. |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th May 2013 - 05:19 |