2011-01-25 83 views
0

您好我正在嘗試使用vlc在局域網內廣播UDP流,使其像電視頻道一樣。幫助:UDP廣播vlc流古怪!

我用命令行啓動VLC然後VLC是確定運行=

cvlc --repeat filename.avi --sout '#standard{access=udp,mux=ts,dst=239.255.12.42:8001} 

的問題是它的工作原理一些網絡上,我有問題,接受它在網絡上沒有路由器!

問題:地址「239.255.x.x」有什麼神奇之處?除了交換機和電纜之外,UDP廣播還需要哪些網絡硬件?無線可以接受UDP廣播嗎?

感謝您的回答!

+0

你是男人嗎? – 2011-01-25 08:34:44

+0

cvlc是另一個命令,控制檯vlc,它不通過X11啓動GUI,我認爲它相當於`vlc -I dummy` – c2h2 2011-01-25 08:36:58

回答

3

的239.255.xx地址是多播地址空間的一部分,範圍從224.0.0.0到239.255.255.255(也有一些特定用途在那裏的地區)。

你已經正確地指出,它沒有路由器不起作用。這是因爲基本IP堆棧仍然想知道如何路由這些地址以確定將它們發送到哪個接口。您可以爲多播(該地址或所有多播地址)添加靜態路由,也可以放入默認網關。

0

Read about using command line options here.

更具體的答案:

standard (alias std) 

Sends a stream. 

Options: 

access: how to send: file, udp, rtp, http. 

mux: which muxer (ie, which format) will be used. It can be one of avi (for AVI format) ogg (for OGG format) ps (for MPEG2-PS format) ts (for MPEG2-TS format). 

url: if you use the file access, it will be the location where to store the stream; if you use another access, it will be the unicast or multicast IP address where you want to stream. 

sap: if you use the udp or rtp accesses, use this option to announce your stream, using SAP/SDP. 

name! This option contains the name under which you want to announce the program. 

slp: like sap, but use the SLP protocol. You need to have libslp on your system. 

sap_ipv: if you use the sap option, use this option to specify if you want to send the SAP announces in IPv4 or IPv6. The value of this option is 4 or 6.