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.
|
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 _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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.
|
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. 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 |
In reply to this post by ironman
Hi Ironman,
I have the same problem, did you finally manage to change the default latency? Thanks, |
Free forum by Nabble | Edit this page |