Log in

View Full Version : Adding Blank Frames


BlockABoots
7th April 2013, 21:19
How do you add blank frames (blackness) at the start of a clip...or anywhere in a clip.

This is what i have atm....

video=AVISource("E:\CAPTURES\My Records\Alien Solider (Standard).avi") + AVISource("E:\CAPTURES\My Records\Alien Solider (CCAM).avi")

I want to add 60 frame of blackness at the star and then the same again half way through?

StainlessS
7th April 2013, 21:40
and then the same again half way through?

Assume the half way through means between 1st & 2nd clips.


video1=AVISource("Test1.avi")
video2=AVISource("Test2.avi")
BLK=video1.Blackness(Length=60) # Black clip using properties of video1 where not supplied.
video3 = BLK ++ video1 ++ BLK ++ video2

Return video3


Or alternative exactly as stated


video=AVISource("Test1.avi") ++ AVISource("Test2.avi")

BLK=video.Blackness(Length=60) # Black clip using properties of video where not supplied.

mid = video.Framecount / 2 # Halfway through (Problem if Framecount is 3 or less)
v1 = video.Trim(0,mid-1) # 1st half
v2 = video.Trim(mid,0) # 2nd half
VOut = BLK ++ v1 ++ BLK ++ v2 # join together

Return VOut

BlockABoots
7th April 2013, 21:49
Thanks can an audio fade be added in the middle of a clip or is it only possible at the end of a clip?

StainlessS
7th April 2013, 21:57
If you have half of the clip, then the end of that, is the middle.