How to run multi input, multi rtsp output

Hello

I want multiple sources and RTSP sink
however the rtsp output works fine up to 3 inputs, but an error occurs after 4

ERROR from sink_sub_bin_encoder1: Device ‘/dev/nvhost-msenc’ failed during initialization
Debug info: gstv4l2object.c(4074): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstBin:sink_sub_bin1/nvv4l2h264enc:sink_sub_bin_encoder1:
Call to S_FMT failed for YM12 @ 1920x1080: Unknown error -1

here is my config file

[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_1080p_h264.mp4
num-sources=1
source-id=0
gpu-id=0
nvbuf-memory-type=0

[source1]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_qHD.mp4
num-sources=1
gpu-id=0
source-id=1
nvbuf-memory-type=0

[source2]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_720p.h264
num-sources=1
source-id=2
gpu-id=0
nvbuf-memory-type=0

[source3]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_cam5.mp4
num-sources=1
gpu-id=0
source-id=3
nvbuf-memory-type=0

[source4]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_cam6.mp4
num-sources=1
source-id=4
gpu-id=0
nvbuf-memory-type=0

[source5]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_qHD.mp4
num-sources=1
gpu-id=0
source-id=5
nvbuf-memory-type=0

[source6]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_1080p_h264.mp4
num-sources=1
source-id=6
gpu-id=0
nvbuf-memory-type=0

[source7]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_cam5.mp4
num-sources=1
gpu-id=0
source-id=7
nvbuf-memory-type=0

[source8]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file://…/…/…/…/…/samples/streams/sample_cam6.mp4
num-sources=1
gpu-id=0
source-id=8
nvbuf-memory-type=0

[sink11]
enable=1
type=4
source-id=1
codec=1
#enc-type=0
sync=0
bitrate=4000000
#profile=0
rtsp-port=8555
udp-port=5001
gpu-id=0
nvbuf-memory-type=0

[sink12]
enable=1
type=4
source-id=2
codec=1
#enc-type=0
sync=0
bitrate=4000000
#profile=0
rtsp-port=8556
udp-port=5002
gpu-id=0
nvbuf-memory-type=0

[sink13]
enable=1
type=4
source-id=3
codec=1
#enc-type=0
sync=0
bitrate=4000000
#profile=0
rtsp-port=8557
udp-port=5003
gpu-id=0
nvbuf-memory-type=0

[sink14]
enable=1
type=4
source-id=4
codec=1
#enc-type=0
sync=0
bitrate=4000000
#profile=0
rtsp-port=8558
udp-port=5004
gpu-id=0
nvbuf-memory-type=0

[sink15]
enable=1
type=4
source-id=5
codec=1
#enc-type=0
sync=0
bitrate=4000000
#profile=0
rtsp-port=8559
udp-port=5005
gpu-id=0
nvbuf-memory-type=0

[sink16]
enable=1
type=4
source-id=6
codec=1
#enc-type=0
sync=0
bitrate=4000000
#profile=0
rtsp-port=8560
udp-port=5006
gpu-id=0
nvbuf-memory-type=0

[sink17]
enable=1
type=4
source-id=7
codec=1
#enc-type=0
sync=0
bitrate=4000000
#profile=0
rtsp-port=8561
udp-port=5007
gpu-id=0
nvbuf-memory-type=0

[sink18]
enable=1
type=4
source-id=8
codec=1
#enc-type=0
sync=0
bitrate=4000000
#profile=0
rtsp-port=8562
udp-port=5008
gpu-id=0
nvbuf-memory-type=0

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• 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)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

GPU : nvidia titanX
DeepStream Version : nvcr.io/nvidia/deepstream:5.1-21.02-triton
NVIDIA GPU Driver Version : 465.27

I configured via docker container

and I have successfully tested 9 internal display outputs (type=2) with 9 inputs

Please refer to Video Encode and Decode GPU Support Matrix [NEW] | NVIDIA Developer

Titan X HW codec only supports 3 encoding sessions. Your RTSP settings enable more than 3 HW encoding sessions( by default, “enc-type=0”(DeepStream Reference Application - deepstream-app — DeepStream 6.3 Release documentation)). So it failed. Please just enable 3 HW encoders(“enc-type=0”) and the others use SW encoders(“enc-type=1”).

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