-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 encoder clips poorly #10318
Comments
Commented by: ywwg |
Commented by: ywwg |
Commented by: ywwg this might be a bug in sndfile |
Commented by: ywwg According to our code: // Tell the encoder that, when converting to integer formats, clip So this may be a case where the ubuntu-built sndfile is not compiled correctly. I am trying disabling clipping to see what happens. |
Commented by: ywwg Setting it to false appears to fix the issue, I'll make a PR and we should have people test it. |
Commented by: Be-ing Upstream bug in libsndfile, already fixed: libsndfile/libsndfile#309 |
Commented by: ywwg |
Commented by: ywwg oh cool thanks. yeah playing with the setting did not help. In the interim, using WAV output is a lot better |
Commented by: ywwg ubuntu 20.04 has 1.0.28-7 |
Commented by: ywwg
|
Commented by: ywwg yup, updating to git sndfile fixes the issue |
Commented by: daschuer The fix was done in this commit. Ubuntu Bionic LTS has 1.0.28-4ubuntu0.18.04.1 Fedora 33 has 1.0.31 |
Commented by: daschuer I cannot confirm that the issue is fixed after upgrade, because we don't set |
Commented by: daschuer Oh, we do set it.. strange, something else must be wrong. |
Issue closed with status Fix Released. |
Reported by: ywwg
Date: 2021-02-10T17:00:53Z
Status: Fix Released
Importance: Low
Launchpad Issue: lp1915298
Attachments: [wave clipping](https://bugs.launchpad.net/bugs/1915298/+attachment/5462352/+files/wave clipping), [flac clipping](https://bugs.launchpad.net/bugs/1915298/+attachment/5462353/+files/flac clipping), [flac with clipping disabled](https://bugs.launchpad.net/bugs/1915298/+attachment/5462356/+files/flac with clipping disabled)
I recorded a set and there was some clipping, but it didn't sound bad out of my speakers. However the recorded flac has awful popping noises wherever the clipping happens. I did some testing and discovered that it clips incorrectly. If I record with WAVE, clipping looks like you'd expect (first image). But in flac, the clipped value bounces from 0 to 1 crazily (second image). I wonder if this is an issue with going from float to int?
The text was updated successfully, but these errors were encountered: