@veye_xumm Thank you for your support!
I got my application working good.
Here is a receipt how can I achived this:
-
./media_setting_rpi5.sh veyecam2m
-
./veye_mipi_i2c.sh -b 6 -w -f yuvseq -p1 YUYV
-
./veye_mipi_i2c.sh -b 6 -w -f videoformat -p1 PAL
-
In my app open device /dev/video0 with following parameters:
width 1920;
height 1080;
pixel_format V4L2_PIX_FMT_UYVY (only this is working!!!)
field_format V4L2_FIELD_NONE
In case I try to set pixel_format to any other value is cause VIDIOC_STREAMON fail. I suppose this is a bug in the driver.
Some other applications like gstreamer only set pixel_format if you directly point to do this, this is why it works, but many others (e.g. trying to set default pixel_format) are not.