赞
踩
from moviepy.editor import *
video_1 = VideoFileClip("1.mp4")
video_2 = VideoFileClip("2.mp4")
video_3 = VideoFileClip("3.mp4")
video = clips_array([[video_1, video_2, video_3]]) #
mix_audio = CompositeAudioClip([video_1.audio, video_2.audio, video_3.audio])
video.set_audio(mix_audio)
video = video.resize(width=video.size[0]) # 可以调整尺寸
video.write_videofile("合成的视频.mp4")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。