开发者

How can I black out the first few frames of a video with AVISynth?

开发者 https://www.devze.com 2023-03-23 15:14 出处:网络
I tried this: black = BlankClip(length=10) video = AVISource(\"@source1\") overlay(video,black) But now the whole video is black, not only the first 10 fram开发者_StackOverflow社区es... What am I

I tried this:

black = BlankClip(length=10)
video = AVISource("@source1") 
overlay(video,black)

But now the whole video is black, not only the first 10 fram开发者_StackOverflow社区es... What am I doing wrong?


The overlay does not automatically end, remember you can also overlay an image instead of a video for instance.

Give a frame for the end of the overlay and then continue the original video from there, like so:

overlay(video, black).trim(0, 10) + video.trim(11, framecount(video))   
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号