linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls

linux下执行ffmpeg报错无法操作https资源的问题https protocol not found, recompile FFmpeg with openssl, gnutls

报错

https protocol not found, recompile FFmpeg with openssl, gnutls

发现是 ffmpeg 编译时未启用 openssl 的问题

解决

对于这个问题,需要卸载重新编译安装。配置时需要附带 --enable openssl。如果使用 ubuntu 系统,需要在编译安装前执行 sudo apt-get install libssl-dev ,确保 libssl-dev 存在

./configure --prefix=/usr/local/ffmpeg --enable-openssl
make && make install

若 ./configure 时 报错

nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.

需再附加–disable-x86asm编译安装,即

./configure --prefix=/usr/local/ffmpeg --enable-openssl --disable-x86asm

也可以先安装yasm 再安装ffmpeg

最后,执行一下ffprobe https://xxx发现无报错,能正常执行。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值