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
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