Log in

View Full Version : Correcting solid pixels


MMA
18th September 2023, 17:58
I have a file with solid dead pixels across the entire video and i would like to have them corrected: https://i.imgur.com/WbNoV1C.png

They only show up in same line at the bottom border but their position changes with every frame. They also look like they are the same color every time.

I was thinking about a Vapoursynth script that searches for the specific color and replaces each pixel with the average of the pixels immediately adjacent up or to the sides, provided the ones on the side are not of that same color. So i would need to create a mask to search for said color, apply a function to replace them and merge it only at the bottom border. I'm having a hard time executing it so i would appreciate if someone could help or point me in the right direction.

Here is a full frame: https://imgbox.com/4Y0KCmFh

Emulgator
18th September 2023, 18:31
What if you call these dead pixels a logo and use InpaintDeLogo (https://forum.doom9.org/showthread.php?t=176860) ? ;-)

MMA
18th September 2023, 22:17
I've never thought about using a delogo. I'll try the VS ones since i'm not familiar with AS.

ChaosKing
19th September 2023, 09:21
I would also try delogo.
A simple average (or blur) with Overlay+Crop could be also effective
There's also https://github.com/AkarinVS/vapoursynth-plugin#expr which can access individual pixels. But expr is to cryptic for me...