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()
网友评论