2012-04-14 168 views
1

我想用html5视频标签打开vlc流,但我不知道这是否可能。从vlc流到html5视频

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

服务器的设置是:

[email protected]:~$ 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并不会奇迹般地解决问题。

下面是我和遇到同样的问题命令:

[email protected]:~$ 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 
+0

以超级用户的身份回复: http://superuser.com/questions/412476/vlc-streaming-over-the-network/ – Indrek 2012-04-14 20:40:11

回答

0

你应该尝试端口:8080,我喜欢你自己的电脑去浏览器和输入

127.0.0.1:8080/graph.ogg 

和为贵网络看这个视频,你可以看到真正的好照片。

我希望有所帮助;

0

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