Log in

View Full Version : Restore Blended Telecine


simple_simon
21st November 2022, 09:10
Is there any way to restore a telencined video that has been blend-deinterlaced? Both NTSC telecined material and PAL-->NTSC conversion telecines that have been blend-deinterlaced @29.970fps. TFM() from TIVTC definitely can't field match the material anymore. And not even srestore(), with the threshold turned all the way down, can seem to "see" the blends enough to get rid of them. Even when it's limited animation and there is a perfectly good replacement frame on either side of the blend that could be substituted for the blended frame. It just doesn't seem to "see" the blends, even though I thought that's exactly what srestore was written to do. It seems like a field-blended frame should be fairly easy to detect given the obvious indicators of it. Are there any other filters that would work better?

kedautinh12
21st November 2022, 09:14
Maybe we need samples??

VoodooFX
21st November 2022, 09:19
Maybe we need samples??
Why "maybe"? :)

We need sample!

kedautinh12
21st November 2022, 09:47
Why "maybe"? :)

We need sample!

I don't know if anyone have knowledge to fix it without samples :D

simple_simon
22nd November 2022, 00:34
I don't really know why samples are necessary since I'm looking for a solution to a general problem and not a specific one. But here's an example:

https://archive.org/download/euphoria_201506/euphoriaH26472030.mov

The example was telecined NTSC that was encoded as progressive (not even blend-deinterlaced) and tfm or srestore can't field match the telecines back to be decimated

VoodooFX
22nd November 2022, 03:41
What we really don't know is why people in the 21st Century think that fortune-telling is real, I would understand if you've posted in a paranormal forum...

In your OP you say "blend-deinterlaced @29.970fps" and then you post some non-deinterlaced upscale 30fps progressive sample and complain that field matching doesn't work on it...
Mkay, here is full procedure (https://youtu.be/hqnUohxXV0I?t=678) how to treat this general problem.

simple_simon
22nd November 2022, 04:19
Funny. No, don't recall ever asking for any fortunes.

When the posted example was encoded as progressive it essentially destroyed the telecine, creating the same problem as blend deinterlacing of telecining, a field mismatched frame every 5 frames. A solution to fixing the provided sample could just as well be applied to blend-deinterlaced material.

I was hoping someone who was familiar with srestore would chime in because from what I understand of it, this should be the kind of thing it should be able to handle but it completely misses the mismatched frames.

If it makes it easier to ignore my original post and just offer any pointers on fixing just the specific posted example then that would be just as helpful.

kedautinh12
22nd November 2022, 04:36
We need samples to know issues and fix easily than only fortune-telling

Selur
22nd November 2022, 04:59
@simple_simon: Not all blends are created equal. Reading https://forum.doom9.org/showthread.php?t=176104 (and the linked translated Exotic Interlacing might help to understand that).
Decimation will not always work, but if sRestore fails (make sure to either use Prefetch or always start Preview 50 frames earlier) you could also try using TDecimate mode=7 and the target frame rate (rate=...) you are aiming for.
Also depending on the nature of the blends, stuff like:
ExBlend deblender - https://forum.doom9.org/showthread.php?t=175948 and one of the filters from http://avisynth.nl/index.php/External_filters#Fieldblending_and_Frameblending_removal might help.
Other than these general suggestions, a sample would be needed for more qualified help.

Cu Selur

VoodooFX
22nd November 2022, 05:04
srestore... completely misses the mismatched frames.
It works OK for me.

ignore my original post and just offer any pointers on fixing just the specific posted example then that would be just as helpful.


LWLibAvVideoSource("D:\euphoriaH26472030.mov")
Spline16Resize(854, 240)
Spline16Resize(854, 480)
Crop(100,0,-100,-2)

hello_hello
22nd November 2022, 06:39
SRestore does tend to miss blending here and there if the pattern changes.

Are you running SRestore in double blend removal mode? If you don't, it's a waste of time using it for blend de-interlaced telecine.
If that's what it is, double blend removal mode should get most of the blending. If it's not, double blend removal mode will probably produce lots of artefacts.

In addition to a sample of the video, including your script would also be helpful, because it's not clear what SRestore settings you're using. Samples are a good idea because they obviously provide a sample of the problem, but they also verify the question being asked is the right one. Without a sample it's not too uncommon for the correct answer to be given, but to the wrong question

I haven't downloaded the sample yet. My internet isn't too speedy and there's currently streaming and other downloads running, so at the moment it looks like it'll take over an hour to complete. Or maybe it's the website you uploaded it to that's really slow, but I gather it's not a double blend sample anyway?

Are you aware SRestore needs to run from beginning to end to work properly? You can't navigate randomly around the video to preview the result as SRestore won't work properly that way.

Double blend removal mode (the help file and/or wiki say dmode instead of mode, but that's incorrect).

SRestore(mode=-4, omode="pp0")
TDecimate()

kedautinh12
22nd November 2022, 06:51
I download very fast so i think it's from your network :D

hello_hello
22nd November 2022, 07:08
I download very fast so i think it's from your network :D

Probably. The internet here was dog slow for years. Finally it was upgraded a year or two ago (national broadband network in Australia). Now we have Netflix and a bunch of other streaming services and dog slow internet again. I'd switch to a faster plan and I think there's an option for fibre all the way to the premises now, but I'll probably be moving house in a few months so I'm procrastinating until then.