Arducam's IMX519 camera on Raspberry Pi 0
Various tips to use Arducam's IMX519 camera on Raspberry Pi 0: `libcamera-still` or `gstreamer` and `gst-launch`
#Commands
#Picture at 4K, with DRC post-processing, autofocus (requires several seconds to settle)
libcamera-still \ -n \ -t 5000 \ -o /tmp/test-q100.jpg \ --autofocus \ --width $((2 * 1920)) --height $((2 * 1080)) \ -q 100 \ --post-process ./libcamera-apps/assets/drc.json
#Video at 1080p, encoded in H264
gst-launch-1.0 \ libcamerasrc \ ! video/x-raw,colorimetry=bt709,format=NV12,interlace-mode=progressive,width=1920,height=1080,framerate=30/1 \ ! videoconvert \ ! v4l2h264enc \ ! 'video/x-h264,level=(string)4' \ ! filesink location=captured.h264
#Configuration
#/boot/config.txt
Includes unrelated things.
[all]
# dtoverlay=vc4-fkms-v3d,cma-64
dtoverlay=vc4-kms-v3d,cma-32
max_framebuffers=1
dtoverlay=dwc2
enable_uart=1
dtoverlay=disable-bt
dtparam=act_led_trigger=actpwr
start_x=1
gpu_mem=32
disable_camera_led=1
disable_splash=1
# dtoverlay=pi3-disable-wifi
dtoverlay=pi3-disable-bt
dtparam=act_led_trigger=none
dtparam=act_led_activelow=on
boot_delay=0
dtoverlay=sdtweak,overclock_50=100
dtoverlay=imx519
dtoverlay=pwm
disable_fw_kms_setup=1
#References
https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/issues/15
https://www.raspberrypi.com/documentation/accessories/camera.html
https://www.raspberrypi.com/documentation/computers/configuration.html
#Related hardware
https://www.arducam.com/product/pi-hawk-eye-64mp-af/