【问题标题】:https support for ffmpeg centos?https 支持 ffmpeg centos?
【发布时间】:2016-11-15 10:45:27
【问题描述】:

我已经在 centos 上安装了 ffmpeg。但是当我用 https 提供 url 时

ffmpeg -i https://s3-us-west-2.amazonaws.com/bucket/check.mp4 video.mp4

错误来了

https protocol not found, recompile FFmpeg with openssl, gnutls, or securetransport enabled.

我知道我必须启用这个--enable-openssl,但是当我这样做时

PKG_CONFIG_PATH="/ffmpeg_build/lib/pkgconfig"
./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib -ldl" --bindir="$HOME/bin" --pkg-config-flags="--static" --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-openssl 

它给了我这样的错误:

ERROR: opus not found 

我应该怎么做才能启用 https?请帮忙

【问题讨论】:

标签: ffmpeg


【解决方案1】:

FFmpeg Wiki: Compile ffmpeg on CentOShalfelf 提到的指南刚刚进行了一些清理,所以再试一次。重新开始可能最容易。

  1. 安装gnutls-developenssl-devel
  2. 删除旧垃圾:rm -rf ~/ffmpeg_build ~/ffmpeg_sources ~/bin/{ffmpeg,ffprobe,ffserver,lame,vsyasm,x264,yasm,ytasm}
  3. 重新运行指南。
  4. 停留在 FFmpeg 部分,将 --enable-gnutls--enable-openssl 添加到 ./configure 行,然后继续按照指南进行操作。

或者忘记编译,只需 download a static build of ffmpeg:它支持 HTTPS。

【讨论】:

猜你喜欢
  • 2011-06-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-12-14
  • 2013-09-26
  • 1970-01-01
  • 2020-03-26
  • 1970-01-01
相关资源
最近更新 更多