Log in

View Full Version : Using BLANKCLIP... How?


slk001
7th October 2002, 14:47
I have been trying to create a "custom" BLANKCLIP, but I don't know what to put in for "pixel type". What are the values allowed for this variable? Also, if I use 29.97 or 23.976 as my "fps" values, should the "fps_denominator" value be set to 1?

Wilbert
7th October 2002, 14:57
Something like this:

BlankClip(length=3000, width=720, height=480, fps=23.976, color=$000000)

slk001
7th October 2002, 16:48
That doesn't work (I tried leaving out the "pixel type", but I got an AVISYNTH incorrect parameter error).

I tried this:
BLANKCLIP(51,720,480,23.976,1,48000,true,true,$000000)

I just noticed that the document on BLANKCLIP on the AVISYNTH WEB page shows "pixel_type" as an INT, while the documents for V2.06 show it as STRING.

sh0dan
7th October 2002, 17:09
It's supposed to be a string.

slk001
7th October 2002, 19:09
Okay,after perusing the source code, it seems that pixel_type must be "RGB32", "RGB24", or "YUY2". It is a STRING variable, so the quotation marks are required.

So, this command:

BLANKCLIP(51,720,480,"YUY2",23.976,1,48000,true,true,$000000)

should create a black 720x480 YUY2 clip that is 51 frames long (along with bogus audio).

Wilbert
8th October 2002, 09:14
That doesn't work (I tried leaving out the "pixel type", but I got an AVISYNTH incorrect parameter error).

I tried this:
BLANKCLIP(51,720,480,23.976,1,48000,true,true,$000000)


If you don't list parameters (like pixel type) you have to call them by their names. Thus length=51, etc ...

I just noticed that the document on BLANKCLIP on the AVISYNTH WEB page shows "pixel_type" as an INT, while the documents for V2.06 show it as STRING.

I changed that. Thanks!