Deepstream bug

Please provide complete information as applicable to your setup.

• Hardware Platform TeslaP40
• DeepStream Version 6.4
• NVIDIA GPU Driver Version 535.161.08
• Issue Type(bug)

Hey I just tried running the deepstream-app sample from deepstream-6.4 samples docker image. With the following config,

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

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI 4=RTSP
type=2
uri=file://sample1.mp4
#num-sources=1
#gpu-id=0
# (0): memtype_device   - Memory type Device
# (1): memtype_pinned   - Memory type Host Pinned
# (2): memtype_unified  - Memory type Unified
#cudadec-memtype=2

[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File 4=RTSPStreaming
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
# set profile only for hw encoder, sw encoder selects profile based on sw-preset
#profile=0
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=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
buffer-pool-size=1
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

# 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=../../models/Primary_Detector/resnet18_trafficcamnet.etlt_b1_gpu0_int8.engine
batch-size=1
#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
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary.txt

[tracker]
enable=1
# For NvDCF and NvDeepSORT tracker, tracker-width and tracker-height must be a multiple of 32, respectively
tracker-width=960
tracker-height=544
ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
# ll-config-file required to set different tracker types
# ll-config-file=config_tracker_IOU.yml
# ll-config-file=config_tracker_NvSORT.yml
ll-config-file=config_tracker_NvDCF_perf.yml
# ll-config-file=config_tracker_NvDCF_accuracy.yml
# ll-config-file=config_tracker_NvDeepSORT.yml
gpu-id=0
display-tracking-id=1

[secondary-gie0]
enable=1
model-engine-file=../../models/Secondary_VehicleTypes/resnet18_vehicletypenet.etlt_b1_gpu0_int8.engine
gpu-id=0
batch-size=1
gie-unique-id=4
operate-on-gie-id=1
operate-on-class-ids=0;
config-file=config_infer_secondary_vehicletypes.txt

[secondary-gie1]
enable=1
model-engine-file=../../models/Secondary_VehicleMake/resnet18_vehiclemakenet.etlt_b1_gpu0_int8.engine
batch-size=1
gpu-id=0
gie-unique-id=5
operate-on-gie-id=1
operate-on-class-ids=0;
config-file=config_infer_secondary_vehiclemake.txt

[tests]
file-loop=0

getting error,

0:00:00.133099889  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133128078  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe minimum capture size for pixelformat YM12
0:00:00.133136067  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133143614  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe maximum capture size for pixelformat YM12
0:00:00.133157793  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133165482  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe minimum capture size for pixelformat Y444
0:00:00.133171473  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133178173  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe maximum capture size for pixelformat Y444
0:00:00.133204204  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133212921  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe minimum capture size for pixelformat P410
0:00:00.133219219  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133227159  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe maximum capture size for pixelformat P410
0:00:00.133239003  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133247509  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe minimum capture size for pixelformat PM10
0:00:00.133253511  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133281692  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe maximum capture size for pixelformat PM10
0:00:00.133309927  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133321875  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe minimum capture size for pixelformat NM12
0:00:00.133336501  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:sink> Unable to try format: Unknown error -1
0:00:00.133346995  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:sink> Could not probe maximum capture size for pixelformat NM12
0:00:00.133406812  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:src> Unable to try format: Unknown error -1
0:00:00.133415955  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:src> Could not probe minimum capture size for pixelformat H264
0:00:00.133422730  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<sink_sub_bin_encoder1:src> Unable to try format: Unknown error -1
0:00:00.133434812  2638 0x56283bc7a440 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<sink_sub_bin_encoder1:src> Could not probe maximum capture size for pixelformat H264
0:00:07.593508620  2638 0x56283bc7a440 INFO                 nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 5]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2092> [UID = 5]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.4/samples/configs/deepstream-app/../../models/Secondary_VehicleMake/resnet18_vehiclemakenet.etlt_b1_gpu0_int8.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [Implicit Engine Info]: layers num: 2
0   INPUT  kFLOAT input_1         3x224x224
1   OUTPUT kFLOAT predictions/Softmax 20x1x1

