Remove dead пиксель from материальное видео (not screen)

Для полуторной кровати My recently ran through some trouble and now my датчик чип ты существуешь four dead pixels, spread across the screen. (Yes, it's actually the инспектор, Иве quadruple checked. It's not the screen.) So there пахал some dead pixels on all my footage now.

If it matters, my footage is in the following format

Resolution: 1920x1090
Frame rate: 29.970030
Codec: H264 - MPEG-4 AVC (part 10) (avc1)
Decoded format: Planar 4:2:0 YUV full scale

Is there any known approach to removing these?

(I was thinking of some sort of program to which I manually pass the positions of the dead pixels and it then ты повторно нравишься them by an average of the surrounding pixels. Some ffmpeg filter maybe?)

1
задан 7 December 2015 в 14:59

2 ответа

Можно использовать фильтр delogo с ffmpeg или ffplay. Вместо перекодирования можно просто отфильтровать после воспроизведения:

enter image description here enter image description here
Прежде и после delogo.

Пример: воспроизведение

ffplay -vf \
"delogo=x=10:y=120:w=1:h=1, \
 delogo=x=862:y=438:w=1:h=1, \
 delogo=x=56:y=207:w=1:h=1, \
 delogo=x=1259:y=943:w=1:h=1" \
input.mp4

Пример: кодирование

ffmpeg -i input.mp4 -vf \
"delogo=x=10:y=120:w=1:h=1, \
 delogo=x=862:y=438:w=1:h=1, \
 delogo=x=56:y=207:w=1:h=1, \
 delogo=x=1259:y=943:w=1:h=1" \
-c:a copy cleaned-output.mp4
  • Результаты могут варьироваться, и я не занимался расследованиями, почему delogo вызвал небольшой размытый взгляд в моем примере.

  • можно извлечь изображение из видео (ffmpeg -i input -ss 5 -vframes 1 output.png) и импортировать его в GIMP для нахождения пикселя x, y местоположения.

1
ответ дан 7 December 2019 в 13:50

Сразу, я думаю, что можно использовать avidemux с фильтром "delogo". Хотя с пикселями далеко друг от друга, Вам будут нужны несколько выполнений, и могли бы быть более оптимальные варианты.

1
ответ дан 7 December 2019 в 13:50

Другие вопросы по тегам:

Похожие вопросы: