PDA

View Full Version : Strange behavior with Subtract+BlindPP


Cyberia
31st December 2004, 07:29
Can some one explain why this script does not produce a pure black screen?
video=AVISource("D:\movie.avi")
video=video.ConvertToYV12()
video=video.BlindPP()

video2=AVISource("D:\movie.avi")
video2=video2.ConvertToYV12()
video=video.BlindPP()

subtract(video2, video).Levels(127, 1, 129, 0, 255, False)


If you remove the BlindPP lines, the effect goes away and you do get the expected black screen. The effect happens on AVISource and DSSource opens. But what's going on?

EDIT: BlindPP is being auto-loaded from the latest DGDecode.

Cyberia
31st December 2004, 07:37
Nevermind.

I couldn't see it until I posted it. Here is the culprit...

video2=AVISource("D:\movie.avi")
video2=video2.ConvertToYV12()
video=video.BlindPP()


It should be:video2=AVISource("D:\movie.avi")
video2=video2.ConvertToYV12()
video2=video2.BlindPP()


Oopsie.

Mug Funky
8th January 2005, 09:00
it's not my business, but any reason you're calling the same clip twice? you can save a little time by just making video2 = video and not run avisource twice.

Cyberia
9th January 2005, 20:32
Well, I was testing/comparing some BlindPP parameters and didnt seem to be seeing any difference, so I reduced the script to this and tried it. It should have made a black screen but didnt so I thought something is wrong.

Something was wrong...me.