Gstreamer 1.6.2 + gst_rtsp_server Streaming. Initial Delay

Nicolas Dufresne nicolas.dufresne at collabora.com
Sun Jan 3 13:45:19 PST 2016


Le samedi 02 janvier 2016 à 11:44 +0530, Mandar Joshi a écrit :
> Capture Video, encode and make available over shm
> gst-launch-1.0 -v v4l2src do-timestamp=true !
> video/x-raw,width=320,height=240,framerate=30/1,format=I420 ! x264enc
> tune=zerolatency ! rtph264pay ! shmsink socket-path=/tmp/test
> shm-size=10000000 wait-for-connection=false
> 
> Make stream available over rtsp using the test-launch example in gst-
> rtsp-server
> GST_DEBUG=3 ./test-launch "( shmsrc socket-path=/tmp/test
> do-timestamp=true ! application/x-rtp,clock-rate=90000 ! rtph264depay
> ! rtph264pay name=pay0 pt=96 )"
> 
> View on another machine
> gst-launch-1.0 -v rtspsrc location=rtsp://192.168.1.203:8554/test !
> rtph264depay ! avdec_h264 ! xvimagesink sync=false
> 
> Are there any parameters I can set to make the video stream start
> sooner? Everything works fine once the stream starts. There is just
> this problem of initial delay.

You may try to set a fix delay between keyframes (x264enc key-int-
max=30 30 would means a keyframe for every second or every 30 images).
You can also reduce the client latency, see latency property on
rtspsrc. This is set to 2 seconds by default.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160103/6e52e168/attachment.sig>


More information about the gstreamer-devel mailing list