Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
RTX 5000, x86-64 RHEL
• DeepStream Version
6.0 (nvidia_deepstream:6.0-devel)
• NVIDIA GPU Driver Version (valid for GPU only)
470.57.02
• Issue Type( questions, new requirements, bugs)
Question
Hi,
I am trying to use the V4l2 H.265 encoder (nvv4l2h265enc) in the DeepStream 6.0 container. See example below:
gst-launch-1.0 -v videotestsrc ! nvvideoconvert ! ‘video/x-raw(memory:NVMM)’ ! nvv4l2h265enc bitrate=1000000 ! fakesink
I get the following error
Setting pipeline to PAUSED …
Failed to query video capabilities: Invalid argument
libv4l2: error getting capabilities: Invalid argument
ERROR: from element /GstPipeline:pipeline0/nvv4l2h265enc:nvv4l2h265enc0: Error getting capabilities for device ‘/dev/nvhost-msenc’: It isn’t a v4l2 driver. Check if it is a v4l1 driver.
Additional debug info:
v4l2_calls.c(97): gst_v4l2_get_capabilities (): /GstPipeline:pipeline0/nvv4l2h265enc:nvv4l2h265enc0:
system error: Invalid argument
ERROR: pipeline doesn’t want to preroll.
ERROR: from element /GstPipeline:pipeline0/nvv4l2h265enc:nvv4l2h265enc0: Could not initialize supporting library.
Additional debug info:
…/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoencoder.c(1775): gst_video_encoder_change_state (): /GstPipeline:pipeline0/nvv4l2h265enc:nvv4l2h265enc0:
Failed to open encoder
ERROR: pipeline doesn’t want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL …
Freeing pipeline …
/dev/nvhost-msenc appears to be related to Xavier. This appears to be the default device setting for the nvv4l2h265enc plugin. I only have /dev/nvidia0 and /dev/nvidia1 since I am using dGPU. I attempt to set the device property for nvv4l2h265enc, but it says that this property is read-only
device : Device location
flags: readable
String. Default: “/dev/nvhost-msenc”
How can I change the device in use for the nvv4l2h265enc plugin?