265 lines
3.9 KiB
HTML
265 lines
3.9 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
> Multicast to several VLC's
|
|
|
|
</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="VideoLAN Quickstart"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="
|
|
Stream and receive with VLC
|
|
|
|
|
|
|
|
"
|
|
HREF="vlc-streamoutput.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="
|
|
Unicast a DVD
|
|
|
|
"
|
|
HREF="x510.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="
|
|
Video On Demand
|
|
|
|
"
|
|
HREF="vod.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>VideoLAN Quickstart</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x510.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 3. Stream and receive with VLC</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="vod.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="AEN536"
|
|
></A
|
|
>3.3. Multicast to several VLC's</H1
|
|
><DIV
|
|
CLASS="simplesect"
|
|
><H2
|
|
CLASS="simplesect"
|
|
><A
|
|
NAME="AEN538"
|
|
></A
|
|
>3.3.1. What is multicast ?</H2
|
|
><P
|
|
>Multicast is a norm implemented in all modern network hardware
|
|
(switches, routers, ...). It provides an intelligent manner to send a
|
|
stream to a dynamic group of machines. If you want to use multicast,
|
|
make sure that all your network hardware support it.</P
|
|
><P
|
|
>In multicast streaming, the stream is sent to a multicast IP
|
|
address (the IP addresses reserved for this purpose are from 224.0.0.0
|
|
to 239.255.255.255). Then, any machine on the network can join the
|
|
multicast group by sending a request on the network, and it will
|
|
automatically receive the stream. When it sends a request to leave the
|
|
group, it will automatically stop receiving the stream. The advantage
|
|
of multicast streaming is that only the machines that want to receive
|
|
the stream actually receive it, and the streaming server only sends one
|
|
stream even if there are multiple clients receiving it.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="simplesect"
|
|
><H2
|
|
CLASS="simplesect"
|
|
><A
|
|
NAME="AEN542"
|
|
></A
|
|
>3.3.2. Start VLC on the server</H2
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
> <TT
|
|
CLASS="prompt"
|
|
>% </TT
|
|
><TT
|
|
CLASS="userinput"
|
|
><B
|
|
>vlc -vvv video1.xyz --sout udp:239.255.12.42 --ttl 12</B
|
|
></TT
|
|
>
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><P
|
|
>where <TT
|
|
CLASS="filename"
|
|
>video1.xyz</TT
|
|
> is the file you
|
|
want to stream (remplace it with <EM
|
|
>dvdold:/dev/dvd</EM
|
|
>
|
|
under Unix or <EM
|
|
>dvdold:D:</EM
|
|
> under Windows if you want
|
|
to multicast a DVD), <EM
|
|
>239.255.12.42</EM
|
|
> is the multicast
|
|
IP address you want to stream on and <EM
|
|
>12</EM
|
|
> is the
|
|
value of the TTL (Time To Live) of your IP packets (which means that the
|
|
multicast stream will be able to cross 12 routers).</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="simplesect"
|
|
><H2
|
|
CLASS="simplesect"
|
|
><A
|
|
NAME="AEN553"
|
|
></A
|
|
>3.3.3. Start VLC on the client(s)</H2
|
|
><TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="screen"
|
|
> <TT
|
|
CLASS="prompt"
|
|
>% </TT
|
|
><TT
|
|
CLASS="userinput"
|
|
><B
|
|
>vlc -vvv udp:@239.255.12.42</B
|
|
></TT
|
|
>
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x510.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="vod.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Unicast a DVD</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="vlc-streamoutput.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Video On Demand</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |