Tool
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.
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.
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.