开发者

HELP: UDP broadcast vlc stream weirdness!

开发者 https://www.devze.com 2023-02-06 08:30 出处:网络
Hi I\'m trying using vlc to broadcast UDP stream within a LAN, Making it like a TV channel. I used command line to launch VLC which then vlc is 开发者_C百科ok to run =

Hi I'm trying using vlc to broadcast UDP stream within a LAN, Making it like a TV channel.

I used command line to launch VLC which then vlc is 开发者_C百科ok to run =

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

problem is it works on some network, and I have problem receiving it on a network without router!

Question: what is some magical about the address "239.255.x.x" ? what network hardware is require for UDP broadcast besides switches and cables? Does wireless can accept UDP broadcast?

Thanks for your answers!


The 239.255.x.x addresses are part of the multicast address space, ranging from 224.0.0.0 to 239.255.255.255 (and there are some specific-use areas in there).

You've correctly noted that it doesn't work without a router. This is because the basic IP stack still wants to know how to route those addresses to determine which interface to send them on. You can either add a static route for multicast (that address or all multicast addresses), or put in a default gateway.


Read about using command line options here.

More specific answer:

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.
0

精彩评论

暂无评论...
验证码 换一张
取 消