vod.sgml 1.78 KB
Newer Older
1 2 3 4
<chapter id="vod"><title id="tvod">Video On Demand</title>


<para>With Video On Demand (VOD), the user can start the video when he
wants, make pauses, go forward and back in the video. It is of course
7 8 9 10 11 12 13 14 15 16 17 18 19
the best in video streaming and the dream for every user.</para>

<para>VOD is a very big consumer of resources for the server and the
network. VOD is unicast, not multicast : this means that the network
and server resources needed are directly proportional to the number of

<para>The design of VideoLAN's VOD solution is very simple. The idea
is to do HTTP streaming, i.e. stream an MPEG video encapsulated in
HTTP. The regulation of the bitrate between the client and the server
is done automatically by TCP. With HTTP version 1.1, there is the
possibility to seek in a file downloaded, that's what we use to seek in
the video.</para>
20 21 22 23

<sect1><title>On the server side</title>

<para> On the VOD server, you need a running Web server. For example,
Alexis de Lattre's avatar
Alexis de Lattre committed
you can use a Linux server running Apache. Other operating systems
25 26
and other Web servers should work too, but we have never tested.</para>

<para>Make your MPEG-1, MPEG-2 or MPEG-4 / DivX files available to the
28 29
clients on the Web server. </para>

30 31
<para>For example, we have a Web server whose DNS name
is <emphasis>localserver</emphasis>. On this server,
32 33
we put an MPEG file <filename>video1.mpg</filename>
which will be available to the clients at the URL
35 36 37

<sect1><title>On the client side</title>

38 39 40
<prompt>% </prompt><userinput>vlc -vvv http://localserver/test/video1.mpg</userinput>

42 43 44
<para>VLC starts to read the stream nearly immediately and you can
seek in the stream, make pauses, etc... as if the stream was a local