PDA

View Full Version : Conditional Filter For Setting BlindPP's ipp Flag For Hybrid Clips


Video Dude
8th October 2004, 06:03
This script was inspired by this post.
http://forum.doom9.org/showthread.php?s=&threadid=81253

This script sets the ipp flag on a per frame basis.

Sometimes you have a hybrid video that can't be properly IVTC and want to leave it hybrid. You want to use BlindPP, but can't set the ipp flag accurately because you have both progressive and interlace material. This script solves that problem.

Add your own BlindPP parameters, but just don't change the ipp value. You might want to play with the IsCombed threshold to match your clip. Refer the Decomb readme for more info about the threshold. I have not tested the script on a wide range of sources, but it performed well on my test clips.


source = AviSource("C:\video.avi")

If_Interlaced = source.BlindPP(ipp=true)

If_Progressive = source.BlindPP(ipp=false)

test1 = ConditionalFilter(source, If_Interlaced, source, "IsCombed(source, threshold=20)", "=", "true", show=false)

test2 = ConditionalFilter(test1, If_Progressive, test1, "IsCombed(source, threshold=20)", "=", "false", show=false)

return test2

Mug Funky
8th October 2004, 06:32
coolness.

i'm always up for a script that can help on hybrids. right now i've just been leaving the PP settings at interlaced and applying them before IVTC, but that of course smears a bit of the chroma.

there's always the chance of smarter IVTC filters though. Tdeint works as field-matcher now, which can be followed nicely by decimate or fdecimate. also there's an undocumented one called "bruteIVTC" by MarkFD that seems to be gaining popularity (it does a brute-force search for good fields). i'm sticking with Tdeint because it's got enough flexibility that i can simply IVTC to double-frame rate and choose where to go from there - with libavcodec (QuEnc, et al) becoming so advanced, it's possible for me to make my PAL SVCDs as field-blends without sacrificing much quality at all... after all, i make them to watch, not to rip :)

Piper
8th October 2004, 16:41
@ Mug Funky: Is the script that Chainmax posted (spawn Xvid clip) in Another motion adaptive deinterlacer and smart bobber (http://forum.doom9.org/showthread.php?s=&threadid=82264&perpage=20&highlight=TDeint%20IVTC&pagenumber=1) similar to how you would IVTC using TDeint and decimate on a hybrid source?

Chainmax
2nd November 2004, 00:21
Not really, the script I posted there was using TDeint's bob, then BlendBob as a field-matcher. It isn't a typical IVTC.