I am facing a huge latency in the RTSP output from the deepstream default app.
When I run the EglSink, I don’t see any delay or high latency, but when I run the RTSP sink, I get a huge delay (3-5 seconds), I am using ffplay with no buffer and low delay to stream the output.
deepstream-app code is opensource. you can set that property in create_udpsink_bin of \opt\nvidia\deepstream\deepstream\sources\apps\apps-common\src\deepstream_sink_bin.c. then rebuild deepstream-app. the path is /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-app.
…/…/apps-common/src/deepstream_sink_bin.c: In function ‘create_udpsink_bin’:
…/…/apps-common/src/deepstream_sink_bin.c:577:3: error: ‘encoder’ undeclared (first use in this function)
577 | encoder.set_property(‘idrinterval’, 60);
I got this error when I added ( g_object_set (G_OBJECT (bin->encoder), “idrinterval”, 60, NULL); ):
(deepstream-app:4232): GLib-GObject-WARNING **: 13:53:20.109: g_object_set_is_valid_property: object class ‘GstX264Enc’ has no property named ‘idrinterval’
(deepstream-app:6284): GLib-GObject-WARNING **: 14:19:01.480: g_object_set_is_valid_property: object class ‘GstX264Enc’ has no property named ‘idrinterval’
you are using x264enc to do software encoding, which has no idrinterval property . x264enc plugin is opensource. please refer to this code.
g_object_set (G_OBJECT (bin->encoder), “key-int-max”, 60, NULL);