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
LantisEscudo
Joined: Thu Mar 08, 2001 5:21 pm
Location: Eastern Massachusetts
Contact:
Org Profile

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

Code: Select all

padding=BlankClip(video, 24)
creates a 24-frame black, silent video will all the same properties as the clip called "video" (resolution, frame rate, etc.) and stores it in a variable called "padding". Everything on that line after the # is a comment and can be ignored.

Code: Select all

padding++video++padding
takes the video chunk called padding, immediately adds the video chunk called video, and then adds the chunk called padding again, so in this case the output would be 24 frames of black, followed by the video, then 24 more frames of black.

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:31 pm

Gah, I'm shutting up now. I got some bad info from somebody about the arguments for this apparently.
I guess it doesn't help that it's not actually something I would ever use either...
... yea ...

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:32 pm

thanks for clearing that up, but it seem to work now thanks!
Image
Image

User avatar
Phantasmagoriat
Joined: Mon Feb 06, 2006 11:26 pm
Status: ☁SteamPunked≈☂
Contact:
Org Profile

Post by Phantasmagoriat » Tue Apr 22, 2008 10:32 pm

Well, I guess I'm posting this late, but I usually make a file named Blank.avs that looks like this:

Code: Select all

video = BlankClip(length=30, width=768, height=432, fps=30, color=$000000)
audio = BlankClip(video, audio_rate=44100, stereo=true, sixteen_bit=true)
AudioDub(video, audio)
then append together in another file that looks like this:

Code: Select all

avisource("Blank.avs")+avisource("AMV.avi")
yes I know it could be done in one .avs file, but this way seems more intuitive to me since it looks like you are actually adding two files together.
PLAY FREEDOOM!! | Phan Picks! | THE424SHOW | YouTube | "Painkiller" | Vanilla MIDI's
"Effort to Understand; Effort to be Understood; to See through Different Eyes."

Locked

Return to “AviSynth Help”