I would like to use VLC in order to stream an audio file from a server to several clients over an IP network. Both the server and the clients are running Linux. Here is my try for two clients:
Server command
cvlc test.mp3 --sout '#duplicate{dst=rtp{dst=10.0.0.2,port=5004,mux=ts},dst=rtp{dst=10.0.1.2,port=5004,mux=ts}}'
Clients command
cvlc rtp://@:5004
Although the music is correctly transmitted, the clients are not synchronised at all. There is a important time gap that makes it impossible to listen. Is this a normal behaviour ? I thought that a Real-time Transport Protocol could handle such problems. Did I miss something in the configuration ? Or should I take a look at another streaming protocol ?
Thanks in advance.