Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@hnsteyding
Copy link
Contributor

Opus 1.6:

Opus 1.6 builds on the new ML-based features introduced in Opus 1.5. Major changes since 1.5 include:

  • A new wideband-to-fullband bandwidth extension (BWE) module
  • Support for 96 kHz audio with Opus HD
  • Significant improvement to Deep Redundancy (DRED)
  • A new 24-bit encoder/decoder API

Tested on:

  • Windows 10+ (via MinGW)
  • macOS 10.13+
  • Ubuntu Linux

**Opus 1.6:**

Opus 1.6 builds on the new ML-based features introduced in Opus 1.5.
Major changes since 1.5 include:
- A new wideband-to-fullband bandwidth extension (BWE) module
- Support for 96 kHz audio with Opus HD
- Significant improvement to Deep Redundancy (DRED)
- A new 24-bit encoder/decoder API

**Tested on:**
- [X] Windows 10+  (via MinGW)
- [ ] macOS 10.13+
- [X] Ubuntu Linux
@hnsteyding
Copy link
Contributor Author

hnsteyding commented Dec 16, 2025

Some notes:

@galad87
Copy link
Contributor

galad87 commented Dec 17, 2025

Yes probably the new high res feature will need a few tweaks in libavcodec.

@hnsteyding
Copy link
Contributor Author

Okay.
Unfortunately, I lack the knowledge to make any adjustments here.

@bradleysepos
Copy link
Contributor

See also #659.

@hnsteyding
Copy link
Contributor Author

hnsteyding commented Dec 19, 2025

Make some further changes and patching ffmpeg to set maximum saple rate to 96000Hz (96kHz).

HB allegedly use sample rate 96000Hz (96kHz):
Vox-Titel-1-Winkel-1-19.12.2025-14-29-Uhr-nvenc_h264-H.264-NVENC Opus 96 MP4_encode_12.19.2025 14-29-50.txt

But output video file has still sample rate of 48000Hz (48kHz):
Vox-Titel-1-Winkel-1-19.12.2025-14-29-Uhr-nvenc_h264-H.264-NVENC Opus 96 MP4.mp4.txt

Maybe someone have a look at this ?!

@hnsteyding
Copy link
Contributor Author

Seems not easy to activate/use OpusHD:
https://hydrogenaudio.org/index.php?PHPSESSID=acf0pu3il82qv31fcq8d43k17m&topic=128880.msg1074374#msg1074374

https://opus-codec.org/demo/opus-1.6/:

To enable Opus HD support, use the --enable-qext configure option when building Opus.
To encode using Opus HD, use the -qext option in opus_demo, or use OPUS_SET_QEXT(1) with the encoder API.
If built with Opus HD support, the decoder will automatically use any Opus HD layer it finds, unless OPUS_SET_IGNORE_EXTENSIONS(1) is used.
...
The header files were previously using internal macros starting with an __opus prefix,
which violates the C specification saying that identifiers beginning with a double-underscore are reserved.
This has now been fixed. Unfortunately, libopusenc was (wrongly) relying on those internal macros,
so anyone compiling with libopusenc (binaries are unaffected) will need to update to libopusenc 0.3.

@hnsteyding
Copy link
Contributor Author

BTW:

  • Compiling libopusenc 0.3 not needed
  • Using small tar ball from https://gitlab.xiph.org/xiph/opus/-/archive/v1.6/opus-v1.6.tar.gz (4,7MB) is sufficient.
  • Enable DRED and OSCE support during compilation of Opus 1.6 not needed to enable sample rate of 96000Hz (96kHz) - only add --enable-qext configure option when building Opus.

This reduce tar ball download size and also hb.dll and HandBrakeCLI size.

BTW:
- Compiling libopusenc 0.3 not needed
- Using small tar ball from https://gitlab.xiph.org/xiph/opus/-/archive/v1.6/opus-v1.6.tar.gz (4,7MB) is sufficient.
- Enable DRED and OSCE support during compilation of Opus 1.6 not needed to enable sample rate of 96000Hz (96kHz) - only add `--enable-qext` configure option when building Opus.

This reduce tar ball download size and also `hb.dll` and` HandBrakeCLI` size.
@hnsteyding
Copy link
Contributor Author

Output file has also a sample rate of 96000Hz (96kHz) if choose MKV fomat and video encoder FFV1, H.264, H.265 or MPEG-4.

@hnsteyding hnsteyding marked this pull request as ready for review December 24, 2025 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants