GStreamer with nvarguscamerasrc, no cameras avaliable

I’m trying to get h265 hardware accelerated video encoding running on an Orin NX (seeed studio developer kit) running Jetpack version R35 using the commands found here: Accelerated GStreamer — Jetson Linux Developer Guide documentation

When I run the command in the documentation gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1' ! nvv4l2h265enc bitrate=8000000 ! h265parse ! qtmux ! filesink location=filename_h265.mp4 -e' I get the following output:

Setting pipeline to PAUSED ...
Opening in BLOCKING MODE 
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:751 No cameras available
Redistribute latency...
NvMMLiteOpen : Block : BlockType = 8 
===== NVMEDIA: NVENC =====
NvMMLiteBlockCreate : Block : BlockType = 8 
Got EOS from element "pipeline0".
Execution ended after 0:00:00.002934714
Setting pipeline to NULL ...
Freeing pipeline ...

I have a camera plugged in and am seeing /dev/video0 and /dev/video1.

I haven’t been able to find a solution to this problem, does anyone have any ideas what could be the issue?

Hi,
Please run the commands and share the prints for reference:

$ v4l2-ctl --list-formats-ext -d /dev/video0
$ v4l2-ctl --list-formats-ext -d /dev/video1

Would need to select v4l2src or nvarguscamerasrc plugin per the camera type. Please share the prints so that we can suggest next.

Here is the output:

v4l2-ctl --list-formats-ext -d /dev/video0

ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: ‘YUYV’ (YUYV 4:2:2)
Size: Discrete 2560x720
Interval: Discrete 0.017s (60.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 1344x376
Interval: Discrete 0.010s (100.000 fps)
Interval: Discrete 0.017s (60.000 fps)
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 3840x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Size: Discrete 4416x1242
Interval: Discrete 0.067s (15.000 fps)

v4l2-ctl --list-formats-ext -d /dev/video1

ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

I was able to get it working with the v4l2src plugin! The issue that I was having was that I didn’t realize I needed to use nvvidconv to convert between standard gstreamer plugins and nvidia plugins, rather than videoconvert.

1 Like

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