[nvv4l2h264enc] Error getting capabilities for device '/dev/nvhost-msenc'

• Hardware Platform: Jetson AGX Orin
• DeepStream Version: 6.3
• JetPack Version 5.1.2 (r35.4.1)
• TensorRT Version: 8.5.2-1+cuda11.4
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type: Bug

We’re trying to use the nvv4l2h264enc plugin to encode a test video source but it seems like there’s an issue with the driver.

• 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)

run gst-launch-1.0 -v videotestsrc ! nvvidconv ! "video/x-raw(memory:NVMM)" ! nvv4l2h264enc ! fakesink; you should get the following output:

Setting pipeline to PAUSED ...
Opening in BLOCKING MODE 
libv4l2: error getting capabilities: Inappropriate ioctl for device
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc0: Error getting capabilities for device '/dev/nvhost-msenc': It isn't a v4l2 driver. Check if it is a v4l1 driver.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(94): gst_v4l2_get_capabilities (): /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc0:
system error: Inappropriate ioctl for device
Setting pipeline to NULL ...
Freeing pipeline ...

I’ve attached the stack trace below:

out.txt (223.3 KB)

I’m also seeing the following getting spammed in dmesg:

[  763.361761] nvhost_channelctl: 2 callbacks suppressed
[  763.361767] (NULL device *): nvhost_channelctl: invalid cmd 0x80685600
[  763.361799] (NULL device *): nvhost_channelctl: invalid cmd 0x80685600
[  763.414245] (NULL device *): nvhost_channelctl: invalid cmd 0x80685600
[  763.414274] (NULL device *): nvhost_channelctl: invalid cmd 0x80685600
[  765.339964] (NULL device *): nvhost_channelctl: invalid cmd 0x80685600
[  765.339990] (NULL device *): nvhost_channelctl: invalid cmd 0x80685600
[  765.386946] (NULL device *): nvhost_channelctl: invalid cmd 0x80685600

Hi,
Please make sure you use AGX Orin. We have AGX Orin, Orin NX, Orin Nano modules and there is no hardware encoder in Orin Nano. So if you use Orin Nano, this is expected.

If you use AGX Orin, this is not expected and we would suggest re-flash the system image.

Hi,
This is on the AGX Orin.

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