Amount limit of Hardware encoder in sink

I run more than 3 deepstream in my server, all using Hardware encoder in sink. But I found that only 3 Hardware encoder is supported. When I ran the 4th deepstream, the error occur, no matter with rtmp or rtsp. Is this problem related to my GPU performance? or GPU driver? How could I run multiple deepstream and all using Hardware encoder.

Here is my log:

ERROR from sink_sub_bin_encoder1: Could not get/set settings from/on resource.

Debug info: gstv4l2object.c(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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(3507): 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

** INFO: <bus_callback:203>: Pipeline running



ERROR from sink_bin_queue: Internal data stream error.

Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstQueue:sink_bin_queue:

streaming stopped, reason not-negotiated (-4)

[NvMultiObjectTracker] De-initialized

App run failed

Please refer to the encoder number in your GPU: Video Encode and Decode GPU Support Matrix | NVIDIA Developer, seems the max encoder number is reached.

My GPU is Tesla T4, Total of NVENC is 1, Max # of concurrent sessions is Unrestricted. So what does it mean? Why can I only run 3 on my server?

Have you installed the correct GPU driver?

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)