Page 1 of 1

Multiple streams not in sync

Posted: 21 Jan 2007 13:37
by joostvdl
Hi

I try to stream 3 MPEG2 streams to 3 different players. These streams have to be in sync.
I use VLM with the following config file:

Code: Select all

# VLC media player VLM command batch # http://www.videolan.org/vlc/ new monitor32_1 broadcast enabled loop setup monitor32_1 input "file:///home/mediafiles/32/monitor_d01_links.mpg" setup monitor32_1 output #standard{mux=ts,access=udp,dst=10.0.0.150:4951} new monitor32_2 broadcast enabled loop setup monitor32_2 input "file:///home/mediafiles/32/monitor_d01_links.mpg" setup monitor32_2 output #standard{mux=ts,access=udp,dst=10.0.0.150:4952} new monitor32_3 broadcast enabled loop setup monitor32_3 input "file:///home/mediafiles/32/monitor_d01_links.mpg" setup monitor32_3 output #standard{mux=ts,access=udp,dst=10.0.0.150:4953} control monitor32_1 play control monitor32_2 play control monitor32_3 play
I use now one Client with three VLC players to check the sync. Normaly the destination are three different clients, all on the port 4951.

Then I start with:

Code: Select all

# vlc --vlm-conf streamer32.vlc -I telnet
The first run of the loop all the streams are in sync, but by the second loop the streams are not in sync any more.

Is this the way to sync streams or is there an other solution? Or is there maybe a bug in the software that causes the delay in the different streams?

I use Debian Etch with VLC 0.8.6-svn2 (default from debian set). Also tested with VLC 0.8.6 on Mac OSX.

Posted: 22 Jan 2007 14:10
by dionoea
You should have a look at the netsync module. (Or just use duplicate to make sure that all the streams use the same source.)

Posted: 22 Jan 2007 14:35
by joostvdl
(Or just use duplicate to make sure that all the streams use the same source.)
I don't know about the duplicate function but I have to add to this that there are in the final setup three different video streams. The code I wrote before is just as a test to determine if there is a difference.

So the working code should be:
# VLC media player VLM command batch
# http://www.videolan.org/vlc/

new monitor32_1 broadcast enabled loop
setup monitor32_1 input "file:///home/mediafiles/32/monitor_d01_links.mpg"
setup monitor32_1 output #standard{mux=ts,access=udp,dst=10.0.0.1:4951}
new monitor32_2 broadcast enabled loop
setup monitor32_2 input "file:///home/mediafiles/32/monitor_d02_midden.mpg"
setup monitor32_2 output #standard{mux=ts,access=udp,dst=10.0.0.2:4951}
new monitor32_3 broadcast enabled loop
setup monitor32_3 input "file:///home/mediafiles/32/monitor_d03_rechts.mpg"
setup monitor32_3 output #standard{mux=ts,access=udp,dst=10.0.0.3:4951}
control monitor32_1 play
control monitor32_2 play
control monitor32_3 play

Posted: 22 Jan 2007 14:56
by dionoea
You can't synchronise 3 different streams (at least not that i know)

Posted: 02 Jun 2007 11:24
by CarlO_321
Hi,
I suppose to have a similar problem: streaming two, or more, videos in multicast, so that all the video are perfectly in sync among them. Have you been able to deal with your sync problem? Thank you,
Best regards,
Carlo