IMX219 camera not recording

Hi. I am new to the community. I am running an IMX219 (Arducam) camera through the CAM0 port of a jetson orin nano using ubuntu 20.4. I am able to get a preview image but I am not able to record. I use the following command recommended by Arducam and get the error message below. Any ideas how to fix this? Thank you in advance

nick@nick-desktop:~$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=20/1” ! nvv4l2h264enc ! h264parse ! mp4mux ! filesink location=rpi_v3_imx219_cam0.mp4

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 …

Hi,
Orin Nano does not have hardware encoder. Please use software encoder x264enc plugin.

Thanks. I already had this installed as below

nick@nick-desktop:~$ gst-inspect-1.0 x264enc
Factory Details:
Rank primary (256)
Long-name x264enc
Klass Codec/Encoder/Video
Description H264 Encoder
Author Josef Zlomek josef.zlomek@itonis.tv, Mark Nauwelaerts mnauw@users.sf.net

Plugin Details:
Name x264
Description libx264-based H264 plugins
Filename /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgstx264.so
Version 1.16.2
License GPL
Source module gst-plugins-ugly
Source release date 2019-12-03
Binary package GStreamer Ugly Plugins (Ubuntu)
Origin URL gst-plugins-ugly1.0 package : Ubuntu

GObject
±—GInitiallyUnowned

When I ran the code with x264enc, I got the error below

~$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 ! “video/x-raw(memory:NVMM),width=1920,height=1080,framerate=20/1” ! x264enc ! h264parse ! mp4mux ! filesink location=rpi_v3_imx219_cam0.mp4
WARNING: erroneous pipeline: could not link nvarguscamerasrc0 to x264enc0, x264enc0 can’t handle caps video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, framerate=(fraction)20/1

Any ideas!? Thank you

Hi,
Please try

$ gst-launch-1.0 -e nvarguscamerasrc sensor-id=0 ! "video/x-raw(memory:NVMM),width=1920,height=1080,framerate=20/1" ! nvvidconv ! video/x-raw ! x264enc ! h264parse ! qtmux ! filesink location=rpi_v3_imx219_cam0.mp4

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