Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) - jetson Nano
• DeepStream Version - 6.0.1
• JetPack Version (valid for Jetson only) - 4.6.3
• TensorRT Version - 8.4
• NVIDIA GPU Driver Version (valid for GPU only) - 10.2
• Issue Type( questions, new requirements, bugs) - when i get access class id in deepstream_test5_app_main.c it could not access and it does not print anything after compiling the makefile.how to resolve this issue
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing) - this is actually not bugs and deepstream test 5 smart record in c
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description) - rtsp plugin ,inference plugin .
Make file:
and compilation using sudo make.
CUDA_VER?=10.2
ifeq ($(CUDA_VER),)
$(error “CUDA_VER is not set”)
endif
APP:= deepstream-test51-app
TARGET_DEVICE = $(shell gcc -dumpmachine | cut -f1 -d -)
NVDS_VERSION:=6.0
LIB_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/lib/
APP_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/bin/
ifeq ($(TARGET_DEVICE),aarch64)
CFLAGS:= -DPLATFORM_TEGRA
endif
SRCS:= deepstream_test5_app_main.c deepstream_utc.c
SRCS+= deepstream-app/deepstream_app.c deepstream-app/deepstream_app_config_parser.c
SRCS+= $(wildcard …/…/apps-common/src/*.c)
INCS:= $(wildcard *.h)
PKGS:= gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0
OBJS:= $(SRCS:.c=.o)
CFLAGS+= -I…/…/apps-common/includes
-I…/…/…/includes
-I…/deepstream-app/ -DDS_VERSION_MINOR=0 -DDS_VERSION_MAJOR=5
-I /usr/local/cuda-$(CUDA_VER)/include
LIBS:= -L/usr/local/cuda-$(CUDA_VER)/lib64/ -lcudart
LIBS+= -L$(LIB_INSTALL_DIR) -lnvdsgst_meta -lnvds_meta -lnvdsgst_helper -lnvdsgst_smartrecord -lnvds_utils -lnvds_msgbroker -lm
-lcuda -lgstrtspserver-1.0 -ldl -Wl,-rpath,$(LIB_INSTALL_DIR)
CFLAGS+= $(shell pkg-config --cflags $(PKGS))
LIBS+= $(shell pkg-config --libs $(PKGS))
all: $(APP)
%.o: %.c $(INCS) Makefile
$(CC) -c -o $@ $(CFLAGS) $<
$(APP): $(OBJS) Makefile
$(CC) -o $(APP) $(OBJS) $(LIBS)
install: $(APP)
cp -rv $(APP) $(APP_INSTALL_DIR)
clean:
rm -rf $(OBJS) $(APP)
configuration file:
[application]
enable-perf-measurement=1
perf-measurement-interval-sec=5
#gie-kitti-output-dir=streamscl
[primary-gie]
enable=1
gpu-id=0
batch-size=1
0=FP32, 1=INT8, 2=FP16 mode
bbox-border-color0=1;0;0;1
#bbox-border-color1=0;1;1;1
#bbox-border-color2=0;1;1;1
#bbox-border-color3=0;1;0;1
nvbuf-memory-type=0
interval=0
gie-unique-id=1
model-engine-file = Primary_Detector_Nano/resnet10.caffemodel_b1_gpu0_fp16.engine
labelfile-path= Primary_Detector_Nano/labels.txt
config-file = Primary_Detector_Nano/config_infer_primary_nano.txt
#infer-raw-output-dir=…/…/…/…/…/samples/primary_detector_raw_output/
[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=4
uri=rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0
num-sources=1
gpu-id=0
enable the record
nvbuf-memory-type=0
to store in local or cloud
smart-record=0
smart-rec-container=0
smart-rec-duration=300
store only first five seconds
smart-rec-interval=10
smart-rec-file-prefix=record.mp4
smart-rec-dir-path=record
smart-rec-cache=300
#[source0]
#enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
#type=2
#uri=rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=3&subtype=0
#num-sources=1
#gpu-id=0
#nvbuf-memory-type=0
[streammux]
gpu-id=0
##Boolean property to inform muxer that sources are live
live-source=0
batch-size=1
##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
[sink2]
enable=1
type=3
#1=mp4 2=mkv
container=1
#1=h264 2=h265 3=mpeg4
only SW mpeg4 is supported right now.
codec=2
sync=1
bitrate=100000
output-file=out.mp4
source-id=0
[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=Arial
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
run using this comment deepstream-app -c dstestsr_pgie_config.txt