帮助:UDP 广播 vlc 流怪异!

发布于 2024-10-14 06:57:28 字数 331 浏览 4 评论 0原文

您好,我正在尝试使用 vlc 在 LAN 内广播 UDP 流,使其像电视频道一样。

我使用命令行启动 VLC,然后 vlc 可以运行 =

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

问题是它可以在某些网络上运行,并且我在没有路由器的网络上接收它时遇到问题!

问:“239.255.xx”地址有什么神奇之处?除了交换机和电缆之外,UDP 广播还需要哪些网络硬件?无线可以接受UDP广播吗?

感谢您的回答!

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 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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

琴流音 2024-10-21 06:57:28

239.255.xx 地址是多播地址空间的一部分,范围从 224.0.0.0 到 239.255.255.255(其中有一些特定用途的区域)。

您已经正确地注意到,没有路由器它就无法工作。这是因为基本 IP 堆栈仍然想知道如何路由这些地址以确定将它们发送到哪个接口。您可以添加多播静态路由(该地址或所有多播地址),也可以设置默认网关。

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.

放我走吧 2024-10-21 06:57:28

在此处阅读有关使用命令行选项的信息。

更具体的答案:

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.

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.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文