“Únete a Video Moviepy” Código de respuesta

Únete a 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)
 
# getting subclip as video is large
clip2 = clip.subclip(60, 65)
 
# concatenating both the clips
final = concatenate_videoclips([clip1, clip2])
#writing the video into a file / saving the combined video
final.write_videofile("merged.webm")
 
# showing final clip
final.ipython_display(width = 480)
Bongblender

Únete a 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)
Bongblender

Respuestas similares a “Únete a Video Moviepy”

Preguntas similares a “Únete a Video Moviepy”

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código