get timestamp from playbin

pinkesh vaghela pinkesh.vaghela at gmail.com
Tue Mar 21 06:37:16 UTC 2017


Hi Nicolas,

Thanks for your answer.

I am setting system time of server with gst_net_time_provider at server and
getting clock at client side with gst_net_client_clock. I am setting this
clock as a pipeline clock and setting the latency as 500ms(max network
delay). I have used below configuration. Can you please suggest is there
anything I am missing?

 Server side:
--------------
 GstClock* global_clock = gst_system_clock_obtain ();
 GstNetTimeProvider * timeProvider = gst_net_time_provider_new
(global_clock, nullptr, args.port + 1);


Client side:
-------------
 GstClock *clientClock = gst_net_client_clock_new("Klok","192.168.113.7",
8554 + 1, 0);

 gst_clock_wait_for_sync (clientClock, GST_CLOCK_TIME_NONE);

 GstClock *systemClock = gst_system_clock_obtain();

 GstClockTime baseTime = gst_clock_get_time(systemClock);

 gst_pipeline_set_latency (GST_PIPELINE (playbin), 500 * GST_MSECOND);

 gst_pipeline_use_clock(GST_PIPELINE(playbin), clientClock);

 gst_element_set_start_time(playbin, GST_CLOCK_TIME_NONE);
 gst_element_set_base_time(playbin, baseTime);


Thanks,
Pinkesh




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/get-timestamp-from-playbin-tp4682261p4682317.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list