2012-04-14 212 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'。