通过https的ffmpeg失败 [英] ffmpeg over https fails

查看:113
本文介绍了通过https的ffmpeg失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我用httpurl,例如:

ffmpeg -i http://vjs.zencdn.net/v/oceans.mp4 videojs.mp4

它完美地工作.但是,当我用httpsurl时,例如:

It works perfectly. However, when I feed url with https, such as this:

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

这给了我一个错误:

找不到

https协议,使用openssl,gnutls或重新编译FFmpeg 启用安全传输. https://s3-us-west-2.amazonaws.com/bucket /check.mp4 :协议不行 找到

https protocol not found, recompile FFmpeg with openssl, gnutls, or securetransport enabled. https://s3-us-west-2.amazonaws.com/bucket/check.mp4: Protocol not found

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

What should I do to enable https?

推荐答案

可以在错误消息中找到答案.

The answer can be found in the error message.

使用openssl,...重新编译FFmpeg ...

Recompile FFmpeg with openssl, ...

因此,使用必需的依赖项重新编译ffmpeg. 您可以在此处了解更多信息,并且在./configure步骤中,添加--with-openssl(如果使用的是较新版本,则添加--enable-openssl).

So, recompile ffmpeg with the required dependencies. You can read more about the process here, and during the ./configure step, just add --with-openssl (or --enable-openssl if you're using a newer version).

确保已安装以下软件包:build-essentialopenssllibssl-dev

Make sure that you have these packages installed: build-essential, openssl, libssl-dev

在评论中,您说您正在使用Ubuntu,因此可以使用apt-get install轻松安装这些软件包.

In the comments, you said that you're using Ubuntu, so you can easily install these packages using apt-get install.

安装后,您可以执行ffmpeg -protocols以确保其中列出了https.

After installation, you can execute ffmpeg -protocols to make sure that you have https listed there.

顺便说一句,您的视频(在AWS上)可以通过http协议进行访问.

By the way, your video (on AWS), can be accessed via the http protocol.

这篇关于通过https的ffmpeg失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