Embedded data buffer parsing failed on Arducam B0388 IMX519 camera with Raspberry Pi libcamera/Picamera2

Having trouble with the B0388 16MP synchronized quad camera kit on a Raspberry Pi. It works intermittently and is pretty unstable. In dmesg I’m seeing imx519 messages, and libcamera/Picamera2 throw an ‘Embedded data buffer parsing failed’ error. I followed the getting-started PDF (https://www.arducam.com/downloads/synchronized-quad-camera-kit-getting-started.pdf) and all libcamera components are installed. Reinstalled several times, same result.

libcamera error:
[18:59:59.825370004] [3235] ERROR IPARPI cam_helper.cpp:249 Embedded data buffer parsing failed

dmesg:
[ 11.195342] imx519: loading out-of-tree module taints kernel.
[ 11.221594] imx519 10-001a: Device found is imx519
[ 11.222255] imx519 10-001a: Consider updating driver imx519 to match on endpoints

I saw export LIBCAMERA_NOTPARSE_EMBEDDED_DATA=1 mentioned somewhere but I’m not sure if that’s the right thing to try.

Thanks for the logs. That embedded data error usually comes from libcamera trying to parse the sensor’s embedded data and failing. Can you confirm whether you installed libcamera from the Arducam site rather than just the stock Raspberry Pi package? The Arducam build is different — see libcamera and rpicam-apps - Arducam Wiki . A mismatch there is the usual cause for the cam_helper.cpp:249 error.

Here’s my full setup. I’m on Raspberry Pi OS Bullseye, Quad-Camera Adapter Board B012001, four imx519 cameras. I followed these docs:

These are the install commands I ran:
wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
chmod +x install_pivariety_pkgs.sh
./install_pivariety_pkgs.sh -p libcamera_dev
./install_pivariety_pkgs.sh -p libcamera_apps
i2cset -y 10 0x24 0x24 0x01
i2cset -y 10 0x24 0x24 0x02
./install_pivariety_pkgs.sh -p imx519_kernel_driver_low_speed
./install_pivariety_pkgs.sh -p kernel_driver

Then I tested with:
libcamera-still -t 5000 -n -o test.jpg

Config has:
dtoverlay=camera-mux-4port,cam0-imx519,cam1-imx519,cam2-imx519,cam3-imx519

I also checked i2cdetect -l, edited /boot/config.txt, and tried enabling Glamor and GL (Full KMS) in raspi-config and rebooted. One thing I’ve seen mentioned is that the 16MP driver doesn’t work on kernel 6.1.19, so I’m using a fresh Bullseye image with default kernel 5.15.84 and haven’t run full upgrade.

Your setup looks right, but let’s make sure the Arducam libcamera is actually the one being used. Reinstall/verify it from the Arducam guide: libcamera and rpicam-apps - Arducam Wiki , then run:

export LIBCAMERA_NOTPARSE_EMBEDDED_DATA=1

That variable disables parsing of the embedded data buffer, which is what’s tripping cam_helper.cpp:249. Run it in the same shell before your libcamera/Picamera2 command.

Yes, all installed. I’ll try the export command now:
export LIBCAMERA_NOTPARSE_EMBEDDED_DATA=1

Great — after you run that in the same terminal, does the embedded data error go away? Let me know what you get.

That quiets the error down. Is this OK? Can I have a flag to turn INFO messages off? I’m still seeing this INFO line:

[11:22:21.057555318] [1946] INFO V4L2 v4l2_videodevice.cpp:1820 /dev/video1[17:cap]: Zero sequence expected for first frame (got 2)

Sorry, we are unable to set a flag to hide the INFO message. The export LIBCAMERA_NOTPARSE_EMBEDDED_DATA=1 command is the supported workaround for the embedded data error, but there’s no supported flag to suppress the INFO-level V4L2 ‘Zero sequence expected for first frame (got 2)’ message from v4l2_videodevice.cpp:1820. It’s informational and shouldn’t affect capture.

Understood. export LIBCAMERA_NOTPARSE_EMBEDDED_DATA=1 quiets the embedded data error and the INFO message doesn’t seem to affect anything, so I’m fine with it. You can close this.

Thanks for confirming. To wrap up: use the Arducam libcamera build, keep kernel 5.15.84 for the imx519 driver, and run export LIBCAMERA_NOTPARSE_EMBEDDED_DATA=1 in the same shell before launching libcamera/Picamera2. That disables the embedded data parsing that caused the cam_helper.cpp:249 error. The remaining V4L2 INFO message about ‘Zero sequence expected for first frame (got 2)’ cannot be hidden via a flag, but it is not harmful.