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 Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th February 2002, 16:03   #1  |  Link
droopy928gt
Registered User
 
Join Date: Dec 2001
Posts: 22
Blackness command doesn't work???

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
droopy928gt is offline   Reply With Quote
Old 12th February 2002, 16:50   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
The clip is always the first parameter in the later version of Avisynth. Try this:

clip=Avisource("filename")
Blackness(clip,50)
Guest is offline   Reply With Quote
Old 13th February 2002, 07:58   #3  |  Link
droopy928gt
Registered User
 
Join Date: Dec 2001
Posts: 22
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.
droopy928gt is offline   Reply With Quote
Old 17th February 2002, 00:28   #4  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
@droopy

Yes, I'm the one.

Thanks for the kind words.
Guest 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 23:52.


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