udpsink wait for reference frame

Dan Williams dwilliams at cernium.com
Wed Apr 29 12:48:46 PDT 2015


I don't know of any way to do this via gst-launch and existing elements.

The way I do this in code is to place a pad probe on vaapiparse_h264
and look at flags in the buffers going by, returning DROP until we see
a buffer flag that contains a DISCONT, then we start returning OK
thereafter.

HTH. YMMV. etc.

On 4/29/2015 3:07 PM, Spruyt, Randy wrote:
> Anyone know how to get the client side of a stream to wait for a reference frame before displaying content?
> 
> Server:
> gst-launch-1.0 -v videotestsrc ! x264enc ! rtph264pay ! udpsink port=6000 host=192.168.232.189
> 
> client:
> gst-launch-1.0 udpsrc caps = "application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, packetization-mode=1, profile-level-id\=640014,sprop-parameter-sets=\"Z2QAFKzZQUH7ARAAAAMAEAAAAwPI8UKZYA\\\=\\\=\\\,aOvssiw\\\=\", payload=96, ssrc=774396182,timestamp-offset=4446270, seqnum-offset=27753" port=6000 ! rtpjitterbuffer ! rtph264depay ! vaapiparse_h264 ! vaapidecode ! vaapisink
> 
> works fine. However, the client does not start from reference/key frame. After a second or two, things look normal
> 
> 
> starts with:
> [unnamed.png]
> 
> After a second or two:
> [cid:image002.jpg at 01D0826A.2192D6C0]
> 
> 
> 
> 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list