Gstreamer Pipeline using External clock

Carlos Rafael Giani dv at pseudoterminal.org
Thu Sep 5 08:26:19 PDT 2013


On 2013-09-05 17:14, sureshu wrote:
> Hi,
>
>     According to my understanding Gstream pipeline uses the System clock as a
> base.
>    
>     We want the pipeline to use external clock like PTP clock.
>
>     One option is use
>
>      gst_pipeline_use_clock ((GstPipeline *pipeline,  GstClock *clock);
>
>      What should I enter for GstClock...??
>       I have to derice a subclass from GstClock and how do I connect it to
> the PTP clock?
>       Any example will be pretty helpfull.
>
>     Is there any other options to use an external clock other than default
> clock?
>
>     Any options to try it on pipeline other than code?
>
> Thanks and Regards
> Suresh
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-Pipeline-using-External-clock-tp4661872.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

You might want to check out the GstNetTimeProvider and the 
GstNetClientClock.
the net time provider is used in the server, the netclientclock in the 
receiver.
This synchronizes the receiver's clock with the sender's.

In the receiver, you create the net client clock, and set it using hthe 
use_clock() call. In the sender, you don't have to set a clock, just 
create the net time provider.


More information about the gstreamer-devel mailing list