Audio and video guides

Compare Opus and Vorbis inside Ogg

·

Two files with the .ogg extension can use different audio codecs. Check the codec expected by the receiving player or editor before choosing an output.

Ogg Compressor

Save two Ogg files with different audio codecs

Load the six-second practice audio. Choose Opus, 128 kbps and 22,050 Hz. Compress and save the .ogg file. Its report should identify Ogg Opus, two channels and a reported rate of 48,000 Hz.

Switch the codec to Vorbis. Keep the same bitrate label and sample rate, then compress again. This .ogg file should contain Vorbis at 22,050 Hz. Open both downloads in a media inspector to check their codec before importing into another application.

Six-second stereo tone sample used in the practice audioRFC 7845 Ogg encapsulation for Opus audioFFmpeg audio codec and rate-control options

Read the rate and the bitrate target separately

When coding Opus, the sample rate selector applies a resampling step before the 48 kHz encode. Vorbis uses the selected sample rate directly.

The Opus target sets the encoded audio bitrate. Vorbis uses a variable bitrate quality setting with a nominal label for stereo at 44.1 kHz. Both report an average for the entire saved file, which includes container bytes.

RFC 7845 Ogg encapsulation for Opus audioFFmpeg audio codec and rate-control options

Choose by codec support and actual bytes

If an editor only accepts Ogg Vorbis, use that choice and verify the saved codec. If both formats work, compare the measured bytes and listen. The bitrate label alone cannot give the size of the saved file.

RFC 7845 Ogg encapsulation for Opus audioFFmpeg audio codec and rate-control options

Common questions

Why does the sample rate change in my Ogg Opus report?

Ogg Opus decodes on a 48 kHz clock. The lower rate chosen before encoding reduces the input bandwidth.

Which number should I check before uploading my Ogg file?

Compare the measured download bytes with the upload cap. The saved size includes Ogg container data as well as the encoded audio.

Sources

Put it into practice.

Related guides