Jean-Marc Valin commented on merge request !201 at Xiph.Org / Opus
Agreed, will remove decay_length.
Posts from every feed QUEST has found across the web — blogs, news, podcasts, channels and more.
Agreed, will remove decay_length.
Jean-Marc Valin (c1582155) at 28 Oct 14:42 code cleanup
I think the code is correct here. The reason attenuation resets is that on the next frame we're copying already-attenuated audio. The only reason we have this compounded attenuation to begin with is that we're doing "j -= pitch_index;" instead of copying the excitation copy.
I'm glad you logged this, as I've been meaning to do this. I believe it is the same issue as #2526. It is hard to tell which repo system something might get fixed, since there are 3 different places to report bugs ...
I think the best option may be to just disable the mips FFT code when qext is enabled. Got any time to do that and check the result on your MIPS setup?
Jean-Marc Valin (5f74436d) at 19 Oct 15:45 Reject QEXT custom modes longer than 1024 samples at other rates ... and 1 more commit
I debugged the 32-bit mips fixed-point qext test failures. It appears that the issue is that, like the optimized comb filter, some mips optimizations in celt/mips/kiss_fft_mipsr1.h and celt/mips/mdct_mipsr1.h were also not updated when the generic functions were updated to use Q31 coefficients. They are still incorrectly assuming Q15 coefficients in several places, such as in C_MUL() and kf_bfly5().
I just tried it and 32-bit mips with fixed point and qext doesn't work before this MR either. This MR added an argument to comb_filter() with qext enabled, except that it wasn't added to the mips implementation, so that is what led me to try this on mips with qext enabled, because it seemed likely to be broken. It looks like that issue should be addressed separately and this change is good.
Looks kinda strange that this MR would break the DFT. Did you check whether the tests passed before the MR? Or if it's this MR, can you check which of the two commits break it?
Looks kinda strange that this MR would break the DFT. Did you check whether the tests passed before the MR? Or if it's this MR, can you check which of the two commits break it?
With that update it builds on mips (32-bit big endian), configured with --enable-assertions --enable-fixed-point --enable-qext, but the tests fail: PASS: celt/tests/test_unit_cwrs32 FAIL: celt/tests/test_unit_dft PASS: celt/tests/test_unit_mini_kfft PASS: celt/tests/test_unit_entropy PASS: celt/tests/test_unit_laplace PASS: celt/tests/test_unit_mathops FAIL: celt/tests/test_unit_mdct PASS: celt/tests/test_unit_rotation PASS: celt/tests/test_unit_types PASS:…
Jean-Marc Valin (5f74436d) at 17 Oct 01:26 Reject QEXT custom modes longer than 1024 samples at other rates ... and 1 more commit
Tested with gcc-16 on a Mac with no issue. Not sure what's your setup, but it's clearly not just about gcc.
This fails to build on mips, configured with --enable-assertions --enable-fixed-point --enable-qext: In file included from celt/celt.c:58: celt/mips/celt_mipsr1.h:103:6: error: conflicting types for ‘comb_filter’ void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, ^~~~~~~~~~~ In file included from celt/celt.c:39: celt/celt.h:253:6: note: previous declaration of ‘comb_filter’ was here void comb_filter(opus_val32 *y, opus_val32 *x, int T0, int T1, int N, ^~~~~~~~~~~ celt/celt.c:…
SPEEX_RESET_STATE is documented as "Reset the encoder/decoder memories to zero", but after a reset both the encoder and the decoder still carry state from the previous stream, so a reset state does not behave like a freshly created one. Tested on main (f461ff44) and 1.2.1, floating-point build. Reproducer The program below feeds stream A, calls SPEEX_RESET_STATE, then feeds stream B, and compares the result with a new encoder/decoder that only sees stream B. /* SPEEX_RESET_STATE vs. a freshly…
Landed the commits that had no issue. Rewrote two in !199 (merged) and the last two regarding the repacketizer will require more thought.
This series of commits adds aarch64 assembly for deemphasis, for the comb filter (postfilter), and for the FFT, both for Custom Opus (power of two frames) and for main Opus (including the recent qext for 96Khz). Benchmarks: https://gist.github.com/cyanreg/bb3aa8dbabcc541ac9a7fcfcf3bcbce9
Was merged last month. Closing
Jean-Marc Valin (e6044635) at 13 Oct 22:33 Reject QEXT custom modes longer than 1024 samples at other rates ... and 1 more commit
Jean-Marc Valin (51bd2e64) at 13 Oct 17:25 Don't read the uninitialised range decoder in the SILK PLC path ... and 12 more commits
I agree. This was closed over 4 years ago. If I'm still having to patch it I have to make assumptions: there actually is no fix and the issue was closed to shut people up the maintainer has gone MIA and no one will bother to do this someone wants this utility to remain broken Not a good look. It's hard to defend the project when a 4 year old issue continues to remain broken for no logical reason. Any other project would have gotten an abandoned tag.
This doesn't make sense because modes like 88200/960 will work without ENABLE_QEXT, but will produce an error with ENABLE_QEXT; clearly a bug. Also, other valid frame sizes such as 88200/952 and 88200/968 are accepted, just some very specific values produce an error. The fix should be in comb_filter() (and its callers if it does not currently have enough information), to not make inappropriate assumptions about Fs based on overlap==240.
It appears that with this change the window function is applied to the overlap twice; previously it was applied in the for-loop below, after the call to comb_filter(), and with this change it is also applied in comb_filter()?
This fixes only half of the problem. Suppose the repacketizer is given two 60ms packets, each containing three 20ms frames, and then opus_repacketizer_out_range_impl() is called with begin=1 end=4 to get a new 60ms packet consisting of the second, third, and fourth frames. The previous code tried to generate a packet containing all of the extensions from the second packet, which was incorrect. This fix throws out the extensions associated with the fifth and sixth frames since they are outside…
"Real packets only carry a handful of extensions per frame" is true for packets produced by this encoder implementation, but the repacketizer is also supposed to handle valid packets produced by other implementations, including future implementations that conform to the specifications. draft-ietf-mlcodec-opus-extension allows a given extension ID to appear multiple times, so a valid packet according to the specification could contain many more than 255 extensions per frame. If you don't think…
Tristan Matthews (f461ff44) at 10 Oct 21:33