美文网首页
MoviePy实现视频剪辑与截图

MoviePy实现视频剪辑与截图

作者: 车到山前必有路2021 | 来源:发表于2019-04-01 17:16 被阅读0次

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

相关文章

网友评论

      本文标题:MoviePy实现视频剪辑与截图

      本文链接:https://www.haomeiwen.com/subject/qztbbqtx.html