gpt4 book ai didi

ffmpeg - https 支持 ffmpeg centos?

转载 作者:行者123 更新时间:2023-12-04 23:00:01 25 4
gpt4 key购买 nike

我已经在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 Wiki: Compile ffmpeg on CentOS提到的 halfelf 刚刚进行了一些清理,所以再试一次。重新开始可能最容易。

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

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

    关于ffmpeg - https 支持 ffmpeg centos?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40607822/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com