Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

join video moviepy

# Import everything needed to edit video clips
from moviepy.editor import *
 
# loading video dsa gfg intro video
clip = VideoFileClip("dsa_geek.webm")
 
# getting subclip as video is large
clip1 = clip.subclip(0, 5)
 
 
# loading video gfg
clipx = VideoFileClip("geeks.mp4")
 
# getting subclip
clip2 = clipx.subclip(0, 5)
 
# clip list
clips = [clip1, clip2]
 
# concatenating both the clips
final = concatenate_videoclips(clips)
 
# showing final clip
final.ipython_display(width = 480)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #join #video #moviepy
ADD COMMENT
Topic
Name
3+5 =