0:00:07.634057601  2638 0x56283bc7a440 INFO                 nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<secondary_gie_1> NvDsInferContext[UID 5]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 5]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.4/samples/configs/deepstream-app/../../models/Secondary_VehicleMake/resnet18_vehiclemakenet.etlt_b1_gpu0_int8.engine
0:00:07.637917589  2638 0x56283bc7a440 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<secondary_gie_1> [UID 5]: Load new model:/opt/nvidia/deepstream/deepstream-6.4/samples/configs/deepstream-app/config_infer_secondary_vehiclemake.txt sucessfully
0:00:15.001705443  2638 0x56283bc7a440 INFO                 nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 4]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2092> [UID = 4]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.4/samples/configs/deepstream-app/../../models/Secondary_VehicleTypes/resnet18_vehicletypenet.etlt_b1_gpu0_int8.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [Implicit Engine Info]: layers num: 2
0   INPUT  kFLOAT input_1         3x224x224
1   OUTPUT kFLOAT predictions/Softmax 6x1x1

0:00:15.035467443  2638 0x56283bc7a440 INFO                 nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<secondary_gie_0> NvDsInferContext[UID 4]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 4]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.4/samples/configs/deepstream-app/../../models/Secondary_VehicleTypes/resnet18_vehicletypenet.etlt_b1_gpu0_int8.engine
0:00:15.036395214  2638 0x56283bc7a440 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<secondary_gie_0> [UID 4]: Load new model:/opt/nvidia/deepstream/deepstream-6.4/samples/configs/deepstream-app/config_infer_secondary_vehicletypes.txt sucessfully
gstnvtracker: Loading low-level lib at /opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.so
[NvMultiObjectTracker] Initialized
0:00:22.382919918  2638 0x56283bc7a440 INFO                 nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2092> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.4/samples/configs/deepstream-app/../../models/Primary_Detector/resnet18_trafficcamnet.etlt_b1_gpu0_int8.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [Implicit Engine Info]: layers num: 3
0   INPUT  kFLOAT input_1         3x544x960
1   OUTPUT kFLOAT output_bbox/BiasAdd 16x34x60
2   OUTPUT kFLOAT output_cov/Sigmoid 4x34x60

