Video sync via GstClock
Tim-Philipp Müller
t.i.m at zen.co.uk
Mon Mar 11 15:54:27 PDT 2013
On Mon, 2013-03-11 at 17:03 +0100, Andreas Rödig wrote:
Hi,
> i want to synchronize to videos.
>
> I found that i can use GstClock (gst_clock_set_calibration) to jump
> forward. So i transport the position from the master to every client
> over network.
>
> Then i set the client with gst_clock_set_calibration to the master
> position. That works if master time bigger than client time.
> But i can not jump backwards with this function. And sometimes (at far
> jumps) my audio plugin crashed.
>
> Are there something i forgot? Is this the right function to change the
> pipeline clock?
>
> Here are my steps:
> - start pipeline (playbin2)
> - get clock (gst_pipeline_get_clock)
> - get basetime (gst_clock_get_time)
> .
> .
> running
> .
> .
> - incomming master position (0 - n milliseconds)
> - set clock (basetime + master position)
Have you seen GstNetTimeProvider and GstNetClientClock ?
Cheers
-Tim
More information about the gstreamer-devel
mailing list