How to get live camera feed and deepstream output on the same screen in 2 seperate windows?

Hi Forum!

I’m working on a computer vision project where we’re trying to have a view of the live camera feed as well as the output from deepstream on the same screen, but in two different windows.

When we run sudo deepstream-app -c deepstream_app_config.txt we get the following error:

The camera is a FLIR boson camera using V4L2 and OpenCV to display the video. It is connected via USB. We are using a Jetson Nano with Deepstream6.0.

Is it possible to have two streams from the same USB?

What would be the best way to get around this?

Your camera parameters set improperly.
use below to check your camera parameters:
$ sudo apt-get install v4l-utils
$ v4l2-ctl -d /dev/video0 --list-formats-ext

What do you mean have two streams from the same camera?

Thanks @Amycao,

We have tried that and everything seems in order.

By two stream from the same camera, I mean can we have more than one application using the same camera and displaying something simultaneously?

You can create two pipelines, each pipeline run with one camera source.
for example:
deepstream-app -c config -c config

Hi, I’m working with @kareddy084 on this project. Thank you for your response.
Running two pipelines as you suggest, can we use the same USB camera as the source in both pipelines?

At the moment we are running a window with the same video feed (as seen in the screenshot above as Boson_320 : RAW16 Linear). Then when we launch the deepstream app with the same video source specified we get the error: ERROR from src_elem: Device ‘/dev/vidoe0’ is busy. When the first video feed is not running, the deepstream app does run correctly, so the paramaters etc are correct.

We want one window with just the live video feed, and a second window that runs inference and is manipulated using Deepstream. Any advice on how to achieve this will be greatly appreciated.

Sorry, deepstream-app -c config -c config should not work for same usb camera source.
can you try add tee after nvv4l2decoder, like
tee name=t !
t. ! queue ! nvvideoconvert ! nvegltransform ! nveglglessink
t. ! queue ! nvstreammux …! nvinfer … ! … ! nveglglessink

There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.