<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le dim. 24 févr. 2019 11 h 27, GalDa <<a href="mailto:Galdalali@hotmail.com">Galdalali@hotmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey all,<br>
<br>
Whenever I try to open h264 udpsrc using a GST call back or a timed loop on<br>
the first few frames or whenever my loop is slower then the encoder FPS I'm<br>
seeing grey frames.<br>
I guessing it's because whenever the pipline tryes to decode the buffer it<br>
has more then 1 frames in it.<br>
How can I flush the buffer whenver a new frame ariives using this gstreamer<br>
pipline:<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
gst-launch-1.0 -v udpsrc port=54062 caps = "application/x-rtp,<br>
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,<br>
payload=(int)96" ! rtph264depay ! 264parse ! avdec_h264 ! videoconvert !<br>
autovideosink<br>
<br>
Thanks, Gal.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>