【发布时间】:2019-12-15 07:17:16
【问题描述】:
我正在使用moviepy 编辑一些视频剪辑。我想播放原始剪辑的最后一帧 10 秒,以便在其上显示一些文本。我尝试使用
clip.to_ImageClip(t=clip.duration).set_duration(10)
但是失败了。
有人知道为什么吗?以及任何可能的解决方案。
import moviepy.editor as ed
import os
content=ed.VideoFileClip(path)
myclip=content.to_ImageClip(content.duration).set_duration(10)
myclip.write_videofile(path)
MoviePy 错误:
failed to read the first frame of video file C:\my\test.mp4.
That might mean that the file is corrupted.
That may also mean that you are using a deprecated version of FFMPEG.
On Ubuntu/Debian for instance the version in the repos is deprecated.
Please update to a recent version from the website.
【问题讨论】: