ffmpeg:error while loading shared libraries: libopenh264.so.5(实测可用,记录于2021.4.29.17:00)

问题描述:
在Ubuntu 10.04系统中,想用ffmpeg进行人脸的裁切,但是出现了标题的错误。我输入ffmpeg -version无法产生对应的版本号。经过Google之[https://stackoverflow.com/questions/62213783/ffmpeg-error-while-loading-shared-libraries-libopenh264-so-5],原来是too new。
在这里插入图片描述
我是用的conda虚拟环境名称是houyw,如果下面出现了houyw就是我的虚拟名称。

(1)我先按照大佬给出的指示碰碰运气:

sudo ln -s ~/anaconda3/lib/libopenh264.so  ~/anaconda3/envs/houyw/lib/libopen264.so.5

结果我的 ~/anaconda3/lib 目录下根本就没有 libopenh264.so 。所以出现了文件不存在的错误.

(2)这时我发现虽然 ~/anaconda3/lib 这个目录下没有,但是~/anaconda3/envs/houyw/lib 目录下有啊。。我于是突发奇想,尝试用~/anaconda3/envs/houyw/lib 下的 libopenh264.so试试(先把libopenh264.so.5删了)。

cd ~/anaconda3/envs/houyw/lib
rm -rf libopenh264.so.5
sudo ln -s libopenh264.so libopenh264.so.5

(3)大功告成,输入ffmpeg -version 正确显示版本号!!!
(4)总结: ~/anaconda3/lib下存在libopenh264.so的话使用1中方法,要是不存在的话使用2中方法。最后希望大家都能完美的解决这个问题!!!

OpenH264 是思科公司发布的一个开源的 H.264 编码和解码器。编码器特性Constrained Baseline Profile up to Level 5.2 (4096x2304)Arbitrary resolution, not constrained to multiples of 16x16Rate control with adaptive quantization, or constant quantizationSlice options: 1 slice per frame, N slices per frame, N macroblocks per slice, or N bytes per sliceMultiple threads automatically used for multiple slicesTemporal scalability up to 4 layers in a dyadic hierarchySpatial simulcast up to 4 resolutions from a single inputLong Term Reference (LTR) framesMemory Management Control Operation (MMCO)Reference picture list modificationSingle reference frame for inter predictionMultiple reference frames when using LTR and/or 3-4 temporal layersPeriodic and on-demand Instantaneous Decoder Refresh (IDR) frame insertionDynamic changes to bit rate, frame rate, and resolutionAnnex B byte stream outputYUV 4:2:0 planar input解码器特性Constrained Baseline Profile up to Level 5.2 (4096x2304)Arbitrary resolution, not constrained to multiples of 16x16Single thread for all slicesLong Term Reference (LTR) framesMemory Management Control Operation (MMCO)Reference picture list modificationMultiple reference frames when specified in Sequence Parameter Set (SPS)Annex B byte stream inputYUV 4:2:0 planar output支持的操作系统Windows 64-bit and 32-bit (initial release is only 32-bit, 64-bit will follow soon)Mac OS X 64-bit (initial release does not include this target, will follow soon)Linux 64-bit and 32-bit (initial release is only 32-bit, 64-bit will follow soon)Android 32-bit (initial release does not include this target, will follow soon)iOS 64-bit and 32-bit (not supported yet, may be added in the future)支持的处理器Intel x86 optionally with MMX/SSE (no AVX yet, help is welcome)ARMv7 optionally with NEON (initial release does not include this target, will follow later)Any architecture using C/C fallback functions 标签:OpenH264
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值