Log in

View Full Version : ffmpeg: how to fix edge brightness (1 line of brilliant pixels)?


incredibilePino
26th January 2022, 12:03
I would like to fix the brightness in the border of a video, it has 1 line of pixel on the right where the image continues but it's less brilliant than the rest of the video image. I don't want to crop this line because the image continues in the line, it's just darker. Is there a ffmpeg filter to adjust the color/brightness in this line only?

benwaggoner
26th January 2022, 18:08
I would like to fix the brightness in the border of a video, it has 1 line of pixel on the right where the image continues but it's less brilliant than the rest of the video image. I don't want to crop this line because the image continues in the line, it's just darker. Is there a ffmpeg filter to adjust the color/brightness in this line only?
Screen shot? There's different ways that sort of thing can happen, and the right solution can depend on that. For example, it could be an analog capture, or it could have been a scaling error from a digital source.

Typical practice is to just crop that line out, as it's quite hard to find a filter that can consistently produce a correct looking result. I can imagine a filter that would extrapolate based on pixels from the left, but it would be kind of complex and I'm not aware of ffmpeg having anything like that.