opus-tools_win32-build
opus-tools_win32-build copied to clipboard
Crash
Windows 7 x64, OpusTools 2024.04.15
Source: any WAV file of any sample rate and any bit depth
$ opusenc in.wav out.opus
opusenc in.wav out.opus
Encoding using libopus 1.5.2 (audio)
-----------------------------------------------------
Input: WAV, 44.1 kHz, 2 channels, stereo
Output: Opus, 2 channels (2 coupled), stereo
20ms packets, 96 kbit/s VBR
Preskip: 312
[|] 0% 00:00:00.00 0x realtime, 0 kbit/s
However, if I use builds from here, they work fine.
Are you able to run more tests?
- 2024.04.15 x86
- 2024.03.19 x64
- 2023.04.20 x64
- The one from here: https://github.com/Chocobo1/opus-tools_win32-build/actions/runs/8817750167 This is the same as 2024.04.15 but a different build environment.
For the record 2024.04.15 (both x86, x64) works for me and I'm on Windows 10.
| Version | Crash |
|---|---|
| 2024.04.15 x64 | + |
| 2024.04.15 x86 | + |
| 2024.03.19 x64 | - |
| 2023.04.20 x64 | - |
| The one from here | - |
Does your CPU have AVX2 instruction set?
Opus has landed some fixes related to AVX2 between 2024.03.19 and 2024.04.15, not sure it is stable enough.
The one from here has newer MSVC and NASM versions and I'm not sure if it contributes to fixing the crash.
AVX? No.

Accidentally bumped into this and might be related:
- https://hydrogenaud.io/index.php/topic,125795.0.html
- https://developercommunity.visualstudio.com/t/Cannot-disable-AVX-and-AVX2-in-VS-2022/10497078?space=21&scope=follow&sort=newest&viewtype=all
It doesn't explain why 2024.04.15 x86 will crash for you.
Err… What if we just remove the requirement to have AVX and SSE4+?