HandBrake Documentation — Constant Quality vs Average Bit Rate (2024)

HandBrake Documentation

HandBrake supports two modes of encoding video.

  • With the average bitrate, you control the size of the output file but giveup control over the video’s quality.
  • Constant quality mode does the opposite; you specify a quality level andHandBrake adjusts the bitrate (that is, the size) to meet it.

Constant Quality

Benefits over Average Bitrate

  • Faster Encoding - No need to do 2-Pass encoding (thus almost halving theencode time.) Constant Quality can produce the same quality as a 2 passencode.

  • Reduced file sizes Videos usually have a mix of complex and less complexframes. (The latter requiring less bitrate to achieve a set quality level)If less complex frames do not have bits wasted on them, your overall outputfilesize is reduced without any loss of quality.

Output File Sizes

Because it takes a different bitrate to reach a given quality level for anygiven part of any movie, the output size is unpredictable and varies from sourceto source.

Example: Given 2 sources of the same length, one could turn out to be 1.2GB, theother 1.9GB. The difference can be more or less depending on the source. If yoursource material is consistent, you will get roughly the same file sizes out foreach.

In particular, grainy sources tend to come out larger as they require a higherbit-rate to maintain all that extra detail in the video. In this case, you maytry turning on the “Denoise” filter or reduce the RF value a few points.

You should also note that even if a file size is significantly smaller than acounterpart encoded with target filesize, it does not mean it is any lowerquality. It’s simply encoded more efficiently.

x264 Recommended Quality RF Values

The Quality slider ranges from (Low Quality) 51 to 0 (High Quality) For goodquality output at reasonable file sizes, the following values are recommended:

Recommended settings for x264 are:

  • Standard Definition (e.g DVD’s) Use an RF value of around 20 +/- 1 As anexample using the AppleTV2 preset at RF20, with 20 different sources, theaverage size was 925MB per hour of video. (Min: 625MB/h Max:1,503MB/hr)

  • High Definition (e.g Blurays 720/1080) Use an RF value of 22 +/- 1 Since HDsources are typically quality, you can get away with a slightly higher RFvalue than SD content without any perceived difference in quality.

You should note that the quality slider is not linear for x264. It islogarithmic (like the Richter or pH scales.) This means small movements in thenumbers can have large results. You can control the granularity of the slider inthe preferences / options.

You can encode a few chapters of a source to experiment with different qualityvalues if the above recommendations are not suitable. Encoding a 10minute samplein the middle of your source should give you a good idea of what to expect.

x264 and RF 0

RF 0 applies no compression. It is lossless: it compresses the source withoutthrowing away practically any detail.

So should you use RF 0 to perfectly preserve the source? Nope. Not at all. Infact, you’ll end up with video that’s way larger than the DVD, but doesn’t lookany better.

See, DVDs use lossy compression to squeeze down the raw video the studios use tomake them – sort of like a quality level of RF 20. It throws away detail. WhenHandBrake uncompresses the video prior to conversion, the quality lost when theDVD was made is still gone. When you use RF 0 quality with x264, you’re tellingit to losslessly preserve the decoded, uncompressed video feed, not tolosslessly preserve the DVD. Both have the same picture quality, but theuncompressed feed takes up a lot more space.

To sum up: when converting from a DVD source, there is no reason to go above anRF of \~19, which is roughly equivalent to how heavily the DVD is compressed. Ifyou do go higher, your output will be larger than your input!

Recommended values for other encoders

[TODO]

Average Bitrate

Unless you really need to aim for a target filesize (which we recommendagainst), it is highly recommended that you use Constant Quality.

Bitrate is the number of bits dedicated to the video in a second. And remember,that gets split between \~24-30 frames. When you set an average bitrate, theencoder will vary the number of bits given to any one portion of the video, buttry to keep everything at the average you set.

  • The video bitrate can be set on the “Video Tab”
  • It is recommended that you use 2-Pass encoding.
  • This will provide better quality and better bit-rate distribution. A singlepass will lead to sub-optimal results.
    • The “Turbo” checkbox will make the first pass quicker at the expense ofquality. Most of the time this loss is minimal and not appreciable bythe viewer.
  • The downside is it can take up to twice as long to encode a file.
HandBrake Documentation — Constant Quality vs Average Bit Rate (2024)
Top Articles
Latest Posts
Article information

Author: Edwin Metz

Last Updated:

Views: 6084

Rating: 4.8 / 5 (78 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Edwin Metz

Birthday: 1997-04-16

Address: 51593 Leanne Light, Kuphalmouth, DE 50012-5183

Phone: +639107620957

Job: Corporate Banking Technician

Hobby: Reading, scrapbook, role-playing games, Fishing, Fishing, Scuba diving, Beekeeping

Introduction: My name is Edwin Metz, I am a fair, energetic, helpful, brave, outstanding, nice, helpful person who loves writing and wants to share my knowledge and understanding with you.