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 wowza2
server.
If I pick up the feed directly with wowza2 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.
camera into wowza
-> camera direct into VLC with 50ms rtsp-cahce = <200ms
-> camera -> conf/live-lowlatency -> VLC with 50ms rtsp-cahce = 1.7sec
-> camera -> conf/live-lowlatency -> examples/simplevideostreaming.swf with buffer(0) = 3 sec (expected given 60fps limit?)
camera into gstreamer or VLC into wowza
-> camera -> gstreamer -> conf/live-lowlatency -> VLC with 50ms rtsp-cahce = 3 sec
-> camera -> gstreamer -> conf/live-lowlatency -> examples/simplevideostreaming.swf with buffer(0) = 4 sec
Also if I use VLC as the source doing the same camera it is about the same latency
I have tried to establish where the latency is coming from with no luck so
far.
Any help you cpould give is appreciated,
Thx
Art
Inbound stream 640x352 25fps H264 (part-10)
Debian AMD64 squeezy
gst-launch-0.10 version 0.10.35
GStreamer 0.10.35
Wowza 2
live-lowlatency
<StreamType>live-lowlatency</StreamType
also tried
<StreamType>rtp-live-lowlatency</StreamType>
with same result
other settings
<LiveStreamPacketizers>cupertinostreamingpacketizer, smoothstreamingpacketizer</LiveStreamPacketizers>
<Properties>
<Property>
<Name>sortPackets</Name>
<Value>true</Value>
<Type>Boolean</Type>
</Property>
<Property>
<Name>sortBufferSize</Name>
<Value>500</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>flushInterval</Name>
<Value>25</Value>
<Type>Integer</Type>
</Property>
</Properties>
<HTTPStreamers>cupertinostreaming,smoothstreaming</HTTPStreamers>
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----
note that profile-level-id is depreciated and does not print out in verbose mode - could this be a problem?
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