Log in

View Full Version : Blackness command doesn't work???


droopy928gt
12th February 2002, 16:03
I have a question with regard to the "blackness" command for which I hope that someone can help me.

According to the instructions it should be used "blackness(frames, clip)".

I use "blackness" the following way. I define a videoclip to a variable and then use this variable in the "clip" position. Simple enough I would think. My problem now is that it is impossible for me to get it to work like this. It always shows me an error telling me that I use the "blackness" command with an incorrect parameter. The strange thing is though. If I use e.g. "avisource" or alike command before "blackness" and leave out the clip parameter it all works fine. I understand that this is because I left out the clip parameter and "blackness" then automatically inserts the clip asigned to the variable "last", which in this case is the "avisource" command. I also tried inserting the whole "avisource" command in the clip position but this gives the same error.

This works:
Avisource("filename")
Blackness(50)

This should work but doesn't:
Video = Avisource("filename")
Blackness(50, Video)

I already read on several broken functions in Avisynth. Is this maybe 1 of them? Or am I just doing something horribly wrong.

Just as information, the codec used with all my video is HuffYUV.

Thanks for any input.

Regards, Leon

Guest
12th February 2002, 16:50
The clip is always the first parameter in the later version of Avisynth. Try this:

clip=Avisource("filename")
Blackness(clip,50)

droopy928gt
13th February 2002, 07:58
Thanks for the explanation Neuron2. I must have missed this one over time in the version changes of Avisynth.

Regards, Leon

PS
If you're the same Donald Graft as the one that made some very nice filters available for Avisynth and VirtualDub. Thanks again then. They make this video hobby much nicer for me.

Guest
17th February 2002, 00:28
@droopy

Yes, I'm the one. :)

Thanks for the kind words.