Log in

View Full Version : Applying filters to a interlaced picture dont give the same results as...


vigi_lante
22nd October 2004, 18:24
I´m mainly talking about TV capture NTSC cartoons and anime with 3:2 pulldown.

Applying filters to a interlaced picture dont give me the same results as applying the same filters, on the same video, to a progressive picture (I mean, using a deinterlace filter before applying the filters). And I´m doing this comparation using Virtuadub, before I encode my video...

Is there any reason for this ? Filters works better with progressive frames ?

This is the code that I´m using...


AviSource("c:\capture.avi")
Decimate()
ConvertToYV12(interlaced=true)

even=last.separatefields().selecteven()
odd=last.separatefields().selectodd()

even = even.UnDot().cnr2().edeen(7,14,21,2,3,true)
\ .TemporalCleaner(6,12).aWarpSharp().mfToonLite()
\ .BicubicResize(512,384/2).Limiter()

odd = odd.UnDot().cnr2().edeen(7,14,21,2,3,true)
\ .TemporalCleaner(6,12).aWarpSharp().mfToonLite()
\ .BicubicResize(512,384/2).Limiter()

interleave(even,odd)

Ark
22nd October 2004, 20:55
You can simply use Separatefields() -> *Filters()* -> Weave()

vigi_lante
22nd October 2004, 22:58
But you know...you need to handle spatial and temporal filters in a different way. Are you sure this is the right way to do it ?

Video Dude
23rd October 2004, 00:41
Looking at your script, there is something very wrong.

If you are processing interlaced material why do you have Decimate()?

Decimate drops the duplicate frames (the 5th most of the time), but if you have pure interlace you have no dups due to the two fields. So get rid of the Decimate in your script.

If you have a telecined clip, then perform an IVTC with Telecide and then use Decimate. You will end up with progressive material without deinterlacing. You might have to follow with a post processing deinterlacer if you notice combs.

But you can't use Decimate on interlaced material. No wonder you are getting bad results.

vigi_lante
23rd October 2004, 01:37
I see...

Well, I neeed to perform an inverse telecine to restore the film back to the 24 frame per second format. But could I ask you what are the exact settings that I need to use to do this, without deinterlacing ?

Thanks.

Video Dude
23rd October 2004, 01:48
With Decomb/FDecimate:

Telecide(order=0, post=0) # or order=1 if tff
FDecimate()



It should also be noted that you can't compare progressive and interlace clips in VirtulaDub frame by frame because of the interlace line artifacts. The proper way to compare them would be on a television screen. That could be why it looks worse to you.

Mug Funky
23rd October 2004, 16:59
with anything that looks interlaced, always take a look at it 1 field at a time, either with separatefields, or bob. if you see regular duplicates, you've got a telecine. if not, you've got something else.

hmm... i might have a go at writing a nice guide to interlacing/telecine/etc. there's a lot out there, but there's also a lot of questions being asked.

scharfis_brain
24th October 2004, 00:07
@ Mug Funky: more than half a year ago I wrote an guide for PAL-interlacing (It was maily the work of one weekend) but I did never updated it since then. (I am a lazy guy, am I?)

maybe its design (the visualization of the patterns) would be an idea.

Be warned: it is pure German.

http://home.arcor.de/scharfis_brain/ExotischesInterlacing/