Adding blank code

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
ForeverZeroo
Joined: Sun Aug 03, 2003 7:08 pm
Location: Philadelphia, Pa
Contact:
Org Profile

Adding blank code

Post by ForeverZeroo » Tue Apr 22, 2008 4:43 pm

Whats the code for adding blank space i nthe front of my saved huffy.

Also is there a page i can go to with all the commands and explains what they do?
Image
Image

User avatar
Kalium
Sir Bugsalot
Joined: Fri Oct 03, 2003 11:17 pm
Location: Plymouth, Michigan
Org Profile

Post by Kalium » Tue Apr 22, 2008 5:09 pm

Did you try google? Hint: try the very top hit.

Anyway, the function you want is blankclip(N), where N is the number of rames you want.

User avatar
ForeverZeroo
Joined: Sun Aug 03, 2003 7:08 pm
Location: Philadelphia, Pa
Contact:
Org Profile

Post by ForeverZeroo » Tue Apr 22, 2008 6:12 pm

2 questions:
1. is it the same if i need blank space for the tail end of the video as well?
2. where do i place the code in the avs file?
Image
Image

User avatar
Kalium
Sir Bugsalot
Joined: Fri Oct 03, 2003 11:17 pm
Location: Plymouth, Michigan
Org Profile

Post by Kalium » Tue Apr 22, 2008 6:30 pm

See above about google and the first hit. Read the documentation, and all shall be made clear.

AVISynth is a scripting language. You're going to have to learn a few things about it if you wish to use it effectively.

User avatar
ForeverZeroo
Joined: Sun Aug 03, 2003 7:08 pm
Location: Philadelphia, Pa
Contact:
Org Profile

Post by ForeverZeroo » Tue Apr 22, 2008 6:41 pm

thats a good find and ill check it out in a bit but i have to get these videos out by a deadline and i found myself screwed. could you throw me a bone?
Image
Image

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Post by LantisEscudo » Tue Apr 22, 2008 7:39 pm

Mine usually looks something like this.

Code: Select all

video=AVISource(........)
padding=BlankClip(video, 24)  #1 second @ 24fps

padding++video++padding

User avatar
ForeverZeroo
Joined: Sun Aug 03, 2003 7:08 pm
Location: Philadelphia, Pa
Contact:
Org Profile

Post by ForeverZeroo » Tue Apr 22, 2008 8:06 pm

is that 100% what i put cause i copy and pasted that and it has problems
Image
Image

User avatar
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

Post by LantisEscudo » Tue Apr 22, 2008 8:10 pm

Well, replacing the ...... with the actual path to the video, of course, but otherwise yeah, that's what I use. What kind of error are you getting?

User avatar
ForeverZeroo
Joined: Sun Aug 03, 2003 7:08 pm
Location: Philadelphia, Pa
Contact:
Org Profile

Post by ForeverZeroo » Tue Apr 22, 2008 8:12 pm

well yeah i knew that much but should i add:
"padding=BlankClip(video, 24) #1 second @ 24fps

padding++video++padding"

Or take out some of that?
Image
Image

User avatar
LivingFlame
Joined: Sat May 28, 2005 4:41 pm
Location: Closer than you think...
Org Profile

Post by LivingFlame » Tue Apr 22, 2008 8:19 pm

If your video is a different frame rate, then you should use that frame rate. Also, the "#1 second @ 24fps " is just a note that was there to help you; it doesn't actually have a function. (Anything that follows a "#" in a line is ignored by AviSynth.)

The "padding++video+padding" is right though. I just tested it out myself.
... yea ...

Locked

Return to “AviSynth Help”