Running The deepstream-app

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 6.2

Hi

i am trying to run deepstream-app(reference app) .I am little bit confused about selecting the config file which i have found here /opt/nvidia/deepstream/deepstream/samples/config/deepstream-app/
i tried with source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8_gpu1.txt by changing paths,gpu-id=0 and sink to filesink it works fine but i cant see the vedio(display)
Can you please guide me?

-rw-r--r-- 1 root root  4105 Jan 13  2023 config_infer_primary.txt
-rw-r--r-- 1 root root  2802 Jan 13  2023 config_infer_primary.yml
-rw-r--r-- 1 root root  4096 Jan 13  2023 config_infer_primary_endv.txt
-rw-r--r-- 1 root root  3531 Jan 13  2023 config_infer_secondary_carcolor.txt
-rw-r--r-- 1 root root  3598 Jan 13  2023 config_infer_secondary_carcolor.yml
-rw-r--r-- 1 root root  3524 Jan 13  2023 config_infer_secondary_carmake.txt
-rw-r--r-- 1 root root  3591 Jan 13  2023 config_infer_secondary_carmake.yml
-rw-r--r-- 1 root root  3558 Jan 13  2023 config_infer_secondary_vehicletypes.txt
-rw-r--r-- 1 root root  3623 Jan 13  2023 config_infer_secondary_vehicletypes.yml
-rw-r--r-- 1 root root 14032 Jan 13  2023 config_mux_source30.txt
-rw-r--r-- 1 root root  3298 Jan 13  2023 config_mux_source4.txt
-rw-r--r-- 1 root root  4071 Jan 13  2023 config_preprocess.txt
-rw-r--r-- 1 root root  4529 Jan 13  2023 config_preprocess_sgie.txt
-rw-r--r-- 1 root root  3259 Jan 13  2023 config_tracker_IOU.yml
-rw-r--r-- 1 root root  9094 Jan 13  2023 config_tracker_NvDCF_accuracy.yml
-rw-r--r-- 1 root root  5221 Jan 13  2023 config_tracker_NvDCF_max_perf.yml
-rw-r--r-- 1 root root  5674 Jan 13  2023 config_tracker_NvDCF_perf.yml
-rw-r--r-- 1 root root  6482 Jan 13  2023 config_tracker_NvDeepSORT.yml
-rw-r--r-- 1 root root  4390 Jan 13  2023 config_tracker_NvSORT.yml
-rw-r--r-- 1 root root  3770 Jan 13  2023 source1_usb_dec_infer_resnet_int8.txt
-rw-r--r-- 1 root root  4533 Jan 13  2023 source2_1080p_dec_infer-resnet_demux_int8.txt
-rw-r--r-- 1 root root  4864 Jan 13  2023 source30_1080p_dec_infer-resnet_tiled_display_int8.txt
-rw-r--r-- 1 root root  4531 Jan 13  2023 source30_1080p_dec_infer-resnet_tiled_display_int8.yml
-rw-r--r-- 1 root root  4937 Jan 13  2023 source30_1080p_dec_preprocess_infer-resnet_tiled_display_int8.txt
-rw-r--r-- 1 root root  5838 Jan 13  2023 source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
-rw-r--r-- 1 root root  5520 Jan 13  2023 source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.yml
-rw-r--r-- 1 root root  5692 Jan 13  2023 source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8_gpu1.txt
-rw-r--r-- 1 root root  5840 Jan 13  2023 source4_1080p_dec_preprocess_infer-resnet_preprocess_sgie_tiled_display_int8.txt
-rw-r--r-- 1 root root   158 Jan 13  2023 sources_30.csv
-rw-r--r-- 1 root root   103 Jan 13  2023 sources_4.csv

Do you have such as the following item in your configuration file ?

