advice on lowering latency

gstream at ccc2.com gstream at ccc2.com
Wed Jan 18 03:49:55 PST 2012


Hello,

I am hoping someone can give some advice on lowering the latency of a
through put.

I have a stream coming from a RTSP camera and re-streaming it with a FMS
server.

If I pick up the feed directly with FMS and re-stream it gives approx. 1.7
sec latency.

I would like to use gstreamer to add some overlay, however the best I can
get using the below is 3 seconds.

I have tried to establish where the latency is coming from with no luck so
far.

Thx
Art


Inbound stream 640x352 H264 (part-10)


Debian AMD64
gst-launch-0.10 version 0.10.35
GStreamer 0.10.35

gst-launch gstrtpbin name=rtpbin uridecodebin
uri="rtsp://192.168.20.40/channel1"  buffer-duration=1 buffer-size=1 
name=decode decode.  ! queue !  ffmpegcolorspace ! videoscale ! queue !
capsfilter 
caps="video/x-raw-yuv,width=640,height=352,framerate=(fraction)25/1" !
x264enc bitrate=500 cabac=false pass=qual quantizer=27 subme=4 threads=0
bframes=0 dct8x8=false vbv-buf-capacity=100 ! queue ! rtph264pay ! queue !
udpsink host=0.0.0.0 port=50000

----SDP----
v=0
o=- 1208520720 2590316915 IN IP4 127.0.0.1
s=MYPIPE
i=N/A
c=IN IP4 0.0.0.0
t=0 0
m=video 50000 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 media=video; clock-rate=90000; encoding-name=H264;
sprop-parameter-sets=Z01AFtkAoD2wEQAAAwABdzWUAA8WLkg=,aMvFyA==
a=control:trackID=1




More information about the gstreamer-devel mailing list