CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" >

3.3. Multicast to several VLC's

3.3.1. What is multicast ?

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.

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.

3.3.2. Start VLC on the server


% vlc -vvv video1.xyz --sout udp:239.255.12.42 --ttl 12

where video1.xyz is the file you want to stream (remplace it with dvdold:/dev/dvd under Unix or dvdold:D: under Windows if you want to multicast a DVD), 239.255.12.42 is the multicast IP address you want to stream on and 12 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).

3.3.3. Start VLC on the client(s)


% vlc -vvv udp:@239.255.12.42