2024-04-26 11:46:16 发布
网友
我想用魔杖创建视频缩略图 我尝试运行以下命令:
>>> from wand.image import Image >>> vid = Image(filename='example.mp4')
但我收到一条错误消息:
我肯定那个文件'示例.mp4“存在,这让我很困惑。在
看起来您需要安装ffmpeg应用程序。ImageMagick通过调用以下命令将.mp4文件传递给委托
.mp4
"ffmpeg" -nostdin -v -1 -i "%i" -vframes %S -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"
因此,如果ffmpeg未安装,则唯一的中间文件不存在,您将看到消息
ffmpeg
unable to open image [PATH]: No such file or directory @ error/blob.c/OpenBlob/2709
甚至是
delegate failed [COMMAND] @ error/delegate.c/InvokeDelegate/1332.
看起来您需要安装ffmpeg应用程序。ImageMagick通过调用以下命令将
.mp4
文件传递给委托因此,如果
ffmpeg
未安装,则唯一的中间文件不存在,您将看到消息甚至是
相关问题 更多 >
编程相关推荐