udpsrc - flush buffer

Nicolas Dufresne nicolas at ndufresne.ca
Sun Feb 24 20:25:59 UTC 2019


Le dim. 24 févr. 2019 11 h 27, GalDa <Galdalali at hotmail.com> a écrit :

> Hey all,
>
> Whenever I try to open h264 udpsrc using a GST call back or a timed loop on
> the first few frames or whenever my loop is slower then the encoder FPS I'm
> seeing grey frames.
> I guessing it's because whenever the pipline tryes to decode the buffer it
> has more then 1 frames in it.
> How can I flush the buffer whenver a new frame ariives using this gstreamer
> pipline:
>

In RTP it's the sender that decide. To ensure frames are flushed
immediately, and not at the start of the following, you need to set the
marker bit. As of master of GStreamer, that happens whenever you are
sending au aligned h264 to the payloader.


> gst-launch-1.0 -v udpsrc port=54062 caps = "application/x-rtp,
> media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
> payload=(int)96" ! rtph264depay ! 264parse ! avdec_h264 ! videoconvert !
> autovideosink
>
> Thanks, Gal.
>
>
>
> --
> 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/20190224/7904116c/attachment.html>


More information about the gstreamer-devel mailing list