Video sync via GstClock
Andreas Rödig
a.roedig at null821.de
Mon Mar 11 09:03:15 PDT 2013
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)
Thanks
--
Andreas Rödig
null821 media services
Weberstr. 2
86462 Langweid/Foret
Tel.: 0821 / 800 60 -34
Fax.: 0821 / 800 60 -55
Email: a.roedig at null821.de
Web: www.null821.de
________________________________________________________________
null821 media services gmbh & co. kg
Inhaber: Ralf Walz
Weberstraße 2, 86462 Langweid/Foret
Steuernummer: 102/170/52004
More information about the gstreamer-devel
mailing list