0:00:22.417473536  2638 0x56283bc7a440 INFO                 nvinfer gstnvinfer.cpp:682:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2195> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.4/samples/configs/deepstream-app/../../models/Primary_Detector/resnet18_trafficcamnet.etlt_b1_gpu0_int8.engine
0:00:22.419079411  2638 0x56283bc7a440 INFO                 nvinfer gstnvinfer_impl.cpp:328:notifyLoadModelStatus:<primary_gie> [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream-6.4/samples/configs/deepstream-app/config_infer_primary.txt sucessfully
0:00:22.421033074  2638 0x56283bc7a440 WARN                 basesrc gstbasesrc.c:3688:gst_base_src_start_complete:<source> pad not activated yet
0:00:22.421443375  2638 0x56283bc7a440 WARN                 basesrc gstbasesrc.c:3688:gst_base_src_start_complete:<source> pad not activated yet

Runtime commands:
	h: Print this help
	q: Quit

	p: Pause
	r: Resume


**PERF:  FPS 0 (Avg)
**PERF:  0.00 (0.00)
** INFO: <bus_callback:301>: Pipeline ready

0:00:22.435423415  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.435477335  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MJPG
0:00:22.435500896  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.435527394  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MJPG
0:00:22.435586102  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.435622229  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat AV10
0:00:22.435675380  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.435712901  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat AV10
0:00:22.435796055  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.435837683  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat DVX5
0:00:22.435890834  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.435934083  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat DVX5
0:00:22.436010314  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436052608  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat DVX4
0:00:22.436085270  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436132117  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat DVX4
0:00:22.436201393  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436250032  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MPG4
0:00:22.436289766  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436328607  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MPG4
0:00:22.436398340  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436434704  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat MPG2
0:00:22.436477287  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436511993  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat MPG2
0:00:22.436589829  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436635446  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H265
0:00:22.436703170  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436743670  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H265
0:00:22.436812497  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436850968  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat VP90
0:00:22.436890445  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.436932601  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat VP90
0:00:22.436994878  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.437053321  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat VP80
0:00:22.437087514  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.437130882  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat VP80
0:00:22.437202995  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.437238330  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe minimum capture size for pixelformat H264
0:00:22.437274521  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:sink> Unable to try format: Unknown error -1
0:00:22.437316785  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:sink> Could not probe maximum capture size for pixelformat H264
0:00:22.437526866  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:22.437566297  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe minimum capture size for pixelformat Y444
0:00:22.437599175  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:22.437636877  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe maximum capture size for pixelformat Y444
0:00:22.437733680  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:22.437781153  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe minimum capture size for pixelformat P410
0:00:22.437819004  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:22.437853845  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe maximum capture size for pixelformat P410
0:00:22.437931029  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:22.437977516  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe minimum capture size for pixelformat PM10
0:00:22.438011419  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:22.438045971  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe maximum capture size for pixelformat PM10
0:00:22.438124317  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:22.438167339  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe minimum capture size for pixelformat NM12
0:00:22.438205925  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:<nvv4l2decoder0:src> Unable to try format: Unknown error -1
0:00:22.438239454  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_caps_for_format:<nvv4l2decoder0:src> Could not probe maximum capture size for pixelformat NM12
0:00:22.439018878  2638 0x7f88b00a31e0 WARN                    v4l2 gstv4l2object.c:3710:gst_v4l2_object_set_format_full:<nvv4l2decoder0:sink> Unknown colorimetry tranfer 16
Error while setting IOCTL
Invalid control
S_EXT_CTRLS for CUDA_GPU_ID failed
0:00:22.439471146  2638 0x7f88b00a31e0 WARN            videodecoder gstvideodecoder.c:928:gst_video_decoder_setcaps:<nvv4l2decoder0> Subclass refused caps
0:00:22.439506803  2638 0x7f88b00a31e0 WARN               decodebin gstdecodebin2.c:2551:connect_pad:<decodebin0> Couldn't set nvv4l2decoder0 to PAUSED
** INFO: <bus_callback:287>: Pipeline running

ENC_CTX(0x7f892400d800) Error in initializing nvenc context
0:00:22.537684057  2638 0x56283b7f8800 ERROR          v4l2allocator gstv4l2allocator.c:784:gst_v4l2_allocator_start:<sink_sub_bin_encoder1:pool:src:allocator> error requesting 2 buffers: Cannot allocate memory
0:00:22.537745568  2638 0x56283b7f8800 ERROR         v4l2bufferpool gstv4l2bufferpool.c:1217:gst_v4l2_buffer_pool_start:<sink_sub_bin_encoder1:pool:src> we received 0 buffer from device '/dev/v4l2-nvenc', we want at least 2
0:00:22.537775062  2638 0x56283b7f8800 ERROR             bufferpool gstbufferpool.c:572:gst_buffer_pool_set_active:<sink_sub_bin_encoder1:pool:src> start failed
0:00:22.537800002  2638 0x56283b7f8800 WARN            v4l2videoenc gstv4l2videoenc.c:1053:gst_v4l2_video_enc_set_format:<sink_sub_bin_encoder1> Could not activate capture buffer pool.
0:00:22.537845876  2638 0x56283b7f8800 WARN            videoencoder gstvideoencoder.c:778:gst_video_encoder_setcaps:<sink_sub_bin_encoder1> rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, batch-size=(int)1, num-surfaces-per-frame=(int)1, format=(string)I420, block-linear=(boolean)false, nvbuf-memory-type=(string)nvbuf-mem-cuda-device, gpu-id=(int)0
0:00:22.538286749  2638 0x56283b7f8800 WARN                    v4l2 gstv4l2object.c:3565:gst_v4l2_object_set_format_full:<sink_sub_bin_encoder1> error: Device is in streaming mode
0:00:22.538417348  2638 0x56283b7f8800 WARN            videoencoder gstvideoencoder.c:778:gst_video_encoder_setcaps:<sink_sub_bin_encoder1> rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, batch-size=(int)1, num-surfaces-per-frame=(int)1, format=(string)I420, block-linear=(boolean)false, nvbuf-memory-type=(string)nvbuf-mem-cuda-device, gpu-id=(int)0
0:00:22.538448413  2638 0x56283b7f8800 WARN                GST_PADS gstpad.c:4351:gst_pad_peer_query:<sink_sub_bin_cap_filter1:src> could not send sticky events
ERROR from sink_sub_bin_encoder1: Could not get/set settings from/on resource.
Debug info: gstv4l2object.c(3565): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/nvv4l2h264enc:sink_sub_bin_encoder1:
Device is in streaming mode
0:00:22.539222496  2638 0x56283b7f8800 WARN                    v4l2 gstv4l2object.c:3565:gst_v4l2_object_set_format_full:<sink_sub_bin_encoder1> error: Device is in streaming mode
0:00:22.539332069  2638 0x56283b7f8800 WARN            videoencoder gstvideoencoder.c:778:gst_video_encoder_setcaps:<sink_sub_bin_encoder1> rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, batch-size=(int)1, num-surfaces-per-frame=(int)1, format=(string)I420, block-linear=(boolean)false, nvbuf-memory-type=(string)nvbuf-mem-cuda-device, gpu-id=(int)0
ERROR from sink_sub_bin_encoder1: Could not get/set settings from/on resource.
Debug info: gstv4l2object.c(3565): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/nvv4l2h264enc:sink_sub_bin_encoder1:
Device is in streaming mode
0:00:22.539846180  2638 0x56283b7f8800 WARN                    v4l2 gstv4l2object.c:3565:gst_v4l2_object_set_format_full:<sink_sub_bin_encoder1> error: Device is in streaming mode
ERROR from sink_sub_bin_encoder1: Could not get/set settings from/on resource.
0:00:22.539957658  2638 0x56283b7f8800 WARN            videoencoder gstvideoencoder.c:778:gst_video_encoder_setcaps:<sink_sub_bin_encoder1> rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, batch-size=(int)1, num-surfaces-per-frame=(int)1, format=(string)I420, block-linear=(boolean)false, nvbuf-memory-type=(string)nvbuf-mem-cuda-device, gpu-id=(int)0
Debug info: gstv4l2object.c(3565): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/nvv4l2h264enc:sink_sub_bin_encoder1:
Device is in streaming mode
0:00:22.540287480  2638 0x56283b7f8800 WARN                    v4l2 gstv4l2object.c:3565:gst_v4l2_object_set_format_full:<sink_sub_bin_encoder1> error: Device is in streaming mode
ERROR from sink_sub_bin_encoder1: Could not get/set settings from/on resource.
Debug info: gstv4l2object.c(3565): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/nvv4l2h264enc:sink_sub_bin_encoder1:
Device is in streaming mode
0:00:22.540384866  2638 0x56283b7f8800 WARN            videoencoder gstvideoencoder.c:778:gst_video_encoder_setcaps:<sink_sub_bin_encoder1> rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, batch-size=(int)1, num-surfaces-per-frame=(int)1, format=(string)I420, block-linear=(boolean)false, nvbuf-memory-type=(string)nvbuf-mem-cuda-device, gpu-id=(int)0
0:00:22.540855432  2638 0x56283b7f8800 WARN                    v4l2 gstv4l2object.c:3565:gst_v4l2_object_set_format_full:<sink_sub_bin_encoder1> error: Device is in streaming mode
0:00:22.540942689  2638 0x56283b7f8800 WARN            videoencoder gstvideoencoder.c:778:gst_video_encoder_setcaps:<sink_sub_bin_encoder1> rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, batch-size=(int)1, num-surfaces-per-frame=(int)1, format=(string)I420, block-linear=(boolean)false, nvbuf-memory-type=(string)nvbuf-mem-cuda-device, gpu-id=(int)0
ERROR from sink_sub_bin_encoder1: Could not get/set settings from/on resource.
Debug info: gstv4l2object.c(3565): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/nvv4l2h264enc:sink_sub_bin_encoder1:
Device is in streaming mode
Quitting
0:00:22.544074156  2638 0x56283b7f8800 WARN                    v4l2 gstv4l2object.c:3565:gst_v4l2_object_set_format_full:<sink_sub_bin_encoder1> error: Device is in streaming mode
0:00:22.544178251  2638 0x56283b7f8800 WARN            videoencoder gstvideoencoder.c:778:gst_video_encoder_setcaps:<sink_sub_bin_encoder1> rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, batch-size=(int)1, num-surfaces-per-frame=(int)1, format=(string)I420, block-linear=(boolean)false, nvbuf-memory-type=(string)nvbuf-mem-cuda-device, gpu-id=(int)0
0:00:22.544723580  2638 0x56283b7f8800 WARN                    v4l2 gstv4l2object.c:3565:gst_v4l2_object_set_format_full:<sink_sub_bin_encoder1> error: Device is in streaming mode
0:00:22.544796590  2638 0x56283b7f8800 WARN            videoencoder gstvideoencoder.c:778:gst_video_encoder_setcaps:<sink_sub_bin_encoder1> rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, batch-size=(int)1, num-surfaces-per-frame=(int)1, format=(string)I420, block-linear=(boolean)false, nvbuf-memory-type=(string)nvbuf-mem-cuda-device, gpu-id=(int)0
0:00:22.545116541  2638 0x56283b7f8800 WARN                    v4l2 gstv4l2object.c:3565:gst_v4l2_object_set_format_full:<sink_sub_bin_encoder1> error: Device is in streaming mode
0:00:22.545182532  2638 0x56283b7f8800 WARN            videoencoder gstvideoencoder.c:778:gst_video_encoder_setcaps:<sink_sub_bin_encoder1> rejected caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)25/1, batch-size=(int)1, num-surfaces-per-frame=(int)1, format=(string)I420, block-linear=(boolean)false, nvbuf-memory-type=(string)nvbuf-mem-cuda-device, gpu-id=(int)0
0:00:22.545306342  2638 0x56283b7f84c0 FIXME               basesink gstbasesink.c:3395:gst_base_sink_default_event:<sink_sub_bin_sink1> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
0:00:22.545671015  2638 0x56283b7f84c0 FIXME             aggregator gstaggregator.c:1410:gst_aggregator_aggregate_func:<sink_sub_bin_mux1> Subclass should call gst_aggregator_selected_samples() from its aggregate implementation.
ERROR from sink_sub_bin_encoder1: Could not get/set settings from/on resource.
Debug info: gstv4l2object.c(3565): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/nvv4l2h264enc:sink_sub_bin_encoder1:
Device is in streaming mode
ERROR from sink_sub_bin_encoder1: Could not get/set settings from/on resource.
Debug info: gstv4l2object.c(3565): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/nvv4l2h264enc:sink_sub_bin_encoder1:
Device is in streaming mode
ERROR from sink_sub_bin_encoder1: Could not get/set settings from/on resource.
Debug info: gstv4l2object.c(3565): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/nvv4l2h264enc:sink_sub_bin_encoder1:
Device is in streaming mode
[NvMultiObjectTracker] De-initialized
App run failed

I tested your configuration file using deepstream-app and it works fine.

How did you start docker? Can you share the command line?

Or you can try again using the following command line.

docker run --gpus all -it --rm --net=host --privileged -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-6.4 nvcr.io/nvidia/deepstream:6.4-gc-triton-devel

By the way, can deepstream-test1 work properly? If not, you may want to consider reinstalling the GPU driver.

Could not find the issue, though it started working after I used software encoder.

This is error from GPU driver.
Can the following command line be executed normally? If not, maybe the driver has not been installed successfully

gst-launch-1.0 uridecodebin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264 ! nvvideoconvert ! nvv4l2h264enc ! h264parse ! filesink location=out.h264