I have a dark video and'd like to adjust its histogram. In a graphical editor I've found the values of the color levels that enhance video contrast.

enter image description here

How to set this level values in ffmpeg?

1 Answer 1


Look at the eq filter.
Example :
ffplay input -vf eq=contrast=1.25:brightness=.05:saturation=2.5:gamma=1.07
to determine the good values for you.

  • I'd like to adjust histogram exactly as on the picture.
    – Ivan Z
    Commented Feb 23, 2023 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.