LDP/LDP/ref/docbook/VideoLAN-Quickstart/vlc-streamoutput.sgml

121 lines
4.6 KiB
Plaintext

<chapter id="vlc-streamoutput"><title id="tvlc-streamoutput">Stream with VLC</title>
<sect1><title>Unicast an MPEG 1, 2, or 4 file</title>
<simplesect><title>Start VLC on the server</title>
<itemizedlist>
<listitem><para>under Windows : click on <emphasis>File / Stream
output</emphasis> in the menu, check <emphasis>UDP</emphasis> and type
the IP address or the DNS name of the machine you want to stream to in the
<emphasis>Address</emphasis> box and click on <emphasis>OK</emphasis>.
Then click on <emphasis>File</emphasis> and select the MPEG 1, MPEG 2,
MPEG 4 or DivX file you want to stream.</para>
<listitem><para>under Linux/Unix : start VLC, click on
<emphasis>File</emphasis>, then click on the <emphasis>Browse</emphasis>
button and select the MPEG 1, MPEG 2, MPEG 4 or DivX file you want to
stream. Then check <emphasis>Stream output</emphasis> and click on
<emphasis>Settings</emphasis>. Check <emphasis>UDP</emphasis> and type
the IP address or the DNS name of the machine you want to stream to in the
<emphasis>Address</emphasis> box. Click on <emphasis>OK</emphasis>
twice.</para>
<listitem><para>under Mac OS X, the procedure should be very similar to
Linux.</para>
</itemizedlist>
<simplesect><title>Start VLC on the client</title>
<para>Launch VLC on the machine which receives the stream and click on
the <emphasis>Net</emphasis> button. Then select <emphasis>UDP</emphasis>,
keep the default port and click on <emphasis>OK</emphasis>.</para>
<sect1><title>Unicast a DVD</title>
<simplesect><title>Start VLC on the server</title>
<itemizedlist>
<listitem><para>under Windows : click on <emphasis>File / Stream
output</emphasis> in the menu, check <emphasis>UDP</emphasis> and
type the IP address or the DNS name of the machine you want to
stream to in the <emphasis>Address</emphasis> box and click on
<emphasis>OK</emphasis>. Then click on <emphasis>Disc</emphasis>,
type the device name corresponding to your DVD drive, uncheck
<emphasis>Menus</emphasis> and click on <emphasis>OK</emphasis>.</para>
<listitem><para>under Linux/Unix : start VLC, click on
<emphasis>Disc</emphasis>, type the device name corresponding to your
DVD drive in the <emphasis>Device name</emphasis> box and uncheck
<emphasis>Use DVD menus</emphasis>. Then check <emphasis>Stream
output</emphasis> and click on <emphasis>Settings</emphasis>. Check
<emphasis>UDP</emphasis> and type the IP address or the DNS name of the
machine you want to stream to in the <emphasis>Address</emphasis> box.
Click on <emphasis>OK</emphasis> twice.</para>
<listitem><para>under Mac OS X, the procedure should be very similar to
Linux.</para>
</itemizedlist>
<note>
<para>
Under Unix/Linux, you must have write access to the device
corresponding to your DVD drive. For that, you should be in the
<emphasis>disk</emphasis> or <emphasis>cdrom</emphasis> group (look
at the permissions in <filename>/dev</filename>). If you're not, add
yourself to the group :
</para>
<screen>
<prompt># </prompt><userinput>adduser your_login disk_or_cdrom</userinput>
</screen>
<para>and then restart your session.</para>
</note>
<simplesect><title>Start VLC on the client</title>
<para>Use the same procedure as in the previous section.</para>
<sect1><title>Multicast to several VLC's</title>
<simplesect><title>What is multicast ?</title>
<para>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.</para>
<para>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 vls only sends one stream even if
there are multiple clients receiving it.</para>
<simplesect><title>Start VLC on the server side</title>
<para>The procedure is the same as in the two previous sections :
the only difference is that you must type a multicast IP address
instead of a regular IP address or DNS name in the <emphasis>Stream
output</emphasis> dialog box.</para>
<simplesect><title>Start VLC(s)</title>
<para>Launch VLC and click on the <emphasis>Net</emphasis> button. Then
select <emphasis>UDP Multicast</emphasis>, type the multicast IP address
and click on <emphasis>OK</emphasis>.</para>
</sect1>