Device '/dev/nvhost-msenc' failed during initialization

• Hardware Platform (Jetson / GPU): GPU
• DeepStream Version: nvcr.io/nvidia/deepstream:5.1-21.02-samples

Hi. I customized adding and deleting sources refer to deepstream_rt_src_add_del.py and I met an error.

I have 3 input videos: A, B, C. Firstly, I add two videos A, B. Then I delete video A and add video C to A’s source_id, it works successfully. However, when I delete B and add C to B’s source_id, there is an error:

Error: gst-resource-error-quark: Device ‘/dev/nvhost-msenc’ failed during initialization (1): gstv4l2object.c(4074): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/nvv4l2h264enc:encoder1:
Call to S_FMT failed for YM12 @ 1920x1080: Unknown error -1

Here is my pipeline:


Is that depend on the format of the video ? Could you guys help me with this problem ? Thanks in advance !

Does video B and C have same format? Can you run with case like delete C and Add C to C’s source_id?

Every videos are mp4 format.

Yeah, it works successfully. The error only happens with video B.

mp4 is container. you can use mediainfo or ffmpeg to get codec info.