Constant Rate Factor

What Is Constant Rate Factor?

Constant Rate Factor (CRF) is a quality-oriented video encoding method that allows bitrate to vary according to the content. Instead of specifying an exact bitrate or output size, you select a value that guides the encoder’s quality decisions.

CRF is available in encoders such as x264 and x265. It aims for reasonably consistent perceived quality, but does not guarantee identical visual quality across every frame or source.

The resulting bitrate and file size depend on how difficult the video is to compress. x265 describes CRF as quality-controlled variable bitrate encoding.

How Constant Rate Factor Works

Constant rate factor adjusts compression according to the visual complexity of each frame.

  • Choose a CRF value: A value is selected that represents the desired quality. Lower values preserve more detail and usually produce larger files, while higher values apply more compression.
  • Analyze each frame: The encoder examines motion, textures, edges, and other visual details to determine how difficult each frame is to compress.
  • Apply variable quantization: Complex scenes receive more data to preserve important details. Simpler scenes receive less data because they require fewer bits to appear clear.
  • Adjust bitrate dynamically: Because the encoder responds to scene complexity, the bitrate changes throughout the video. CRF therefore targets consistent visual quality rather than a fixed file size or bitrate.

CRF vs. Bitrate-Based Encoding

These modes prioritize different outcomes:

Rate-control method Main priority Practical consequence
CRF An encoder-specific quality target Bitrate and output size vary
Constant bitrate (CBR) A relatively steady target rate under the encoder’s rate-control model Quality can vary with content
Average bitrate A target average rate Supports more predictable video size over a known duration
Capped CRF A quality target within rate and buffer constraints Demanding scenes may receive lower quality when constrained

CRF produces variable bitrate output. It should therefore not be treated as the opposite of variable bitrate generally.

What Is Capped CRF?

Capped CRF combines quality-oriented encoding with bitrate and buffer restrictions. This helps adapt a CRF workflow to delivery requirements that cannot accommodate unrestricted bitrate peaks. If a difficult section needs more data than the constraints permit, quality can fall below the unconstrained result. The cap also doesn’t turn CRF into an exact file-size target.

QUICK TIPS
Tali Rosman
Cloudinary Logo

Here are some tips to better understand constant rate factor:

  1. Keep comparisons controlled
    Change CRF while holding the encoder and other settings steady.
  2. Test varied scenes
    Include motion, grain, fine detail, text, and gradients.
  3. Measure the output
    Check file size and bitrate alongside visual quality.
  4. Validate caps separately
    Review demanding scenes where rate constraints become active.
  5. Record the full configuration
    A CRF number alone is insufficient to reproduce an encoding decision.
Last updated: Nov 17, 2026
★★★★★
4.6 (29 reviews)
Talk to Sales Talk to Sales