NVENC is not working in jetson orin nano

NVIDIA Tegra Orin (nvgpu)/integrated
Jetpack 5.1.1
CUDA 11.4
cuDNN 8.6.0.166
TensorRT 8.5.2.2
VPI: 2.2.6

I’m encountering an issue with my Jetson Orin Nano board where the video encoding is not functioning correctly both inside and outside of the container. I’m receiving the following error message when attempting to run a video encoding pipeline

gst-launch-1.0 -v videotestsrc pattern=18 ! "video/x-raw,width=(int)1280, height=(int)720, framerate=20/1" ! videoscale ! nvvidconv ! nvv4l2h264enc ! rtph264pay config-interval=1 pt=96 ! udpsink host=224.1.1.1 port=5000 sync=false
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc0: Could not open device '/dev/nvhost-msenc' for reading and writing.
Additional debug info:
/dvs/git/dirty/git-master_linux/3rdparty/gst/gst-v4l2/gst-v4l2/v4l2_calls.c(651): gst_v4l2_open (): /GstPipeline:pipeline0/nvv4l2h264enc:nvv4l2h264enc0:
system error: Cannot allocate memory
Setting pipeline to NULL ...
Freeing pipeline ...

I would greatly appreciate any assistance or suggestions on how to resolve this issue. Thank you in advance for your help!

On the first try, It hangs for some seconds/reboots itself.

Orin Nano has no HW encoder, so this is expected.
You may use SW encoder : How to record a video in orin nano since there ie no encoder present in it - #2 by Honey_Patouceul.

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