get timestamp from playbin

Nicolas Dufresne nicolas at ndufresne.ca
Sat Mar 18 01:10:20 UTC 2017


Le vendredi 17 mars 2017 à 12:37 -0700, pinkesh vaghela a écrit :
> Hi Nicolas,
> 
> Thanks for your answer. 
> As you said Gstreamer do it's sync, for multiple client to sync which clock
> setting I should use. My all clients are gstreamer only but they have
> different network delay from server to client.. So to sync all clients which
> clock setting or pipeline I should use?

So if clients are spread accross multiple computers over the network,
you'll have to pick from GstNetClientClock (with a master running
GstNetTimeProvider), or GstPtpClock (with a maser running a PTP
server), or GstNtpClock specifying an NTP server. The NetClientClock
and PTP clock are known to be more precise.

Now, if the delays varies between machines, you will have to pick a
configured latency that is at least as large to the worst case.
Otherwise, synchronization is impossible. Usually we pick the larger
acceptable delay. That only apply to live playback of course. For non-
live playback, you would just signal the media, and wait for all remote
devices to have reached paused state (preroll).

> 
> can I get sync by playbin or I should use other pipeline? I managed to get
> timestamp of buffer from appsink but it is starting from zero and increasing
> frame by frame but it is not the server injected timestamp(system time of
> server). I used rtspsrc location="<url>" ! rtpbin ! rtppcmadepay ! appsink
> pipeline.

Playbin should work. Just remember that rtpsrc, even though seekable,
is a live source.

> 
> Regards,
> Pinkesh
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/get-timestamp-from-playbin-tp4682261p4682290.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170317/49b5773f/attachment.sig>


More information about the gstreamer-devel mailing list