-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flac --bps used incorrectly in basics-and-workflow.md #84
Comments
on a certain music tracker, the recommended settings for both bit depth reduction and resampling at the same time are
when not resampling, you can just do
since the dither effect is applied automatically when output bit depth is less than 24. do we try to figure out the equivalent ffmpeg EDIT: thinking about it a little more... why don't we just let people keep the bit depth of the input file. the linked article from xiph's monty basically says that 24 bits is beyond the limit of human hearing, but so is lossless audio in general. the argument in preparation.md:
also applies to maintaining bit depth. |
Disclaimer: I don't have any money in the contents of this site. I only maintain it. That said, I think requiring |
Do you know where this is documented? I wasn't able to find anything about this in the After a quick trial I was unable to notice any significant reduction in compression
If you compare their sizes you will notice that o24.flac is about 1.5 times the size of |
Ok, I double-checked the FLAC format specification and it definitely supports a 24-bit sample size. Both libFLAC and the ffmpeg encoder use that feature. It's easy to verify using a hex editor. |
Perhaps this has changed in recent years. From my last tests with this, a flac file with 24-bit samples was twice as big as the dithered-down version to 16-bit (using sox), indicating they were instead stored with twice the size of the 16-bit file. I'll check this again later when I have more time. |
FLAC does not pad 24bit to 32bit. Even if it does, the "wasted bits" feature of it will eliminate nearly all of the padded zeros. The reason that for regular audio, 24bit flac is 2x larger than 16bit is just they are harder to compress. For the resampling, FFmpeg can use SoX resampler as well, but I'm not sure how it compares to standalone sox program. I don't understand why you say it's "non-working". |
The
--bps
option is meant to set the bits per sample to assume when reading raw input. When attempting to use it,flac
should fail and output:Reduction of bit-depth needs to be done before handing the wav file off to
flac
, probably inffmpeg
. I'm not sure what the exactffmpeg
options should be for maximal quality dithering.The text was updated successfully, but these errors were encountered: