How capture single 8Mp image from rpi camera?

I am using the Arducam 8MP (Raspberry Pi) Camera Module V2, IMX219 Auto Focus Lens , I have both the mipi and the USB version, I can get the video with

gst-launch-1.0 -v v4l2src device=/dev/video2 ! ‘image/jpeg, width=3264, height=2448, framerate=15/1, format=MJPG’ ! jpegdec ! xvimagesink

but this is only video, and I can’t get the full resolution of 8Mp from the sensor with a single picture (like we can on rpi with raspistill), any idea on how to do it on Jetson ?


v4l2-ctl --list-formats-ext --device /dev/video0
Index : 0
Type : Video Capture
Pixel Format: ‘RG10’
Name : 10-bit Bayer RGRG/GBGB
Size: Discrete 3264x2464
Interval: Discrete 0.048s (21.000 fps)
Size: Discrete 3264x1848
Interval: Discrete 0.036s (28.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.017s (60.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.017s (60.000 fps)

hello iliesaya,

please refer to L4T Accelerated GStreamer User Guide,
you might modify the gstreamer pipeline to include image encoder and dump it as jpg file.
for example,

$ gst-launch-1.0 nvarguscamerasrc num-buffers=1 ! 'video/x-raw(memory:NVMM), width=2592, height=1944' ! nvjpegenc ! filesink location=sample.jpg

please note that, you should enable different plugins for MIPI and USB sensors.
please check Camera Architecture Stack, that you should only enable v4l2src to access USB cameras.