[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink/nv3dsink (Jetson only) 3=File
type=2
sync=1
source-id=0
gpu-id=0
nvbuf-memory-type=0

And how do you run deepstream-app ? ssh, docker or some other ways ?

i am running ./deepstream-app -c /opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/source30_1080p_dec_infer-resnet_tiled_display_int8.txt

In Docker Container


[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#gie-kitti-output-dir=streamscl

[tiled-display]
enable=1
rows=5
columns=6
width=1280
height=720
gpu-id=0
#(0): nvbuf-mem-default - Default memory allocated, specific to particular platform
#(1): nvbuf-mem-cuda-pinned - Allocate Pinned/Host cuda memory, applicable for Tesla
#(2): nvbuf-mem-cuda-device - Allocate Device cuda memory, applicable for Tesla
#(3): nvbuf-mem-cuda-unified - Allocate Unified cuda memory, applicable for Tesla
#(4): nvbuf-mem-surface-array - Allocate Surface Array memory, applicable for Jetson
nvbuf-memory-type=0

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=3
uri=file:/opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
num-sources=15
#drop-frame-interval=2
gpu-id=0
# (0): memtype_device   - Memory type Device
# (1): memtype_pinned   - Memory type Host Pinned
# (2): memtype_unified  - Memory type Unified
cudadec-memtype=0

[source1]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=3
uri=file:/opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
num-sources=15
gpu-id=0
# (0): memtype_device   - Memory type Device
# (1): memtype_pinned   - Memory type Host Pinned
# (2): memtype_unified  - Memory type Unified
cudadec-memtype=0

[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink/nv3dsink (Jetson only) 3=File
type=1
sync=1
source-id=0
gpu-id=0
nvbuf-memory-type=0

[sink1]
enable=0
type=3
#1=mp4 2=mkv
container=1
#1=h264 2=h265
codec=1
#encoder type 0=Hardware 1=Software
enc-type=0
sync=0
#iframeinterval=10
bitrate=2000000
#H264 Profile - 0=Baseline 2=Main 4=High
#H265 Profile - 0=Main 1=Main10
profile=0
output-file=out.mp4
source-id=0

[sink2]
enable=0
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
type=4
#1=h264 2=h265
codec=1
#encoder type 0=Hardware 1=Software
enc-type=0
sync=0
bitrate=4000000
#H264 Profile - 0=Baseline 2=Main 4=High
#H265 Profile - 0=Main 1=Main10
profile=0
# set below properties in case of RTSPStreaming
rtsp-port=8554
udp-port=5400


[osd]
enable=1
gpu-id=0
border-width=1
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Serif
show-clock=0
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;0
nvbuf-memory-type=0

[streammux]
gpu-id=0
##Boolean property to inform muxer that sources are live
live-source=0
batch-size=30
##time out in usec, to wait after the first buffer is available
##to push the batch even if the complete batch is not formed
batched-push-timeout=40000
## Set muxer output width and height
width=1920
height=1080
##Enable to maintain aspect ratio wrt source, and allow black borders, works
##along with width, height properties
enable-padding=0
nvbuf-memory-type=0
## If set to TRUE, system timestamp will be attached as ntp timestamp
## If set to FALSE, ntp timestamp from rtspsrc, if available, will be attached
# attach-sys-ts-as-ntp=1

# config-file property is mandatory for any gie section.
# Other properties are optional and if set will override the properties set in
# the infer config file.
[primary-gie]
enable=1
gpu-id=0
model-engine-file=/opt/nvidia/deepstream/deepstream/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine
#Required to display the PGIE labels, should be added even when using config-file
#property
batch-size=30
#Required by the app for OSD, not a plugin property
bbox-border-color0=1;0;0;1
bbox-border-color1=0;1;1;1
bbox-border-color2=0;0;1;1
bbox-border-color3=0;1;0;1
interval=0
#Required by the app for SGIE, when used along with config-file property
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary.txt

[tests]
file-loop=0

How do you start docker ?

Maybe you miss xhost + before run docker or loss DISPLAY environment variables.

Here is a reference link.

xhost +

docker run -it --rm --net=host --gpus all $DEVICE_SPEC -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix --volume=“$HOME/.Xauthority:/root/.Xauthority:rw” -v /home/admin1/Downloads/data/:/data/ --privileged newstream:v3.0.0

Are you connecting via ssh? what is output of the following command line ?

echo $DISPLAY
echo $DISPLAY
:1

Sorry ignore your configuration file . type=1 should be type=2, If you want to show the video on the display

Now i am getting Display screen (Black screen opened for 5 seconds only and closed )

ERROR from primary_gie: Internal data stream error.
./deepstream-app -c /opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/source30_1080p_dec_infer-resnet_tiled_display_int8.txt
WARNING: ../nvdsinfer/nvdsinfer_model_builder.cpp:1487 Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine open error
0:00:02.130076920   225 0x557b66add670 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1897> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine failed
0:00:02.140847012   225 0x557b66add670 WARN                 nvinfer gstnvinfer.cpp:677:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2002> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine failed, try rebuild
0:00:02.140862864   225 0x557b66add670 INFO                 nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1923> [UID = 1]: Trying to create engine from model files
WARNING: [TRT]: The implicit batch dimension mode has been deprecated. Please create the network with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag whenever possible.
0:05:09.118837420   225 0x557b66add670 INFO                 nvinfer gstnvinfer.cpp:680:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:1955> [UID = 1]: serialize cuda engine to file: /opt/nvidia/deepstream/deepstream-6.2/samples/models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine successfully
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [Implicit Engine Info]: layers num: 3
0   INPUT  kFLOAT input_1         3x368x640       
1   OUTPUT kFLOAT conv2d_bbox     16x23x40        
2   OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40         

0:05:09.137028908   225 0x557b66add670 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary_gie> [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream-6.2/samples/configs/deepstream-app/config_infer_primary.txt sucessfully

Runtime commands:
	h: Print this help
	q: Quit

	p: Pause
	r: Resume

NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
      To go back to the tiled display, right-click anywhere on the window.


**PERF:  FPS 0 (Avg)	FPS 1 (Avg)	FPS 2 (Avg)	FPS 3 (Avg)	FPS 4 (Avg)	FPS 5 (Avg)	FPS 6 (Avg)	FPS 7 (Avg)	FPS 8 (Avg)	FPS 9 (Avg)	FPS 10 (Avg)	FPS 11 (Avg)	FPS 12 (Avg)	FPS 13 (Avg)	FPS 14 (Avg)	FPS 15 (Avg)	FPS 16 (Avg)	FPS 17 (Avg)	FPS 18 (Avg)	FPS 19 (Avg)	FPS 20 (Avg)	FPS 21 (Avg)	FPS 22 (Avg)	FPS 23 (Avg)	FPS 24 (Avg)	FPS 25 (Avg)	FPS 26 (Avg)	FPS 27 (Avg)	FPS 28 (Avg)	FPS 29 (Avg)	
**PERF:  0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	0.00 (0.00)	
** INFO: <bus_callback:239>: Pipeline ready

cuGraphicsGLRegisterBuffer failed with error(219) gst_eglglessink_cuda_init texture = 1
0:05:09.774026944   225 0x557b660f2980 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary_gie> error: Internal data stream error.
0:05:09.774047582   225 0x557b660f2980 WARN                 nvinfer gstnvinfer.cpp:2369:gst_nvinfer_output_loop:<primary_gie> error: streaming stopped, reason not-negotiated (-4)
ERROR from primary_gie: Internal data stream error.
Debug info: gstnvinfer.cpp(2369): gst_nvinfer_output_loop (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstNvInfer:primary_gie:
streaming stopped, reason not-negotiated (-4)
Quitting
nvstreammux: Successfully handled EOS for source_id=0
nvstreammux: Successfully handled EOS for source_id=1
nvstreammux: Successfully handled EOS for source_id=2
nvstreammux: Successfully handled EOS for source_id=3
nvstreammux: Successfully handled EOS for source_id=4
nvstreammux: Successfully handled EOS for source_id=5
nvstreammux: Successfully handled EOS for source_id=6
nvstreammux: Successfully handled EOS for source_id=7
nvstreammux: Successfully handled EOS for source_id=8
nvstreammux: Successfully handled EOS for source_id=9
nvstreammux: Successfully handled EOS for source_id=10
nvstreammux: Successfully handled EOS for source_id=11
nvstreammux: Successfully handled EOS for source_id=12
nvstreammux: Successfully handled EOS for source_id=13
nvstreammux: Successfully handled EOS for source_id=14
nvstreammux: Successfully handled EOS for source_id=15
nvstreammux: Successfully handled EOS for source_id=16
nvstreammux: Successfully handled EOS for source_id=17
nvstreammux: Successfully handled EOS for source_id=18
nvstreammux: Successfully handled EOS for source_id=19
nvstreammux: Successfully handled EOS for source_id=20
nvstreammux: Successfully handled EOS for source_id=21
nvstreammux: Successfully handled EOS for source_id=22
nvstreammux: Successfully handled EOS for source_id=23
nvstreammux: Successfully handled EOS for source_id=24
nvstreammux: Successfully handled EOS for source_id=25
nvstreammux: Successfully handled EOS for source_id=26
nvstreammux: Successfully handled EOS for source_id=27
nvstreammux: Successfully handled EOS for source_id=28
nvstreammux: Successfully handled EOS for source_id=29
ERROR from primary_gie_queue: Internal data stream error.
Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstQueue:primary_gie_queue:
streaming stopped, reason not-negotiated (-4)
ERROR from qtdemux4: Internal data stream error.
Debug info: qtdemux.c(6619): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin2/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin2/GstQTDemux:qtdemux4:
streaming stopped, reason not-negotiated (-4)
ERROR from qtdemux2: Internal data stream error.
Debug info: qtdemux.c(6619): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin0/GstQTDemux:qtdemux2:
streaming stopped, reason not-negotiated (-4)
ERROR from multiqueue2: Internal data stream error.
Debug info: gstmultiqueue.c(2357): gst_multi_queue_sink_event (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue2:
streaming stopped, reason not-negotiated (-4)
ERROR from qtdemux22: Internal data stream error.
Debug info: qtdemux.c(6619): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin22/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin22/GstQTDemux:qtdemux22:
streaming stopped, reason not-negotiated (-4)
ERROR from qtdemux23: Internal data stream error.
Debug info: qtdemux.c(6619): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin23/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin23/GstQTDemux:qtdemux23:
streaming stopped, reason not-negotiated (-4)
ERROR from multiqueue21: Internal data stream error.
Debug info: gstmultiqueue.c(2357): gst_multi_queue_sink_event (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin23/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin23/GstMultiQueue:multiqueue21:
streaming stopped, reason not-negotiated (-4)
ERROR from qtdemux7: Internal data stream error.
Debug info: qtdemux.c(6619): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin8/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin8/GstQTDemux:qtdemux7:
streaming stopped, reason not-negotiated (-4)
ERROR from multiqueue6: Internal data stream error.
Debug info: gstmultiqueue.c(2357): gst_multi_queue_sink_event (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin8/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin8/GstMultiQueue:multiqueue6:
streaming stopped, reason not-negotiated (-4)
App run failed


Waiting for your Response…

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. Thanks

Sorry for the long delay becasue vacation.

It looks seem GPU driver is not installed successfully.

What is your GPU model? If it is a computing card, does not support display.

First make sure deepstream-test-1 is working properly.

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