@veye_xumm
I'm experiencing issues with capturing a still image from my RAW-MIPI-IMX462M camera.
Current image processing pipeline:
v4l2-ctl -d 0 -v width=1920,height=1080,pixelformat=XY12 --stream-mmap --stream-count 1 --stream-to captured_frame.raw
magick -size 1920x1080 -depth 16 -endian LSB gray:captured_frame.raw -depth 8 frame.png
The problem:
First capture after boot produces correct image:frame_good.png
All subsequent captures yield corrupted images:
frame_bad.png
Camera reboot restores proper functionality.
./mv_mipi_i2c_new.sh -w reboot -b 9
Troubleshooting performed:
Tested both XY10 and XY12 pixel formats
Used different conversion tools (ImageMagick, ffmpeg)
Tried 8-bit and 16-bit grayscale output
Applied pixel bit shifting (both pixel_layer_convert and custom scripts)
Compared camera settings pre/post capture using:
v4l2-ctl -d 0 -L
Read internal camera registers via ./mv_mipi_i2c.sh
No configuration differences were detected between "working" and "failing" camera states.
What could cause this single-good-frame behavior, and how can it be resolved?