MoviePy实现视频剪辑与截图
2019-04-01 本文已影响0人
车到山前必有路2021
from moviepy.editor import *
vfc = VideoFileClip(videoPath)
videoClip = vfc.subclip(startTime, endTime)
videoClip.write_videofile(newVideoFile, temp_audiofile = temp_audiofile)
frame = vfc.get_frame(picTime)
vfc.save_frame(newImageFile, t=picTime)
vfc.reader.close()
vfc.audio.reader.close_proc()