使用ffmpeg/MoviePy创建视频时返回错误

2024-10-01 04:50:47 发布

您现在位置:Python中文网/ 问答频道 /正文

在使用moviepy之后,它已经被证明是有效的,所有的东西都被更新了。我认为代码没有问题,但不知何故它返回了错误

raise IOError(("MoviePy error: failed to read the duration of file %s.\n"

OSError:MoviePy错误:无法读取文件的持续时间。/Memes_APR_2021_V8/2546583872676854731-pubity-750-1333.mp4。 以下是ffmpeg返回的文件信息:

ffmpeg版本4.2.2版权所有(c)2000-2019 ffmpeg开发者 根据gcc 9.2.1(gcc)20200122构建 配置:--enable-gpl--enable-version3--enable-sdl2--enable-fontconfig--enable-gnutls--enable-iconv--enable-libass--enable-libdav1d--enable-libblebulray--enable-libfreetype--enable-libopencore amrwb--enable libopenjpeg--enable libopus--enable-libshine--enable libsnapy--启用libsoxr--enable libthera--enable libtwolame--enable libvpx--enable libwavpack--enable libwebp--enable-libx264--enable-libx265--enable-libxml2--enable libzimg--enable lzma--enable zlibvidstab--enable libvorbis--enable libvo amrwbenc--enable libmysofa enable libspeex--enable libxvidd--enable libaom--enable libmfx--enable amf--enable ffnvcodec--enable cuvid--enable-d3d11va--enable nvenc--enable nvdec--enable-dxva2--enable avisynch--enable libopenmpt libavutil 56。31.100 / 56. 31.100 libav编解码器58。54.100 / 58. 54.100 libav58格式。29.100 / 58. 29.100 libav58设备。8.100 / 58. 8.100 libav7。57.100 / 7. 57.100 Libsw5。5.100 / 5. 5.100 libswresample 3。5.100 / 3. 5.100 Libroc 55。5.100 / 55. 5.100 [mov,mp4,m4a,3gp,3g2,mj2@00000208f86182c0]仅检测到低分为1的格式mov,mp4,m4a,3gp,3g2,mj2,可能检测错误! [mov,mp4,m4a,3gp,3g2,mj2@00000208f86182c0]未找到moov原子 ./Memes_APR_2021_V8/254658372676854731-publity-750-1333.mp4:处理输入时发现无效数据

它正在做的是: 从我的库中抓取视频并与它们一起制作视频 就这样

我怎样才能让它工作


Tags: 文件enable格式错误ffmpegaprmp4gcc