How to Adjust qcomp in FFmpeg

This article explains how to use and adjust the quantizer curve compression parameter (-qcomp) in FFmpeg. You will learn what this parameter does, how it affects your video quality and file size, and the exact commands needed to customize it for your video encoding projects.

What is -qcomp?

The -qcomp option in FFmpeg stands for “quantizer curve compression.” It is primarily used with the libx264 and libx265 encoders to control how bitrate is distributed between high-complexity (high-motion) scenes and low-complexity (static) scenes.

The parameter accepts a float value between 0.0 and 1.0:

How to Adjust -qcomp in the FFmpeg Command

To adjust this parameter, add -qcomp followed by your desired value to your FFmpeg encoding command. It is typically paired with Constant Rate Factor (-crf) encoding.

Example: Standard Encoding with Default qcomp (0.60)

ffmpeg -i input.mp4 -c:v libx264 -crf 23 -qcomp 0.60 output.mp4

Example: Increasing qcomp for High-Action Video (0.75)

If you are encoding sports, gaming, or action movies and notice that fast-moving scenes look blurry, increase the value. This allows the encoder to use more bitrate during high-motion scenes.

ffmpeg -i input.mp4 -c:v libx264 -crf 23 -qcomp 0.75 output.mp4

Example: Decreasing qcomp to Reduce File Size Spikes (0.50)

If you have a limited bandwidth budget and want to prevent sudden bitrate spikes during action scenes, lower the value. This will compress high-motion scenes more heavily to keep the overall file size predictable.

ffmpeg -i input.mp4 -c:v libx264 -crf 23 -qcomp 0.50 output.mp4