Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 8th October 2004, 05:03   #1  |  Link
Video Dude
Senior Member
 
Join Date: Apr 2004
Posts: 1,044
Conditional Filter For Setting BlindPP's ipp Flag For Hybrid Clips

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.

Code:

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

Last edited by Video Dude; 8th October 2004 at 05:09.
Video Dude is offline   Reply With Quote
Old 8th October 2004, 05:32   #2  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,547
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
__________________
sucking the life out of your videos since 2004
Mug Funky is offline   Reply With Quote
Old 8th October 2004, 15:41   #3  |  Link
Piper
Registered User
 
Piper's Avatar
 
Join Date: Jul 2002
Location: Canada
Posts: 196
@ Mug Funky: Is the script that Chainmax posted (spawn Xvid clip) in Another motion adaptive deinterlacer and smart bobber similar to how you would IVTC using TDeint and decimate on a hybrid source?

Last edited by Piper; 8th October 2004 at 16:54.
Piper is offline   Reply With Quote
Old 1st November 2004, 23:21   #4  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
Not really, the script I posted there was using TDeint's bob, then BlendBob as a field-matcher. It isn't a typical IVTC.
Chainmax is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:59.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.