<p>Look at the <a href="https://ffmpeg.org/ffmpeg-filters.html#eq" rel="nofollow noreferrer">eq filter</a>.<br />
Example :<br />
<code>ffplay input -vf eq=contrast=1.25:brightness=.05:saturation=2.5:gamma=1.07</code><br />
to determine the good values for you.</p>

CC BY-SA 4.0
2023-02-23T21:14:13.357Z
I'd like to adjust histogram exactly as on the picture.
Ivan Z
CC BY-SA 4.0
2023-02-23T02:48:06.307Z
2023-02-23T02:49:47.153Z
2023-02-23T02:49:47.153Z
Alain1A45
<p>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.</p>
<p><a href="https://i.sstatic.net/PoQdG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/PoQdG.png" alt="enter image description here" /></a></p>
<p>How to set this level values in ffmpeg?</p>

<ffmpeg><video><filter><color-correction>
How to adjust video histogram using ffmpeg?
Ivan Z
# How to adjust video histogram using ffmpeg?

(Asked by: username_0 on 2023-02-21)

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](https://i.sstatic.net/PoQdG.png)](https://i.sstatic.net/PoQdG.png)

How to set this level values in ffmpeg?

**Tags:** ffmpeg, video, filter, color-correction


---

## 1 answers

### Answer by username_1 on 2023-02-23. Score: 0

Look at the [eq filter](https://ffmpeg.org/ffmpeg-filters.html#eq).  
Example :  
`ffplay input -vf eq=contrast=1.25:brightness=.05:saturation=2.5:gamma=1.07`  
to determine the good values for you.

> **Comments:**
> **username_0**: I'd like to adjust histogram exactly as on the picture.  

---

