赞
踩
pip install moviepy
from moviepy.editor import *
if __name__ == '__main__':
# 剪辑50-60秒的音乐 00:00:50 - 00:00:60
video = CompositeVideoClip([VideoFileClip("raw.mp4").subclip(50, 60)])
# 写入剪辑完成的音乐
video.write_videofile("done.mp4", fps=20)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。