Cannot identify device '/dev/v4l2-nvenc' on Orin NX

I am using Boson carrier board for Framos (https://connecttech.com/product/boson-for-framos-carrier-board-for-nvidia-jetson-orin-nx/), and Framos IMX304C sensor along with Orin NX to encode the camera stream via gstreamer. I am using JetPack 5.1.1 and CTI-L4T-ORIN-NX-NANO-35.3.1-V004.tgz on my Orin NX. When I am trying to encode the video stream using the hardware accelerator in my GStreamer pipeline it fails with the following error:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=1 '!' 'video/x-raw(memory:NVMM), framerate=30/1' '!' nvvidconv '!' videoconvert '!' nvv4l2h264enc '!' h264parse '!' qtmux '!' filesink location=/tmp/test.mp4 -e
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc0: Cannot identify device '/dev/v4l2-nvenc'.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(637): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc0:
system error: No such file or directory
Setting pipeline to NULL ...
Freeing pipeline ...

Has anybody encountered a similar issue?

hello gramadon,

could you please revise your pipeline to remove video converter for testing,
for example, $ gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=1 '!' 'video/x-raw(memory:NVMM), framerate=30/1' '!' nvv4l2h264enc '!' h264parse '!' qtmux '!' filesink location=/tmp/test.mp4 -e

moreover,
let’s check your camera functionality.
you may running with below commands to disable preview and shows frame-rate only for verification.
for instance, $ gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 -v

here’s an example to use software encode, (it’s for Orin Nano, since it does not have the NVENC engine)
you may see-also developer guide, Argus Camera Software Encode Sample for reference.

removing the vide converter from the pipeline did the trick, now the pipeline works. thanks!

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