file.xml 2.17 KB
Newer Older
Clément Stenac's avatar
Clément Stenac committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="file"><title id="tfile">
Stream a file
</title>

<sect1><title>
Stream a file with VLC
</title>

<screen>
<prompt>% </prompt><userinput>vlc -vvv video1.xyz --sout udp:192.168.0.42 --ttl 12</userinput>
</screen>

<para>
where:
</para>

<itemizedlist>

<listitem><para><filename>video1.xyz</filename>
 is the file you want to stream,</para></listitem>

<listitem><para><emphasis>192.168.0.42</emphasis>
 is either:
</para>

<itemizedlist>

<listitem><para>
the IP address of the machine you want to unicast
to;
</para></listitem>

<listitem><para>
or the DNS name the machine you want to unicast
to;
</para></listitem>

<listitem><para>
or a multicast IP address.
</para></listitem>

</itemizedlist>

</listitem>

<listitem><para><emphasis>12</emphasis>
 is the value of the TTL (Time To
Live) of your IP packets (which means that the stream will be
able to cross 11 routers).
</para></listitem>
</itemizedlist>

<para>
If you want to stream the file continuously, add the
<emphasis>--loop</emphasis> option.
</para>

</sect1>

<sect1><title>
Stream a file with VLS
</title>

<screen>
<prompt>% </prompt><userinput>vls -vv -d udp:192.168.0.42 file:video1.xyz --ttl 12</userinput>
</screen>

<para>where:
</para><itemizedlist>

<listitem><para><filename>video1.xyz</filename>
 is the file you want to stream,</para></listitem>

<listitem><para><emphasis>192.168.0.42</emphasis>
 is either:
</para>

<itemizedlist>
<listitem><para>
the IP address of the machine you want to unicast
to;
</para></listitem>

<listitem><para>
or the DNS name the machine you want to unicast
to;
</para></listitem>

<listitem><para>
or a multicast IP address.
</para></listitem></itemizedlist>

</listitem>

<listitem><para><emphasis>12</emphasis>
 is the value of the TTL (Time To
Live) of your IP packets (which means that the stream will be
able to cross 11 routers).
</para></listitem>

</itemizedlist><para>

When you want to stop VLS, use the key combination
<keycombo><keycap>Ctrl</keycap><keycap>c</keycap></keycombo>.</para>

<para>
If you want to stream the file continuously, add the
<emphasis>--loop</emphasis> option.
</para><note>
&streamable-mpeg-file;
</note>

</sect1>
</chapter>