View Full Version : Deinterlacing Nightmare
Defiler
25th August 2002, 08:24
OK. I fancy myself to be a pretty skilled video enthusiast.
I write nasty complicated Avisynth scripts, I've ripped vast numbers of DVDs, etc.
Well, I've finally run into one that I can't handle.
In DVD2AVI, it appears as pure 29.97fps NTSC, non-film.
However, the following techniques all yield nasty blurred frames:
FieldDeinterlace
TomsMoComp (Even with maximum search effort)
GreedyHMA (Mode 4, as well as others..)
Attempting IVTC just gives me choppy movement, as expected.
If I use SeparateFields and Gunnar Thalin's "Deinterlace - Smooth" VirtualDub plugin, the problem disappears, but that's not very useful for real rips. Almost 60fps.
I've saved out 100 frames in Huffyuv. It's 23MB, on a fast host. If you'd like a smaller section, I'd be happy to provide it.
http://hellninjacommando.com/misc/avisynth/solaris-huffyuv.avi
Can anyone offer some tips? I'll be in your debt.
Suzahara
25th August 2002, 10:35
Why not try a decomb or a pulldown, so you can choose the pattern you want and showfive is really useful at getting the right one, with that virtualdub plugin if the interlacing isn't gone.
gio
25th August 2002, 10:39
Hi
Isn't this where you have to do the IVTC with Decomb, Decomb and nothing but Decomb?
I'm pretty new to Avisynth-Scripts, so I could be terribly wrong. :)
Dreassica
25th August 2002, 11:38
U tire de blend=false option in Decomb??
Maybe that helps.
neuron2
25th August 2002, 15:08
The clip you posted attempts to present the same picture in successive fields, but the picture shifts a small amount and changes in intensity and focus, probably due to bad mastering. So you see these fields:
A B C D E ...
A' B' C' D' E'......where (e.g.) A' is a slightly corrupted version of A.
You can start by ensuring that the fields get aligned properly and that any residual combing (due to the shifts) is removed. Thus, the following script does a reasonable job on this clip:
Telecide(threshold=30,blend=false)The story doesn't end here however. After doing this, you see a duplicate frame every 6 frames! You can remove it by adding Decimate(cycle=6,mode=0). But that is a very strange decimation.
Of course, I can't say whether the whole rip is like this. If it isn't, then you may have difficult decisions to make. But for this small section, Telecide().Decimate() as above does very well on it.
theReal
25th August 2002, 19:20
But that is a very strange decimation.
Is it possible that it was converted to 29.97 fps from a 25 fps progressive PAL source?
Defiler
25th August 2002, 19:54
Thank you for the replies, everyone.
This combination seems to work well:
Telecide(threshold=30,blend=false,post=false)
Decimate(cycle=6,mode=0)
FieldDeinterlace(full=true)
Occasionally a "necessary" frame will be dropped, and there will be a little hiccup in the motion, but that's far better than it was.
I'd forgotten about ShowFive. That's a cool function.
Defiler
25th August 2002, 19:56
Originally posted by theReal
Is it possible that it was converted to 29.97 fps from a 25 fps progressive PAL source? This is an all-region release of the russian sci-fi classic "Solaris." I think your theory is probably correct. I wish I had the PAL version. Grr.
neuron2
26th August 2002, 05:48
@Defiler
Telecide(threshold=30,blend=false,post=false)
Decimate(cycle=6,mode=0)
FieldDeinterlace(full=true)
This is inefficient. Exactly the same effect is achieved with:
Telecide(threshold=0,blend=false)
Decimate(cycle=6,mode=0)
Setting threshold=0 to Telecide forces the deinterlacer to run all frames.
Defiler
26th August 2002, 14:38
Thanks. I should have realized that.
Defiler
26th August 2002, 20:30
Just thought I'd come back and note that it worked perfectly. Thanks for the help.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.