udpsrc - flush buffer

Nicolas Dufresne nicolas at ndufresne.ca
Fri Feb 22 15:51:31 UTC 2019


Le vendredi 22 février 2019 à 08:07 -0600, GalDa a écrit :
> 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:

Add ".. ! identity drop-buffer-flags=corrupted ! ..." Right after your
decoder. There is two ways of thinking, one is to display corrupted
frames, to keep some movement, the other is to freeze the image until
we have valid frames again. In your case, you have SPS/PPS but no IDR
yet.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190222/bb176e28/attachment.sig>


More information about the gstreamer-devel mailing list