WankioM commited on
Commit
45d9792
1 Parent(s): 0cfac42

Create videoedit.py

Browse files
Files changed (1) hide show
  1. OpenCV/videoedit.py +17 -0
OpenCV/videoedit.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from gc import freeze
2
+ from moviepy.editor import VideoFileClip as vfc
3
+ from moviepy.editor import concatenate_videoclips, vfx, videotools,CompositeVideoClip\
4
+ ,TextClip, ImageSequenceClip, transfx
5
+ #from contoutfinder import original,original2
6
+
7
+
8
+
9
+ clip1=vfc("project.mp4").fx(vfx.fadeout,.5)
10
+ #clip1to2=vfc(original).fx(vfx.fadeout,.5).fx(vfx.freeze,'end',3)
11
+ clip2=vfc("next_vid.mp4").fx(transfx.crossfadein,2).fx(vfx.fadeout, .5)
12
+ clip3=vfc("text_vid.mp4", True).fx(vfx.fadein,.5).fx(vfx.blink, 5, 10)
13
+
14
+
15
+ combined=concatenate_videoclips([clip1,clip2, clip3])
16
+
17
+ combined.write_videofile("combined.mp4")