Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Video https上的FFServer_Video_Https_Ffserver - Fatal编程技术网

Video https上的FFServer

Video https上的FFServer,video,https,ffserver,Video,Https,Ffserver,我们目前通过“http”即ffserver提供视频/音频源http://127.0.0.1:8000/folder/feed1.mjpg 然而,现在我们需要通过“https”添加feed来保护页面,所以我们需要做类似的事情https://127.0.0.1:8000/folder/feed1.mjpg 我搜索了网页和文档,但没有找到任何与ffserver和https相关的内容。 这可能吗?如果是这样,有人能告诉我实现这一目标的方向吗?我也有同样的问题-将ffserver的未加密WEBM流嵌入HT

我们目前通过“http”即
ffserver提供视频/音频源http://127.0.0.1:8000/folder/feed1.mjpg

然而,现在我们需要通过“https”添加feed来保护页面,所以我们需要做类似的事情
https://127.0.0.1:8000/folder/feed1.mjpg

我搜索了网页和文档,但没有找到任何与ffserver和https相关的内容。

这可能吗?如果是这样,有人能告诉我实现这一目标的方向吗?

我也有同样的问题-将ffserver的未加密WEBM流嵌入HTTPS网站会导致浏览器出现“混合内容”警告。 我通过使用带有mod_代理的Apache解决了这个问题。 我基本上遵循了本教程:

简而言之,我只做了以下3个步骤:

  • 启用代理模块

    a2enmod proxy
    a2enmod proxy_http
    
  • 使用以下指令在Apache中创建一个新的虚拟主机,侦听端口443:

    <VirtualHost *:443>
      ServerName livestream.example.com
      ProxyPreserveHost On
      ProxyPass / http://0.0.0.0:8090/
      ProxyPassReverse / http://0.0.0.0:8090/
    
      SSLCertificateFile /etc/letsencrypt/live/example.com/cert.pem
      SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
      SSLCertificateChainFile /etc/letsencrypt/live/example.com/chain.pem
      Include /etc/letsencrypt/options-ssl-apache.conf
    </VirtualHost>
    
    
    ServerName livestream.example.com
    代理主机
    ProxyPass/http://0.0.0.0:8090/
    ProxyPassReverse/http://0.0.0.0:8090/
    SSLCertificateFile/etc/letsencrypt/live/example.com/cert.pem
    SSLCertificateKeyFile/etc/letsencrypt/live/example.com/privkey.pem
    SSLCertificateChainFile/etc/letsencrypt/live/example.com/chain.pem
    Include/etc/letsencrypt/options-ssl-apache.conf
    
  • livestream.example.com

  • 我的ffserver与Apache运行在同一台服务器上,具有HTTP端口8090,但我确信代理可以定向到任何其他IP地址

    通过这种方式,我能够将WEBM视频流嵌入为,并消除混合内容警告


    (在Ubuntu 16.04、Apache 2.4.18、ffserver 2.8.11上进行了测试)

    中没有在安全通道上吐出流的直接选项。所以幸运的是,G.的回答肯定是你能做的最好的,尽管你可以使用Nginx而不是Apache2。顺便说一句,如果你的网站使用端口443,你可能需要为相机使用不同的端口。此外,如果
    ffserver
    在同一台机器上,则
    ProxyPass[Reserve]
    可能应该使用
    127.0.0.1