Set and get the timestamp manually using appsrc/appsink.

Nicolas Dufresne nicolas at ndufresne.ca
Mon Nov 4 15:28:55 UTC 2019


Le lun. 4 nov. 2019 15 h 40, surprised <1028554060 at qq.com> a écrit :

> Hi,gstreamers.
> At sender,I use appsrc for abtaining outer YUV data,and then encode and
> transmit via rtph265pay and udpsink.
> At receiver,I use udpsrc and rtph265depay to receive H265 bitstream,and
> then
> I use appsink to extract YUV data.
>
> In appsrc, I set timestamp like this:
> GST_BUFFER_PTS(buffer)=100;
>
> In appsink,I get the timestamp like this:
> timestamp=GST_BUFFER_PTS;
>
> But it comes the problem:the value of timestamp don't equal to 100(I set in
> appsrc). Why???
>

Did you configure your appsrc to operate in time format ?


>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191104/0894b715/attachment-0001.html>


More information about the gstreamer-devel mailing list