Looks like the high contrast parts of the previous frame's luma field are being ghosted over. If that's part of the source, there isn't much you can do. If it isn't, then mirko's suggestion is pretty solid. Assuming it's in the source, the way to get rid of it is masking the pixels and then interpolating them against the rest of the frame. I would first try IVTCing it in YATTA just to make sure it really is in the source and not just a poor ripping job, and if it is, then using mt_edge() to mask the contrast differences and compare them temporally; if they match lines in the previous frame, then add them to the mask, otherwise discard. Then apply nnedi2 to the entire picture on a single field and take a difference mask with the output and the original, and then just apply the difference against the original mask over your image. That sounds more complicated than I intended it to but it's still quite a bit of annoying masktools2 work.
EDIT: On second thoughts, can you take your source and do a separatefields().selecteven() on it? See if the frames are still bad like that, if so, try selectodd() instead. Assuming that only one of those is bad, it would imply that only a single set of fields are damaged, in which case I have an idea. If not, you're either going to have to freezeframe the shit out of it, photoshop it (yes really,
insertsign() with imagesource("somepng", pixel_type="RGB32") is going to be your friend), or otherwise do some extensive work with mt_edge and mt_makediff.
Assuming it is only one bad field though, find out which one it is, and then see how this goes:
Code: Select all
clean = nnedi2(field=whicheveroneisgood)
amask = mt_makediff(clean, original)
mt_adddiff(amask)
Not sure if that is really the best way to do it, possibly differential contrablurring would be better, but I think I'm at the point where I would just lol at how bad the Avatar DVD's were, apparently even the Darkhold legends of old had a lot of issues with it and mostly just gave up on ever fixing it. Avatar is somewhat notoriously badly mastered it seems.