1、问题描述:

运行程序的时候出现了这个错误,Unknown encoder ‘libx264’,和ffmpeg库有关.

MoviePy error: FFMPEG encountered the following error while writing file run1output_video.mp4:

b”Unrecognized option ‘preset’.\nError splitting the argument list: Option not found\n”

2、解决方案:

将ffmpeg卸载了之后再conda 重新安装(用conda,因为conda会自动下载配置所需要的依赖库):

conda uninstall ffmpeg
conda install -c conda-forge ffmpeg

3、conda install -c 中的 -c 是什么意思

-c 即 -channel
频道是Navigator和conda查找包的位置,(source)具有相同名称的包可能存在于多个通道上,如果希望从默认通道以外的其他通道安装,则指定要使用哪个通道的一种方法是使用 conda install -c channel_name package_name语法。

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