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()

上一篇 下一篇

猜你喜欢

热点阅读