Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
7th April 2013, 21:19 | #1 | Link |
Registered User
Join Date: Dec 2012
Posts: 163
|
Adding Blank Frames
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? |
7th April 2013, 21:40 | #2 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Assume the half way through means between 1st & 2nd clips.
Code:
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 Code:
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
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 7th April 2013 at 22:30. |
7th April 2013, 21:57 | #4 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
If you have half of the clip, then the end of that, is the middle.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
|
|