Tool

Which Audio Bitrate for Video? Size Share Calculator

Pick a video bitrate and an audio bitrate, and the tool calculates what percent of the total file size the audio takes, and what percent of bitrate you could give back to the video by dropping the audio one step. It also builds AAC and Opus encode commands, plus commands that let you check where the high frequencies get cut off using your own file. Sound quality itself was not measured.

1. Where should the video bitrate come from?

Codec (preset medium)

CRF (measured values only)

Even at the same CRF, the video bitrate differs a lot from clip to clip. The less motion there is, the smaller the video part gets and the larger the audio share becomes. CRF scales differ by codec, so the same number in H.264 and H.265 is not the same quality.

2. Audio bitrate (stereo)

Value you plan to use

Value to compare

Encoder

The encoder only changes the commands below. Share and size are calculated from bitrate alone, so the numbers are the same for AAC and Opus.

Loading…

3. Commands

Keep the video as is and re-encode only the audio at 192k

ffmpeg -i input.mp4 -c:v copy -c:a aac -b:a 192k output.mp4

See where the high frequencies get cut off, using your own file (spectrogram)

ffmpeg -i input.mp4 -vn -c:a aac -b:a 192k test_192k.m4a
ffmpeg -i test_192k.m4a -lavfi showspectrumpic=s=1200x600:legend=1 spec_192k.png

The vertical axis of the PNG is frequency (Hz). The height at which the color of the sound disappears is the high-frequency cutoff for that bitrate. Change the bitrate and compare the same section. This site has not measured cutoff frequencies yet, so it gives no numbers.

All calculations happen only inside this browser, and nothing is sent anywhere.

What this tool calculates

A video file’s size is roughly (video bitrate + audio bitrate) × length ÷ 8. When you encode video with CRF, the bitrate varies a lot with the scene, while audio usually uses a fixed value such as 128k or 192k. So the quieter the video, the lower the resolution, and the higher the CRF (all of which make the video part smaller), the bigger the audio share of the total becomes. The video bitrate values come straight from the x264 and x265 results (four 1080p25 clips) in our own CRF by content measurements; the audio numbers are not measurements but inputs you choose.

How to use it

  1. Pick a video bitrate from the measurements (choose the codec and CRF), or enter the value from your own video. You can read your video’s value with the Video File Info Inspector.
  2. Choose the ‘value you plan to use’ and the ‘value to compare’, and you get a share table and a table of “how much the video bitrate grows if you lower the audio.”
  3. If the share is in single digits, the size you save by cutting audio is small. If the share is large, one audio step has a big effect on size. What counts as ‘large’ depends on your use, so this tool sets no threshold.
  4. Once you have candidates, encode a short section with the commands below and listen to it yourself, and use the spectrogram commands to compare by eye where the high frequencies get cut off.

How to see the high-frequency cutoff yourself

Lossy audio encoders are known to cut off high frequencies that they judge hard for people to hear when the bitrate is low. At which bitrate the cut starts, and from how many Hz, depends on the encoder, its version, the options and the source audio, so rather than memorizing a general rule it is more accurate to check your own sound with your own FFmpeg. The tool’s second command encodes only the audio at the bitrate you specify and then makes a spectrogram image with FFmpeg’s showspectrumpic filter. The vertical axis is frequency, and the height where the color of the sound disappears is the cutoff. If you change the bitrate to 64k, 128k, 192k and so on, make several images from the same section and put them side by side, the difference shows. To see whether the encoder has a -cutoff option for setting the cutoff directly, check your own build with ffmpeg -h encoder=aac and ffmpeg -h encoder=libopus.

AAC or Opus: which to use

  • If compatibility comes first, AAC. AAC in MP4 is known to play on most devices and platforms. To check your own device, use the Video Playability Checker or Codec Support Check.
  • Opus is a safe choice in MKV or WebM. Opus inside MP4 may produce no sound depending on the playback environment, so decide where it will be played first.
  • If the source audio is already AAC, not re-encoding comes first. Compressing with a lossy codec once more stacks the loss and can only make the file bigger. In that case, check whether you can copy in the Audio Extract Copy or Re-encode Picker.
  • This tool makes no claim about which one sounds better at the same bitrate, because no listening tests were done.

Limitations

  • Sound quality was not measured. This site’s measurements focus on video (VMAF); we ran neither listening tests nor cutoff measurements for audio. All the audio numbers in the tables are arithmetic.
  • The video bitrates come from four 1080p25 clips encoded with x264 and x265 (preset medium). Other resolutions, frame rates, hardware encoders, and re-encoding services such as YouTube are not reflected.
  • The audio scale is for stereo. Multichannel audio such as 5.1 needs a higher bitrate for the same sound quality, so don’t use this scale as is.
  • Sizes leave out variable-bitrate error and container overhead, so they can differ slightly from a real file.
  • This table doesn’t say how much a ‘change on the video side of +n%’ improves quality. For the relationship between video bitrate and VMAF, see the measured curves in the bpp Judge and the CRF Recommender.