User Guide
MoviePy
MoviePy is a Python module for video editing, which can be used for basic operations (like cuts, concatenations, title insertions), video compositing (a.k.a. non-linear editing), video processing, or to create advanced effects. It can read and write the most common video formats, including GIF.
# Video and Audio mixing python script
from moviepy.editor import *
# VIDEO CLIPS
vclip = VideoFileClip("video.mp4") # or .avi, .webm, .gif ...
# AUDIO CLIPS
aclip = AudioFileClip("audio.wav") # or .ogg, .wav... or a video !
final = concatenate_videoclips([vclip]).set_audio(aclip)
final.write_videofile("movie.mp4")
No comments:
Post a Comment