I have a video and I'm trying to replicate some CSS filters for a video with FFMPEG.
Here is a screenshot from a video in CSS with the property filter: contrast(150%)
:
I tried to recreate this effect in FFMPEG with the eq filter, setting contrast to 1.5
ffmpeg -y -i ./input.mp4 -vf "eq=contrast=1.5:brightness=0:saturation=1" -pix_fmt yuv420p ./filtered_input.mp4
And my output looks like this:
Here is an image of those two screenshots side by side:
You can see that the image on the left (filtered with CSS) is a little whiter / bluer if you look at the snow in between the images.
Here is a link to the original video: https://i.imgur.com/dDmp16s.mp4
I also found this comment here that discusses a relationship between contrast and saturation, but I found that there was a still a difference even if I adjusted the saturation, or even just adjusted the saturation by itself.
My meta point is that the eq filters by FFMPEG yield very different results from the corresponding CSS filters. Does anyone know why this might be happening, and how I can get them to match up?