% vlc /media/video/video1.avi --sout udp://192.168.0.42 --ttl 12 |
where :
/media/video/video1.avi is the file you want to stream,
192.168.0.42 is either :
the IP address of the machine you want to unicast to ;
or the DNS name the machine you want to unicast to ;
or the multicast IP address.
12 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).
If you want to stream the file continuously, add the --loop option.
![]() | Under Windows, make sure that you are in the same directory as the VLC install directory. |