Hello,
does anyone know, what causes those weird artifacts when deinterlacing?
(VirtualDub2 - deinterlacing (yadif double TTF))
[Attachment 56559 - Click to enlarge]
I download the video so I can't recapture it.
This is the source
[Attachment 56560 - Click to enlarge]
greetings
+ Reply to Thread
Results 1 to 12 of 12
-
-
The video was resized vertically while still interlaced. The two fields are now comingled.
-
Jagabo, as always, is correct. This is a well-known problem. While I always recommend NOT deinterlacing, there are certain times when you MUST deinterlace, and this is definitely one of them.
When you resize a video, the resizing algorithm has to add or remove (depending on whether you are up- or down-scaling) pixels between rows and columns of pixels. The problem happens because with interlaced video, odd rows of pixels were recorded at a different moment in time than the even rows. If the resizing algorithm doesn't know this, and if there is lots of motion, especially in the horizontal direction, you end up with the artifact you are showing. It cannot be undone, although I did come up with an approach to somewhat mitigate the problem (long thread over in the doom9.org forum).
So, to re-size interlaced video you should deinterlace first, and then re-size. I think you can also split the video into even and odd fields, resize each independently and then weave everything back together into an interlaced video. I know this works for temporal filters, but have never tried it for re-sizing, so I am not 100% certain that this will work, but I suspect that it will.Last edited by johnmeyer; 31st Dec 2020 at 14:07. Reason: fixed confusing sentence
-
Ok. I tried it in VirtualDub2 but it doesn't work well. Am I doing something wrong?
[Attachment 56562 - Click to enlarge] -
The video can no longer be deinterlaced into two separate pictures. Your best bet is to fully blend the two fields together: resize to half height, then resize back to full height.
-
If you blend the two fields from the original, unaltered video together, you'll lose a lot of detail. I don't think that is the best way to proceed. Follow the suggestions I already gave and it will work. Better yet, don't resize.
-
If the "source" image in the first post is an accurate representation of your source -- the damage has already been done. You will not be able to deinterlace the video.
Upload a sample (not reencoded) of your source video for analysis. -
Wasn't the second image in #1 (Attachment 56560) the source?
However, if the damage has already been done, and you don't have access to the undamaged original, you can salvage a little bit by following the steps I developed years ago in this thread:
repair bad deinterlacing
It will be far worse than having done the resizing properly, but it won't be totally borked like what you showed above. -
-
[QUOTE=jagabo;2606017] Yeah, I always meant to go back to that work I did and make a real function out of it. The first thing would be to have an input variable that would specify the number of rows in each band. My work was "hard-wired" for the resizing ratio in the particular video we were working on.
Perhaps it would be a good project for the new year.
Similar Threads
-
Removing MPEG2 compression artefacts from commercial DVDs?
By Master Tape in forum RestorationReplies: 38Last Post: 17th Aug 2020, 17:27 -
Weird de-interlacing consequence
By Marcoh_ in forum RestorationReplies: 12Last Post: 4th May 2018, 12:37 -
MPC - HEVC 2160p - artefacts with NVIDIA CUVID
By asdrewq in forum Software PlayingReplies: 3Last Post: 24th Nov 2017, 11:06 -
Capturing and correcting PAL-speed audio of 24fps film without artefacts
By chen lung in forum Capturing and VCRReplies: 10Last Post: 6th Jun 2017, 16:33 -
AviSynth: Weird deinterlacing issue causing 'big' interlace lines to appear
By SMGJohn in forum RestorationReplies: 15Last Post: 9th Jul 2016, 08:42