Log in

View Full Version : interlaced frames with smartdecimate passing through


scrtagt69
9th September 2004, 20:42
i have a dvd ntsc source, very clean, and on one scene change about 4 interlaced frames go through. this is this only place it happens, all the other scene changes are fine. here is the script im using.

loadplugin("D:\Program Files\AviSynth 2.5\plugins\avisynth_c.dll")
loadCplugin("D:\Program Files\AviSynth 2.5\plugins\SmartDecimate.dll")
MPEG2Source("D:\loon.d2v")
DeDot(20,20,15,5)
x=kernelbob(order=1)
SmartDecimate(60,60,bob=x)

i have tried using telecide and decimate works good with the following script

MPEG2Source("D:\loon.d2v")
DeDot(20,20,15,5)
Telecide(1,vthresh=50,blend=true)
Decimate(mode=1,threshold=1.0,quality=3)

however i do get ghosts using telecide, as you can see from this screenshot.ghost (http://www.geocities.com/ojordonez/loonghost.jpg) any ideas how i can improve either script(and yes i removed dedot from the telicide and the ghosts still exists). ty for any input.

ObiKenobi
9th September 2004, 23:12
Originally posted by scrtagt69
however i do get ghosts using telecide, as you can see from this screenshot.ghost (http://www.geocities.com/ojordonez/loonghost.jpg) any ideas how i can improve either script(and yes i removed dedot from the telicide and the ghosts still exists). ty for any input. [/B]

The ghosting is most likely caused by you having Telecide using blending instead of interpolating, turn blend off and see what results you get.

scrtagt69
9th September 2004, 23:31
thanks for the reply Obi, i guess i should of mentioned i had tried it with blend=false and the ghosts are still there.

ObiKenobi
10th September 2004, 01:18
Originally posted by scrtagt69
thanks for the reply Obi, i guess i should of mentioned i had tried it with blend=false and the ghosts are still there.

Does the ghosting happen with the first script?

scrtagt69
10th September 2004, 05:13
no, no ghosting on the first script...just the interlaced frames coming through on one scene change.

scrtagt69
10th September 2004, 05:19
Thanks for your help obi, i winded up using this to fix my problems.

MPEG2Source("D:\loon.d2v")
DeDot(20,20,15,5)
IT(fps = 30, ref = "TOP", diMode = 2)
UnDot()


IT works very well for doing IVTC, if anyone hasnt used it i recommend it, no ghosting at all and not one interlaced frame.

ObiKenobi
10th September 2004, 05:27
Post a link to get it?

scrtagt69
10th September 2004, 05:46
its on the avisynth site where you can download all the other plugins. plugins (http://www.avisynth.org/warpenterprises/)

ObiKenobi
10th September 2004, 05:56
Guess I missed it when I last time I looked, hehe.

ObiKenobi
10th September 2004, 06:06
I can't read the help file, care to explain all the parameters and such? Thanks.

manono
10th September 2004, 12:27
I'm not sure scrtagt69 knows, since he screwed up one of the settings. His will reassemble the frames, but won't decimate anything, keeping it at 29.97fps. So, he should have a duplicate frame in every cycle of 5 frames.

But having said that, I don't know much more about it, except that it does sometimes work when other IVTC's fail. But it fails sometimes also. You might try this:

IT(fps=24,ref="top",blend=false)

The 24 is the decimated framerate. Top refers to top or bottom field first. And set blend to true or false depending on whether you want any remaining interlaced frames to be deinterlaced by blending or interpolation. I have no idea what dimode is, but most likely someone else around here does.

scrtagt69
10th September 2004, 23:01
i use tmpgenc to do the pulldown part, to have it at 23.976 frames if thats what u mean. original source had 7000+ frames and mine after encoding has bout 5600. what settings, were you referring to as screwed up? what i used there i got from the documentation.

manono
11th September 2004, 08:42
Earlier you said:

IT works very well for doing IVTC

But 30fps isn't Inverse Telecine at all. IVTC refers to returning the 30fps telecined material to its original 24fps film. To my way of thinking, using TMPG just to do the actual decimation is slow and obsolete, but to each his own, I guess.

If all you want to do is to get 30fps with a guarantee of no remaining interlacing, then you might try:

KernelBob(Order=1)
BlendBob()

Many thanks to Leak for that one.

And it's not a good idea to put on DeDot or any other cleaner before the IVTC/Field Matching.

Video Dude
29th September 2004, 03:32
Originally posted by manono
I have no idea what dimode is, but most likely someone else around here does.

I was wondering what dimode did myself. The readme is in Japanese so I had to figure it out myself. The following is an educated guess on what I found while playing with the settings. Correct me if I am wrong.

I would assume "dimode" stands for deinterlace mode.

dimode=0 No deinterlace - Leaves frames combed
dimode=1 Deinterlace - Produces some jagged lines in animation
dimode=2 Blends - Some slight ghosting in high motion
dimode=3 Not sure - Very similar to mode 1 but less jagged edges

It seems to produce great results.

Dali Lama
5th October 2004, 03:58
Hi manono,

I think DeDot removes cross-talk, so it should be used before IVTC or deinterlacing. Although I may be mistaken, I havn't used it in a long time, here is what a translated explanation of it says:

"The dot disturbance cross color decrease plug in for Avisynth"

Take Care,

Dali