Stop video display in Deepstream SDK Python

I don’t want to see the output video. I’m more concerned with Bounding Boxes so how to stop the output video? I am running Deepstream_test_3 sample app. What should I do?

Thanks

• Hardware Platform: Jetson
• DeepStream Version: 5.0
• JetPack Version: 4.4 DP
• TensorRT Version: 7.1.0

Use a fakesink in your DeepStream configuration file, e.g. something like the following

[sink0]
enable=1
type=1

Whoops, sorry. If you’re working off of deepstream-test3 then you need to change your Gstreamer sink into a fakesink with something like the following:

sink = gst_element_factory_make ("fakesink", "fake-sink");

There may be other changes you also need to make, but that’s the gist of it.

1 Like

Thanks for this. Meanwhile I also found this that works.

sink = Gst.ElementFactory.make(“nvoverlaysink”, “nvvideo-renderer”)

I replaced “nveglglessink” by “nvoverlaysink” and it did the trick. This was written somewhere in this forum itself.

when using this I’m getting this error

0:00:14.553393432 12815 0x3d068590 WARN nvinfer gstnvinfer.cpp:1975:gst_nvinfer_output_loop: error: Internal data stream error.
0:00:14.553508223 12815 0x3d068590 WARN nvinfer gstnvinfer.cpp:1975:gst_nvinfer_output_loop: error: streaming stopped, reason error (-5)
Error: gst-stream-error-quark: Internal data stream error. (1): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(1975): gst_nvinfer_output_loop (): /GstPipeline:pipeline0/GstNvInfer:primary-inference:
streaming stopped, reason error (-5)
Exiting app

Hi I am using deepstream_test_3.py from deepstream_python_apps and am getting same error when i try to stop video display. Did you manage to solve the problem?

I tried these suggestions with no success.
#sink = Gst.ElementFactory.make(“fakesink”, “fakesink”)
#sink = Gst.ElementFactory.make(“fakesink”, “fake-sink”)
#sink = Gst.ElementFactory.make(“nvoverlaysink”, “nvvideo-renderer”)

Hi I am using deepstream_test_3.py from deepstream_python_apps and am getting same error when i try to stop video display. Did you manage to solve the problem?

I tried these suggestions with no success.
#sink = Gst.ElementFactory.make(“fakesink”, “fakesink”)
#sink = Gst.ElementFactory.make(“fakesink”, “fake-sink”)
#sink = Gst.ElementFactory.make(“nvoverlaysink”, “nvvideo-renderer”)

Are you using Jetson nano?

• Hardware Platform: Jetson Nano
• DeepStream Version: 5.1
• JetPack Version: 4.5
• TensorRT Version: 7.1.3.0

Hello,

I have tried the solution provided here. but it’s not working. RTSP stream is crashing. Here the log.

Error: gst-stream-error-quark: Internal data stream error. (1): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(1984): gst_nvinfer_output_loop (): /GstPipeline:pipeline0/GstNvInfer:primary-inference:
streaming stopped, reason error (-5)
Exiting app

Hi virajhapaliya,

Please help to open a new topic. Thanks

1 Like