udpsrc - flush buffer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

udpsrc - flush buffer

GalDa
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:

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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: udpsrc - flush buffer

Nicolas Dufresne-5


Le dim. 24 févr. 2019 11 h 27, GalDa <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel