Creating black space.

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
angelx03
Joined: Tue Jan 21, 2003 7:13 pm
Location: In school, Rochester NY mainly RIT; in home, Tampa, FL
Org Profile

Creating black space.

Post by angelx03 » Thu Apr 09, 2009 6:52 pm

All right. I need to make a 2 second black space of my AMV for an upcoming con this month. My script is this:

Code: Select all

#ASYNTHER AVISource
AVISource("E:\Strawberry Panic AMV02\Twilight Kiss huffybeta001.avi")
ConvertToYV12()
TomsMoComp(1,5,1)
Deen("w3d",3,3,5) 
TemporalCleaner()
#vmToon()
LimitedSharpenFaster(strength=200)
Tweak(sat=1.1)
Trim(0,3685)
LanczosResize(720,480)
video=last
leader=BlankClip(60,720,480,"YV12",29970,0000,00000,true,true,000000)
leader++video++leader
ConvertToRGB24()
Because the huffyuv video didn't have audio in it, I decided to put 0's in their respective arguments. Problem is that it keeps on popping an error on Line 14 saying that the framerates don't match. And I am absolutely certain that my video has a framerate of 29.97 fps and following Scintilla's guide in order to get the 2 second black clip, I should put 2 * 30 = 60.

Any ideas what's wrong?
ImageImage
Image

User avatar
angelx03
Joined: Tue Jan 21, 2003 7:13 pm
Location: In school, Rochester NY mainly RIT; in home, Tampa, FL
Org Profile

Re: Creating black space.

Post by angelx03 » Thu Apr 09, 2009 9:17 pm

And I just figured it just now:
leader=BlankClip(60,720,480,"YV12",29970,1000,00000,true,true,000000)
Never mind! :oops:
ImageImage
Image

User avatar
Pwolf
Friendly Neighborhood Pwaffle
Joined: Thu May 03, 2001 4:17 pm
Location: Some where in California, I forgot :\
Contact:
Org Profile

Re: Creating black space.

Post by Pwolf » Fri Apr 10, 2009 10:28 pm

could have also just done:

Code: Select all

leader = blackness(video, color=$000000, length=60)
It'll copy all the clip properties of "video" so all you have to do is specify the length and color.

Pwolf

User avatar
Khameleon808
Joined: Mon Jul 22, 2002 11:00 am
Location: where the buses dont run
Org Profile

Re: Creating black space.

Post by Khameleon808 » Sun Apr 12, 2009 3:45 am

it came from the blackness

*yes im still alive*
Image

User avatar
Khameleon808
Joined: Mon Jul 22, 2002 11:00 am
Location: where the buses dont run
Org Profile

Re: Creating black space.

Post by Khameleon808 » Sun Apr 12, 2009 3:48 am

couldnt you just put a black jpg in the timeline and just stretch it to accomidate the length then append that to the final encode?
Image

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: Creating black space.

Post by Scintilla » Sun Apr 12, 2009 9:14 am

Khameleon808 wrote:couldnt you just put a black jpg in the timeline and just stretch it to accomidate the length then append that to the final encode?
Yes, but it's no faster; plus, the BlankClip() method doesn't require you to use up more hard drive space by encoding another video file.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

Locked

Return to “AviSynth Help”