HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: shimarin on 2021-06-06 22:16:45

Title: Resampling and encoding in one or two steps
Post by: shimarin on 2021-06-06 22:16:45
I use convert to resample a file (using the SoX plug-in under processing) and store it as a FLAC file in one step and in a second step, convert that FLAC file to a lossy file.

If I convert to a lossy file with resampling using the same settings in a single step, I notice the two files are different with bit-compare. I'm curious. Shouldn't these two files be exactly same?

Oh, I meant to post this under General.
Title: Re: Resampling and encoding in one or two steps
Post by: lvqcl on 2021-06-07 17:06:18
no, they should be different.
Title: Re: Resampling and encoding in one or two steps
Post by: shimarin on 2021-06-08 16:44:24
What's different?
Title: Re: Resampling and encoding in one or two steps
Post by: lvqcl on 2021-06-08 19:49:57
If you convert in 1 step, intermediate results have 32-bit float bit depth.

If you use FLAC then intermediate results have 24-bit (or even 16-bit, depending on your settings) bit depth.

Very small difference, but it's not 0.
Title: Re: Resampling and encoding in one or two steps
Post by: shimarin on 2021-06-09 05:36:02
I see. Thanks for the info.