使用ffmpeg包可能会出现的小错误
1. 报错:module ffmpeg has no attribute input 这样的问题,很有可能是真假李逵的问题有可能你要用的包是ffmpeg-python哦:
pip3 install ffmpeg-python
说不定就解决了呢~
2. 报错: ffmpeg: error while loading shared libraries: libopenh264.so.5: cannot open shared object file: No such file or directory 这第二个问题嘛,我是采用如下方法解决的:
conda install x264=='1!152.20180717' ffmpeg=4.0.2 -c conda-forge
稍等一会装好了就OK啦!
当然,也有方法说 python 3.8 is too new for ffmpeg 4.2.2, we only need an older version libopen264.so.5. Well,那就用如下软链接的法子解决:
ln -s ~/anaconda3/lib/libopenh264.so ~/anaconda3/envs/py38/lib/libopenh264.so.5
希望装包人没事🙏
|