RTSP - Creating a pipeline to reduce latency due to rtpjitterbuffer
syamkrajagopalan
syamkrajagopalan at gmail.com
Wed Mar 14 17:32:49 UTC 2018
I am accessing a RTSP video stream from a VIRB 360 camera. I am able to play
the stream using the following gstreamer command:*gst-launch-1.0 -v playbin
uri=rtsp://192.168.0.1/livePreviewStream?maxResolutionVertical=720\&liveStreamActive=1*.However,
there is a 3 second delay in the streaming. The output of the above command
(due to -v) has been uploaded here
<https://technicalproductsinc-my.sharepoint.com/:t:/g/personal/syamprasad_rajagopalan_technicalproductsinc_us/Ed9JT4vTEmNAmcp7gq44lhYBzLrMG3kvUijoOwwThpQuOw?e=5dSBmL>
.I also created a few .svg files for the pipeline following the method
described in this question/ answer
<https://stackoverflow.com/questions/27496901/how-do-you-build-gstreamers-gst-launch-pipelines>
. Those files has been uploaded here
<https://technicalproductsinc-my.sharepoint.com/:f:/g/personal/syamprasad_rajagopalan_technicalproductsinc_us/EsRaaOuuzghAppnBLE6N-FgBzAlv8eCV4tY8e_NNx19sYQ?e=HOW8Dl>
. I believe *mypipeline4.svg* and *mypipeline5.svg* represent the complete
pipeline (Multiple dot files were generated by a single pipeline and that's
reason for multiple .svg file).In the .svg files, can see a *latency=2000*
under *rtpjitterbuffer*. The plan is to build the same pipeline by adding
components manually instead of using *playbin*, and then set *latency*
property for *rtpjitterbuffer*. I have tried the following commands:1)*
gst-launch-1.0 rtspsrc
location=rtsp://192.168.0.1/livePreviewStream?maxResolutionVertical=720\&liveStreamActive=1
! udpsrc ! rtpsession ! rtpssrcdemux ! rtpjitterbuffer ! rtpptdemux ! queue
! udpsink ! queue ! rtph264depay ! h264parse ! omxh264dec ! playsink*and 2)
*gst-launch-1.0 rtspsrc
location=rtsp://192.168.0.1/livePreviewStream?maxResolutionVertical=720\&liveStreamActive=1
! udpsrc ! rtpsession ! rtpssrcdemux ! rtpjitterbuffer ! rtpptdemux ! queue
! udpsink ! queue ! rtph264depay ! h264parse ! omxh264dec !
nvoverlaysink*.However, in both cases, I received an error: *WARNING:
erroneous pipeline: could not link udpsink0 to queue1*. How can I fix this?
Also, from my experiments I pretty sure that the rest of the pipeline also
has errors. How can I optimize this pipeline?
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180314/5178f20a/attachment.html>
More information about the gstreamer-devel
mailing list