Players synchronization using GstNetTimeProvider

Jacob S jacobhameiri at gmail.com
Tue Oct 28 02:57:28 PDT 2014


I think I found my mistake, it seems that gst_net_client_clock_new should
receive the basetime without the added delay.

this code works:

GstClock* net_clock = gst_net_client_clock_new ("net_clock", "127.0.0.1",
7000, baseTimeFromServer);
gst_element_set_start_time (shared.pipeline, GST_CLOCK_TIME_NONE);
gst_pipeline_use_clock (GST_PIPELINE (shared.pipeline), net_clock);
gst_element_set_base_time(shared.pipeline,baseTimeFromServer + (GST_SECOND
* 5 ));

2014-10-28 1:28 GMT+02:00 Jacob S <jacobhameiri at gmail.com>:

> I am trying to synchronize multiple players playing local video files ( on
> different machines ) by using a GstNetTimeProvider. I manage to sync the
> video but the audio starts with glitches and only after a few seconds gets
> synced.
>
> I am getting many of these warning:
>
> 0:00:01.781773068  1724 0000001F81936D80 WARN           audiobasesink
> gstaudiobasesink.c:1288:gst_audio_base_sink_skew_slaving:<directsoundsink0>
> correct clock skew 29731984 > 20000000
> 0:00:01.983255580  1724 0000001F81936D80 WARN           audiobasesink
> gstaudiobasesink.c:1288:gst_audio_base_sink_skew_slaving:<directsoundsink0>
> correct clock skew 27372635 > 20000000
> 0:00:02.285559807  1724 0000001F81936D80 WARN           audiobasesink
> gstaudiobasesink.c:1288:gst_audio_base_sink_skew_slaving:<directsoundsink0>
> correct clock skew 41467035 > 20000000
>
> this is the time_server code :
> https://www.dropbox.com/s/ggkcktwu99tkfbl/time_server.cpp?dl=0
>
> this is the player code:
> https://www.dropbox.com/s/pytaru389syty4i/player.cpp?dl=0
>
> What am I doing wrong?
>
> Thanks
> Jacob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141028/e2b61113/attachment.html>


More information about the gstreamer-devel mailing list