Skip to content

Encoder: Opus

Jeremy Herbison edited this page Jan 23, 2019 · 5 revisions

A managed wrapper for the Opus Encoder. On Windows, AudioWorks includes libopus 1.3 and libopusenc 0.2.1. This extension specifically works with Opus audio streams stored in an Ogg container (.opus files).

Opus is a royalty-free open-source lossy codec maintained by the Xiph.Org Foundation and partly developed by Skype (now Microsoft). It is well supported by modern web browsers, although hardware and player support is limited. Opus achieves very high quality at surprisingly low bitrates, and is considered technologically superior to most other codecs for both voice and music. Microsoft Windows 10 support is available via the Web Media Extensions app.

Encoder settings

The default settings are similar to the reference encoder (opusenc.exe on Windows).

BitRate

Default: varies by input (6 = lowest quality / smallest files, 510 = highest quality / largest files)

Sets a desired bit rate, in kilobits per second.

ControlMode

Default: Variable (Accepted values: Variable, Constrained, Constant)

Configures the bit rate control mode. By default, an unconstrained variable bit rate is used. Normally an unconstrained bit rate achieves the highest quality. Constrained and Constant bit rates should typically be used only for certain specialized cases.

SignalType

Default: Music (Accepted values: Music, Speech)

Provides a hint to the encoder indicating whether the audio signal contains music or speech. Only affects the output at low bit rates (less than 64Kbps).

ApplyGain

Default: none (Accepted values: Track, Album)

Applies ReplayGain adjustments directly to the Opus stream, attenuating or amplifying as necessary. Note that Opus specifies a standard that is 5 dB quieter than the ReplayGain values used elsewhere in AudioWorks. Useful when you want to affect playback on a device that does not understand the R128_TRACK_GAIN and R128_TRACK_GAIN fields, or when you want to enforce one over the other. When amplifying, the gain will never be increased beyond digital full scale, to avoid clipping. This setting is ignored if ReplayGain metadata is not present.

SerialNumber

Default: random (Accepted values: any 32-bit number)

Ogg files contain a randomly-generated serial number by default. This option allows you to override the serial number with a known value. This is usually only useful for testing purposes.