udpsink or udpsrc loosing data

Tim Müller tim at centricular.com
Fri Nov 25 14:25:33 UTC 2016


On Fri, 2016-11-25 at 05:30 -0800, Holger wrote:

Hi Holger,

> Server:
> $GL \
> ksvideosrc device-index=0 \
> !  videoscale method=0 add-borders=false !
> video/x-raw,width=$WIDTH,height=$HEIGHT ! videoconvert \
> ! x264enc tune=zerolatency rc-lookahead=0 intra-refresh=true
> sync-lookahead=0 speed-preset=1 ! h264parse \
> ! rtph264pay  ! udpsink   host=$DST_IP  port=$DST_PORT

Try adding a queue after ksvideosrc and perhaps also before udpsink.

> Client:
> $GL udpsrc port=$DST_PORT ! application/x-rtp, payload=96  !
> rtph264depay  !
> h264parse \
> ! avdec_h264  ! glimagesink sync=false

Try adding an .. ! rtpjitterbuffer latency=500 ! .. after udpsrc, and a
queue after avdec_h264.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com


More information about the gstreamer-devel mailing list