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