Difference between revisions of "Documentation:Modules/netsync"

From VideoLAN Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{Module|name=netsync|type=Video output|description=Synchronise remote VLC instances}}
 
{{Module|name=netsync|type=Video output|description=Synchronise remote VLC instances}}
  
Use this module to keep several clients synchronised on a single VLC server stream.
+
Use this module to keep several clients synchronised on a single VLC stream.
  
 
{{Option|name=netsync-master|default=disabled|description=Act as master}}
 
{{Option|name=netsync-master|default=disabled|description=Act as master}}
Line 13: Line 13:
  
 
Here's a small example:
 
Here's a small example:
 
+
:We're going to be listening to a multicast stream.
:On the server run (the server's IP address is 192.168.0.1):
+
:Run a client as master syncronisation client (master has IP address 192.168.0.1):
  %''' vlc input.mpeg --control netsync --netsync-master --sout "#std{access=udp,mux=ts,dst=239.255.1.1}" '''
+
  %''' vlc udp://@239.255.1.1 --control netsync --control netsync --netsync-master '''
 
+
:And on the other clients:
:And on the clients:
 
 
  %''' vlc udp://@239.255.1.1 --control netsync --netsync-master-ip 192.168.0.1 '''
 
  %''' vlc udp://@239.255.1.1 --control netsync --netsync-master-ip 192.168.0.1 '''

Revision as of 22:07, 17 November 2006

Module: netsync
Type Video output
First VLC version -
Last VLC version -
Operating system(s) all
Description Synchronise remote VLC instances
Shortcut(s) -

Use this module to keep several clients synchronised on a single VLC stream.

  • netsync-master : Act as master default value: disabled
  • netsync-master-ip <string> : Master client ip address default value: ""


Common uses of this module are:

  • Synchronise lots of loud PC speakers during a party;
  • Synchronise several computers playing parts of a video wall.


Here's a small example:

We're going to be listening to a multicast stream.
Run a client as master syncronisation client (master has IP address 192.168.0.1):
% vlc udp://@239.255.1.1 --control netsync --control netsync --netsync-master 
And on the other clients:
% vlc udp://@239.255.1.1 --control netsync --netsync-master-ip 192.168.0.1