【问题标题】:Streaming from vlc to html5 video从 vlc 流式传输到 html5 视频
【发布时间】:2012-04-26 18:39:12
【问题描述】:

我希望 html5 视频标签打开一个 vlc 流,但我不知道这是否可能。

目前,我只是尝试使用 VLC 从网络上的另一台计算机播放文件。

服务器的设置是:

me@kaffeesatz:~$ vlc screen:// --screen-left=67 --screen-top=53 --screen-width=800 --screen-height=600 --screen-fps=60 --sout '#transcode{vcodec=theovb=800,scale=1,width=800,height=600,acodec=none}:http{mux=ogg,dst=localhost:8181/graph.ogg}' --ttl=3

当我在同一台机器上打开 http 流时,它工作正常。当我尝试从另一台计算机播放流时,麻烦就开始了。从 Chrome 中,我收到了消息

Oops! Google Chrome could not connect to 192.168.178.23:8181

VLC 无法连接。

不知何故,流似乎并没有在本地主机之外。

有谁可以帮忙吗?

编辑:根据之前的问题/答案,我实际上已经有了 dst=:8181。将 ttl 设置为 20 并不能神奇地解决问题。

这是我遇到同样问题的命令:

me@kaffeesatz:~$ vlc screen:// --screen-left=67 --screen-top=53 --screen-width=800 --screen-height=600 --screen-fps=60 --sout '#transcode{vcodec=theovb=800,scale=1,width=800,height=600,acodec=none}:http{mux=ogg,dst=:8181/graph.ogg}' --ttl=20

【问题讨论】:

标签: streaming video-streaming vlc http-streaming


【解决方案1】:

你应该试试 port :8080 ,就像你自己的电脑上 Chrome 并输入

127.0.0.1:8080/graph.ogg

并为您的网络观看此视频,您可以看到非常好的图片。

希望能帮上忙;

【讨论】:

    【解决方案2】:

    您在示例中指定侦听 localhost,“dst=localhost:8181”。这意味着您无法从计算机外部访问流。尝试将其更改为“dst=0.0.0.0:8181”或您的外部 IP 地址“dst=192.168.178.23:8181”。

    【讨论】:

      猜你喜欢
      • 2013-12-24
      • 2012-08-23
      • 2012-02-19
      • 2023-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-28
      • 2011-10-06
      相关资源
      最近更新 更多