How to change default latency value of rtsp stream

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to change default latency value of rtsp stream

ironman
I am newbie in gstreamer and I am using gstreamer with opencv to capture frames from the rtsp stream. But latency is about 2-3 seconds. Altough I decrease the resolution of the stream latency does ot change. Proably the main reason of the latency is that latency property of the rtpsrc is default 2000. How can I change this default value. Can I change this latency property by going any header file. Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: How to change default latency value of rtsp stream

Chuck Crisler-2
The latency is set in the latency property. If you are using gst-launch, specify latency=nnnn as part of the pipeline. If you are using a program, then you can set properties with g_object_set(). There are GStreamer and GLib examples.

On Wed, Sep 16, 2015 at 10:08 AM, ironman <[hidden email]> wrote:
I am newbie in gstreamer and I am using gstreamer with opencv to capture
frames from the rtsp stream. But latency is about 2-3 seconds. Altough I
decrease the resolution of the stream latency does ot change. Proably the
main reason of the latency is that latency property of the rtpsrc is default
2000. How can I change this default value. Can I change this latency
property by going any header file. Thanks in advance.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-change-default-latency-value-of-rtsp-stream-tp4673658.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to change default latency value of rtsp stream

ironman
Thanks for the reply Chuck. I am working with opencv and I do not work with the pipelines or gstreamer sdk. Opencv uses the gstreamer to open rtsp stream. In cap_gstreamer.cpp they do all the stuff. I make a walkthrough on the this cpp file but I cannot find a rtspsrc object. As far as I see latency is the  rtspsrc property. Somehow it uses rtspsrc object and create but I cannot solve how they use it in the cpp file. So If I am able to change the the default latency from a header file, I do not have modify the cap_gstreamer.cpp file of the opencv.
Reply | Threaded
Open this post in threaded view
|

Re: How to change default latency value of rtsp stream

Sebastian Dröge-3
On Do, 2015-09-17 at 00:49 -0700, ironman wrote:

> Thanks for the reply Chuck. I am working with opencv and I do not
> work with
> the pipelines or gstreamer sdk. Opencv uses the gstreamer to open
> rtsp
> stream. In cap_gstreamer.cpp they do all the stuff. I make a
> walkthrough on
> the this cpp file but I cannot find a rtspsrc object. As far as I see
> latency is the  rtspsrc property. Somehow it uses rtspsrc object and
> create
> but I cannot solve how they use it in the cpp file. So If I am able
> to
> change the the default latency from a header file, I do not have
> modify the
> cap_gstreamer.cpp file of the opencv.
You should report this to OpenCV as this is related to how they use
GStreamer. They would have to provide some API for you to adjust the
latency or set a lower latency themselves (but doing that
unconditionally is a bad idea).

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to change default latency value of rtsp stream

layemasterz
In reply to this post by ironman
Hi Ironman,
I have the same problem, did you finally manage to change the default latency?

Thanks,