Unknown encoder ‘libx264‘的解决方法
生活随笔
收集整理的這篇文章主要介紹了
Unknown encoder ‘libx264‘的解决方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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 ffmpeg3、conda install -c 中的 -c 是什么意思
-c 即 -channel
頻道是Navigator和conda查找包的位置,(source)具有相同名稱的包可能存在于多個通道上,如果希望從默認通道以外的其他通道安裝,則指定要使用哪個通道的一種方法是使用 conda install -c channel_name package_name語法。
總結
以上是生活随笔為你收集整理的Unknown encoder ‘libx264‘的解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: node : 无法将“node”项识别为
- 下一篇: 【Pytorch神经网络理论篇】 17