kbingham / libcamera

libcamera - Making complex cameras easy. This is a personal fork, please use the upstream repository at https://git.libcamera.org/libcamera/libcamera.git/
https://libcamera.org
Other
173 stars 69 forks source link

Need help with pinephone cameras bring-up (Android) #28

Closed rsglobal closed 2 years ago

rsglobal commented 3 years ago

I've successfully enabled all components required to run libcamera on Android (pre-12 master branch). But during probing cameras it appears that some of mandatory controls aren't available. Linux guys somehow uses these cameras. Are those controls really mandatory?

Please help. Here is the log:

08-21 15:51:46.601   388   388 I libcamera:  INFO HAL camera3_hal.cpp:61 Initialising Android camera HAL
08-21 15:51:46.601   388   388 E libcamera: ERROR HALConfig camera_hal_config.cpp:361 Failed to open configuration file /vendor/etc/libcamera/camera_hal.yaml: No such file or directory
08-21 15:51:46.602   388   388 W libcamera:  WARN IPAManager ipa_manager.cpp:149 No IPA found in '/usr/local/lib/libcamera'
08-21 15:51:46.602   388   388 I libcamera:  INFO Camera camera_manager.cpp:294 libcamera v0.0.0
08-21 15:51:46.602   388   473 D libcamera: DEBUG Camera camera_manager.cpp:107 Starting camera manager
08-21 15:51:46.603   388   473 D libcamera: DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "cedrus" created from /dev/media0
08-21 15:51:46.604   388   473 D libcamera: DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media0: cedrus
08-21 15:51:46.604   388   473 D libcamera: DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "sun6i-csi" created from /dev/media1
08-21 15:51:46.605   388   473 D libcamera: DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media1: sun6i-csi
08-21 15:51:46.605   388   473 D libcamera: DEBUG Camera camera_manager.cpp:150 Found registered pipeline handler 'SimplePipelineHandler'
08-21 15:51:46.605   388   473 D libcamera: DEBUG DeviceEnumerator device_enumerator.cpp:312 Successful match for media device "sun6i-csi"
08-21 15:51:46.605   388   473 D libcamera: DEBUG SimplePipeline simple.cpp:306 Found capture device sun6i-csi
08-21 15:51:47.164   388   473 D libcamera: DEBUG V4L2 v4l2_videodevice.cpp:578 /dev/video2[10:cap]: Opened device platform:csi: sun6i-video: sun6i-csi
08-21 15:51:47.164   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'gc2145 4-003c': Control: Exposure (0x00980911)
08-21 15:51:47.165   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'gc2145 4-003c': Control: Horizontal Flip (0x00980914)
08-21 15:51:47.165   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'gc2145 4-003c': Control: Vertical Flip (0x00980915)
08-21 15:51:47.165   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'gc2145 4-003c': Control: Auto Exposure (0x009a0901)
08-21 15:51:47.165   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'gc2145 4-003c': Control: Auto Exposure, Bias (0x009a0913)
08-21 15:51:47.165   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'gc2145 4-003c': Control: Analogue Gain (0x009e0903)
08-21 15:51:47.165   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'gc2145 4-003c': Control: Test Pattern (0x009f0903)
08-21 15:51:47.165   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'gc2145 4-003c': Control: Digital Gain (0x009f0905)
08-21 15:51:47.165   388   473 D libcamera: DEBUG CameraSensor camera_sensor.cpp:182 'gc2145 4-003c': Optional V4L2 control 0x009a0923 not supported
08-21 15:51:47.166   388   473 W libcamera:  WARN CameraSensor camera_sensor.cpp:197 'gc2145 4-003c': Recommended V4L2 control 0x009a0922 not supported
08-21 15:51:47.166   388   473 E libcamera: ERROR V4L2 v4l2_subdevice.cpp:286 'gc2145 4-003c': Unable to get rectangle 2 on pad 0: Inappropriate ioctl for device
08-21 15:51:47.166   388   473 W libcamera:  WARN CameraSensor camera_sensor.cpp:224 'gc2145 4-003c': The PixelArraySize property has been defaulted to 1600x1200
08-21 15:51:47.166   388   473 E libcamera: ERROR V4L2 v4l2_subdevice.cpp:286 'gc2145 4-003c': Unable to get rectangle 1 on pad 0: Inappropriate ioctl for device
08-21 15:51:47.166   388   473 W libcamera:  WARN CameraSensor camera_sensor.cpp:235 'gc2145 4-003c': The PixelArrayActiveAreas property has been defaulted to (0x0)/1600x1200
08-21 15:51:47.166   388   473 E libcamera: ERROR V4L2 v4l2_subdevice.cpp:286 'gc2145 4-003c': Unable to get rectangle 0 on pad 0: Inappropriate ioctl for device
08-21 15:51:47.166   388   473 W libcamera:  WARN CameraSensor camera_sensor.cpp:243 'gc2145 4-003c': Failed to retrieve the sensor crop rectangle
08-21 15:51:47.166   388   473 W libcamera:  WARN CameraSensor camera_sensor.cpp:249 'gc2145 4-003c': The sensor kernel driver needs to be fixed
08-21 15:51:47.166   388   473 W libcamera:  WARN CameraSensor camera_sensor.cpp:251 'gc2145 4-003c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
08-21 15:51:47.166   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:272 'gc2145 4-003c': Mandatory V4L2 control 0x009e0902 not available
08-21 15:51:47.166   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:272 'gc2145 4-003c': Mandatory V4L2 control 0x009f0902 not available
08-21 15:51:47.167   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:272 'gc2145 4-003c': Mandatory V4L2 control 0x009e0901 not available
08-21 15:51:47.167   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:280 'gc2145 4-003c': The sensor kernel driver needs to be fixed
08-21 15:51:47.167   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:282 'gc2145 4-003c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
08-21 15:51:47.167   388   473 E libcamera: ERROR SimplePipeline simple.cpp:1009 No valid pipeline for sensor 'gc2145 4-003c', skipping
08-21 15:51:47.167   388   473 D libcamera: DEBUG SimplePipeline simple.cpp:306 Found capture device sun6i-csi
08-21 15:51:47.167   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Contrast (0x00980901)
08-21 15:51:47.167   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Saturation (0x00980902)
08-21 15:51:47.167   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Hue (0x00980903)
08-21 15:51:47.167   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: White Balance, Automatic (0x0098090c)
08-21 15:51:47.167   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Red Balance (0x0098090e)
08-21 15:51:47.168   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Blue Balance (0x0098090f)
08-21 15:51:47.168   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Exposure (0x00980911)
08-21 15:51:47.168   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Gain, Automatic (0x00980912)
08-21 15:51:47.168   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Gain (0x00980913)
08-21 15:51:47.168   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Horizontal Flip (0x00980914)
08-21 15:51:47.168   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Vertical Flip (0x00980915)
08-21 15:51:47.168   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Power Line Frequency (0x00980918)
08-21 15:51:47.168   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Auto Exposure (0x009a0901)
08-21 15:51:47.168   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Pixel Rate (0x009f0902)
08-21 15:51:47.169   388   473 D libcamera: DEBUG V4L2 v4l2_device.cpp:610 'ov5640 4-004c': Control: Test Pattern (0x009f0903)
08-21 15:51:47.169   388   473 D libcamera: DEBUG CameraSensor camera_sensor.cpp:182 'ov5640 4-004c': Optional V4L2 control 0x009a0923 not supported
08-21 15:51:47.169   388   473 W libcamera:  WARN CameraSensor camera_sensor.cpp:197 'ov5640 4-004c': Recommended V4L2 control 0x009a0922 not supported
08-21 15:51:47.169   388   473 E libcamera: ERROR V4L2 v4l2_subdevice.cpp:286 'ov5640 4-004c': Unable to get rectangle 2 on pad 0: Inappropriate ioctl for device
08-21 15:51:47.169   388   473 W libcamera:  WARN CameraSensor camera_sensor.cpp:224 'ov5640 4-004c': The PixelArraySize property has been defaulted to 2592x1944
08-21 15:51:47.169   388   473 E libcamera: ERROR V4L2 v4l2_subdevice.cpp:286 'ov5640 4-004c': Unable to get rectangle 1 on pad 0: Inappropriate ioctl for device
08-21 15:51:47.169   388   473 W libcamera:  WARN CameraSensor camera_sensor.cpp:235 'ov5640 4-004c': The PixelArrayActiveAr
rsglobal commented 3 years ago

I found one discussion which was an attempt to solve this: https://github.com/sailfish-on-dontbeevil/droid-config-pinephone/issues/55

rsglobal commented 3 years ago

And a set of kernel patches: https://github.com/simonschmeisser/kernel-megi/tree/5.10-libcamera

rsglobal commented 3 years ago
08-21 15:51:47.166   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:272 'gc2145 4-003c': Mandatory V4L2 control 0x009e0902 not available

0x009e0902 - V4L2_CID_HBLANK

08-21 15:51:47.166   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:272 'gc2145 4-003c': Mandatory V4L2 control 0x009f0902 not available

0x009f0902 - V4L2_CID_PIXEL_RATE

08-21 15:51:47.167   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:272 'gc2145 4-003c': Mandatory V4L2 control 0x009e0901 not available

0x009e0901 - V4L2_CID_VBLANK

We can try to apply RPI4 experience: https://patchwork.kernel.org/project/linux-media/cover/20201119161956.756455-1-jacopo@jmondi.org/

According to the datasheet (https://cdn.sparkfun.com/datasheets/Sensors/LightImaging/OV5640_datasheet.pdf), registers for ov5640 and raspberry pi's ov5647 is similar (at least for hblank and vblank values)

rsglobal commented 3 years ago

@kbingham ,

By the way, are there any plans moving libcamera to freedesktop, where other major linux graphics components are located?

rsglobal commented 3 years ago

RPI's OV5647: Screenshot from 2021-09-08 13-02-17

Pinephone OV5640: Screenshot from 2021-09-08 13-06-10

kbingham commented 3 years ago

@kbingham ,

By the way, are there any plans moving libcamera to freedesktop, where other major linux graphics components are located?

None that I'm aware of. libcamera is a "component" of the linux-media projects https://linuxtv.org/, more closely associated with the Kernel, than the desktop.

kbingham commented 3 years ago
08-21 15:51:47.166   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:272 'gc2145 4-003c': Mandatory V4L2 control 0x009e0902 not available

0x009e0902 - V4L2_CID_HBLANK

08-21 15:51:47.166   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:272 'gc2145 4-003c': Mandatory V4L2 control 0x009f0902 not available

0x009f0902 - V4L2_CID_PIXEL_RATE

08-21 15:51:47.167   388   473 E libcamera: ERROR CameraSensor camera_sensor.cpp:272 'gc2145 4-003c': Mandatory V4L2 control 0x009e0901 not available

0x009e0901 - V4L2_CID_VBLANK

We can try to apply RPI4 experience: https://patchwork.kernel.org/project/linux-media/cover/20201119161956.756455-1-jacopo@jmondi.org/

According to the datasheet (https://cdn.sparkfun.com/datasheets/Sensors/LightImaging/OV5640_datasheet.pdf), registers for ov5640 and raspberry pi's ov5647 is similar (at least for hblank and vblank values)

Yes, the updates may be similar. The three controls must be supported by the kernel driver. (And ideally upstreamed).

rsglobal commented 3 years ago

@kbingham , By the way, are there any plans moving libcamera to freedesktop, where other major linux graphics components are located?

None that I'm aware of. libcamera is a "component" of the linux-media projects https://linuxtv.org/, more closely associated with the Kernel, than the desktop.

Sorry for using your personal fork for reporting project-global issues. When I'm working via mailing lists it feels like I'm using stationary phone in the age of the smartphones. :)

kbingham commented 3 years ago

You can also start discussions/issues on our https://bugs.libcamera.org/ bugzilla instance if you want an audience that isn't just me ;-)

Though I guess that's not really a forum, as it's a bug tracker ... ;-)

rsglobal commented 2 years ago

CC: @daaaanil81

PsychoGame commented 2 years ago

@rsglobal,

Are you guys still busy with trying to implement the neccesary v4l2 functions into the camera drivers of the PinePhone? Currently I'm also working on trying to get libcamera up-and-running on plain Linux, and have been in contact with developer xnux about these missing functions and if he would mentor me in trying to get these functions implemented. He replied to me with a surprising answer that he received some camera patches lately which might implement these features. They have been sent to me, and indeed these patches implement these functions. Are you interested in these as well to help the GloDroid developent progress further?

Greetings Jasper

rsglobal commented 2 years ago

Hello Jasper,

Thanks for the info. We haven't started yet, so in case patches are already available, it would be nice to start testing them.

kbingham commented 2 years ago

Hi @PsychoGame, If there are patches to improve support for PinePhone floating around, could you consider posting them to the linux-media and libcamera mailing lists as well please to get the support reviewed for upstreaming?

kbingham commented 2 years ago

@PsychoGame I'm not sure who xnux is, but feel free to join #libcamera on irc.oftc.net if you would like any support in getting libcamera running successfully on the pinephone too, and the support integrated upstream.

PsychoGame commented 2 years ago

As soon as I have the chance i'll upload them. I'm currently onboard of a shipping vessel with limited time/internet. xnux is one of the main developers working on PinePhone kernel. His real name is Ondrej Jirman.

Op zondag 16 januari 2022 schreef Kieran Bingham @.***>:

@PsychoGame I'm not sure who xnux is, but feel free to join #libcamera on irc.oftc.net if you would like any support in getting libcamera running successfully on the pinephone too, and the support integrated upstream.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.< https://ci6.googleusercontent.com/proxy/Wwslcv12-DTV6RcTOgroeO828JI8yVEqFmo6hVR4YlsiAG5xBGUJ5TTuZNhg2SEznDzo_jFHK0hUjw30IsnAUgNpgng0EFbjAwToMKMjgeMqKa7DtO93aH_-4MQqshQU2sP586LPaDaJX0dzQOzP7cJODpFROK-Tzv7g31vnb5Kq6xy3lYa5YtBFCGVr-vPcYb_Cp0rPMJkH-3xRjf7vISWnY0zsNB1SOjSotletLA=s0-d-e1-ft#https://github.com/notifications/beacon/AAZHCWD5ODSPXYN6QS4RFHDUWMDNPA5CNFSM5CTJLEOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHRXUNSY.gif>Message ID: @.***>

rsglobal commented 2 years ago

I also know Ondrej Jirman as @megous .
And his main integration branch for the pinephone / PP pro is here: https://megous.com/git/linux/

But as far as I can see it doesn't contain required patched yet: https://github.com/megous/linux/commits/orange-pi-5.16/drivers/media/i2c/ov5640.c

PsychoGame commented 2 years ago

@rsglobal and @kbingham,

Hereby I have uploaded the promised patchsets to pastebin.
These patches have not been created by me, but by a developer which goes by the name of Benjamin Schaaf.
He sent them to Ondrej Jirman (Megi), which in turn has send them to me when he found out I was trying to implement the same.
Eventually when Ondrej Jirman has the time to have a good look at these patchsets he'll implement them in his kernel branches as well
Update: They have already been pulled in the 5.17 kernel branch Undermentioned are the links to the patches:

rafael2k commented 2 years ago

Can anyone confirm libcamera is working on pinephone? Not yet for me with kernel 5.15...

kbingham commented 2 years ago

Update: They have already been pulled in the 5.17 kernel branch

Can you update your kernel?

I know Pavel Machek has been discussing Pinephone on the libcamera mailing list in the last few days.

kbingham commented 2 years ago

@rafael2k

Can anyone confirm libcamera is working on pinephone? Not yet for me with kernel 5.15...

You said 'not yet' - what have you tried, and what was the errors?

rafael2k commented 2 years ago

Right. I compile the source from git. Running: ./lc-compliance [4:36:46.704732208] [15163] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3665-bb84fc6a No camera specified, available cameras:

MegaPixels software identifies the camera and I can use it.

Help me debug the issue? Some info:

ls -lR /dev/v4l* crw-rw---- 1 root video 81, 3 Jun 22 11:21 /dev/v4l-subdev0 crw-rw---- 1 root video 81, 4 Jun 22 11:21 /dev/v4l-subdev1

/dev/v4l: total 0 drwxr-xr-x 2 root root 100 Jun 22 11:21 by-path

/dev/v4l/by-path: total 0 lrwxrwxrwx 1 root root 12 Jun 22 11:21 platform-1020000.rotate-video-index0 -> ../../video0 lrwxrwxrwx 1 root root 12 Jun 22 11:21 platform-1c0e000.video-codec-video-index0 -> ../../video1 lrwxrwxrwx 1 root root 12 Jun 22 11:21 platform-1cb0000.csi-video-index0 -> ../../video2

rafael2k commented 2 years ago

More info.

media-ctl -d /dev/media0 -p

Media controller API version 5.15.48

Media device information

driver cedrus model cedrus serial
bus info platform:cedrus hw revision 0x0 driver version 5.15.48

Device topology

media-ctl -d /dev/media1 -p

Media controller API version 5.15.48

Media device information

driver sun6i-csi model Allwinner Video Capture Device serial
bus info platform:1cb0000.csi hw revision 0x0 driver version 5.15.48

Device topology

rafael2k commented 2 years ago

I advanced a bit here. Here I am: ./lc-compliance [6:03:22.948763728] [16718] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3665-bb84fc6a [6:03:22.976465603] [16719] WARN CameraSensor camera_sensor.cpp:212 'gc2145 3-003c': Recommended V4L2 control 0x009a0922 not supported [6:03:22.978480561] [16719] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 2 on pad 0: Inappropriate ioctl for device [6:03:22.979363603] [16719] WARN CameraSensor camera_sensor.cpp:239 'gc2145 3-003c': The PixelArraySize property has been defaulted to 1600x1200 [6:03:22.979433394] [16719] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 1 on pad 0: Inappropriate ioctl for device [6:03:22.979499686] [16719] WARN CameraSensor camera_sensor.cpp:250 'gc2145 3-003c': The PixelArrayActiveAreas property has been defaulted to (0, 0)/1600x1200 [6:03:22.979599769] [16719] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 0 on pad 0: Inappropriate ioctl for device [6:03:22.979663478] [16719] WARN CameraSensor camera_sensor.cpp:258 'gc2145 3-003c': Failed to retrieve the sensor crop rectangle [6:03:22.979719186] [16719] WARN CameraSensor camera_sensor.cpp:264 'gc2145 3-003c': The sensor kernel driver needs to be fixed [6:03:22.979773644] [16719] WARN CameraSensor camera_sensor.cpp:266 'gc2145 3-003c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information [6:03:22.979853436] [16719] ERROR CameraSensor camera_sensor.cpp:287 'gc2145 3-003c': Mandatory V4L2 control 0x009e0902 not available [6:03:22.979915686] [16719] ERROR CameraSensor camera_sensor.cpp:287 'gc2145 3-003c': Mandatory V4L2 control 0x009f0902 not available [6:03:22.979973686] [16719] ERROR CameraSensor camera_sensor.cpp:287 'gc2145 3-003c': Mandatory V4L2 control 0x009e0901 not available [6:03:22.980280644] [16719] ERROR CameraSensor camera_sensor.cpp:295 'gc2145 3-003c': The sensor kernel driver needs to be fixed [6:03:22.980343811] [16719] ERROR CameraSensor camera_sensor.cpp:297 'gc2145 3-003c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information [6:03:22.981451561] [16719] ERROR SimplePipeline simple.cpp:1309 No valid pipeline for sensor 'gc2145 3-003c', skipping [6:03:22.986176478] [16719] WARN CameraSensor camera_sensor.cpp:212 'ov5640 3-004c': Recommended V4L2 control 0x009a0922 not supported [6:03:22.986392019] [16719] ERROR V4L2 v4l2_subdevice.cpp:318 'ov5640 3-004c': Unable to get rectangle 2 on pad 0: Inappropriate ioctl for device [6:03:22.986487478] [16719] WARN CameraSensor camera_sensor.cpp:239 'ov5640 3-004c': The PixelArraySize property has been defaulted to 2592x1944 [6:03:22.986555228] [16719] ERROR V4L2 v4l2_subdevice.cpp:318 'ov5640 3-004c': Unable to get rectangle 1 on pad 0: Inappropriate ioctl for device [6:03:22.986618769] [16719] WARN CameraSensor camera_sensor.cpp:250 'ov5640 3-004c': The PixelArrayActiveAreas property has been defaulted to (0, 0)/2592x1944 [6:03:22.986690769] [16719] ERROR V4L2 v4l2_subdevice.cpp:318 'ov5640 3-004c': Unable to get rectangle 0 on pad 0: Inappropriate ioctl for device [6:03:22.986751686] [16719] WARN CameraSensor camera_sensor.cpp:258 'ov5640 3-004c': Failed to retrieve the sensor crop rectangle [6:03:22.986807353] [16719] WARN CameraSensor camera_sensor.cpp:264 'ov5640 3-004c': The sensor kernel driver needs to be fixed [6:03:22.988926894] [16719] WARN CameraSensor camera_sensor.cpp:266 'ov5640 3-004c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information [6:03:22.990680353] [16719] ERROR CameraSensor camera_sensor.cpp:287 'ov5640 3-004c': Mandatory V4L2 control 0x009e0902 not available [6:03:22.990761353] [16719] ERROR CameraSensor camera_sensor.cpp:287 'ov5640 3-004c': Mandatory V4L2 control 0x009e0901 not available [6:03:22.990816561] [16719] ERROR CameraSensor camera_sensor.cpp:295 'ov5640 3-004c': The sensor kernel driver needs to be fixed [6:03:22.990869519] [16719] ERROR CameraSensor camera_sensor.cpp:297 'ov5640 3-004c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information [6:03:22.991348436] [16719] ERROR SimplePipeline simple.cpp:1309 No valid pipeline for sensor 'ov5640 3-004c', skipping

kbingham commented 2 years ago

That looks like error messages about the kernel that are referenced as fixed by the patches listed in https://github.com/kbingham/libcamera/issues/28#issuecomment-1025098359 and - as I understand it from that post - merged in Linux 5.17.

kbingham commented 2 years ago

@rafael2k Are you able to update the kernel? or build the latest kernel from source?

rafael2k commented 2 years ago

I saw the patches in comment #28 and indeed tried to backport them to 5.15. No success. Did anyone mentioned success with 5.17? I can try 5.17... but need a good source for 5.17 + pinephone patches.

pinchartl commented 2 years ago

@rsglobal and @kbingham,

Hereby I have uploaded the promised patchsets to pastebin. These patches have not been created by me, but by a developer which goes by the name of Benjamin Schaaf. He sent them to Ondrej Jirman (Megi), which in turn has send them to me when he found out I was trying to implement the same. Eventually when Ondrej Jirman has the time to have a good look at these patchsets he'll implement them in his kernel branches as well Update: They have already been pulled in the 5.17 kernel branch Undermentioned are the links to the patches:

* [media: ov5640: Fix mod setting semantics](https://pastebin.com/ny65VgxR)
* [media: ov5640: Add HBLANK and VBLANK controls](https://pastebin.com/GwLKLy7D)
* [media: ov5640: Improve firmware load time](https://pastebin.com/syLHNHGx)
* [media: ov5640: Fix focus commands blocking until complete](https://pastebin.com/8XJnijFR)
* [media: gc2145: Add PIXEL_RATE, HBLANK and VBLANK controls](https://pastebin.com/enC7JhwT)
* [media: sun6i-csi: Implement framesize and frameinterval enumeration](https://pastebin.com/0eqRqB4K)
* [media: sun6i-csi: Limit formats to those compatible with sub-device](https://pastebin.com/6rFDWHtf)

Could someone post the sun6i-csi patches to the linux-media mailing list, to get them merged upstream ? Ideally that should be done by Benjamin, as the patches linked above are missing his SoB.

rafael2k commented 2 years ago

Indeed. That would be wonderful. I'm maintaining some patches here, for my 5.15 tree: https://github.com/rafael2k/pine64-kernel/blob/maemo/beowulf-devel/debian/patches/maemo/0244-ov5640_camera_fixes.patch https://github.com/rafael2k/pine64-kernel/blob/maemo/beowulf-devel/debian/patches/maemo/0245-sun6i_v4l2.patch https://github.com/rafael2k/pine64-kernel/blob/maemo/beowulf-devel/debian/patches/maemo/0246-gs2145_camera_fixes.patch

But it would be better the authors submit them upstream.

kbingham commented 2 years ago

@rafael2k can you contact Benjamin and see how he'd like to proceed, (and check if he's the author) or take over the patches yourself if he doesn't want to?

rafael2k commented 2 years ago

Wrote to him, with you in CC.

darkdragon-001 commented 2 years ago

but need a good source for 5.17 + pinephone patches.

@rafael2k Megi (the original author of the patches) maintains a kernel version with many patches for PinePhone and provides binaries to download if you don't want to build from source (see here, pp stands for PinePhone and ppd for PinePhoneDebug if I remember correctly).

rafael2k commented 2 years ago

But could you please tell me what is not working with this: https://github.com/maemo-leste/pine64-kernel/tree/maemo/beowulf-devel https://github.com/rafael2k/sunxi64-linux/tree/mobian-5.15 We use this kernel in Maemo and it works fine.

kbingham commented 2 years ago

We use this kernel in Maemo and it works fine.

"Works fine with libcamera" - or something else?

rafael2k commented 2 years ago

Works with libcamera. But we still have a weird color conversion issue with qcam and gles driver. Without gles driver, we get: Failed to set viewfinder format ps: and there are still pending driver patches to be upstreamed...

kbingham commented 2 years ago

Can you save a picture with qcam (with gles) and upload it here? And capture the logs of running without gles with the LIBCAMERA_LOG_LEVELS=*:0 environment variable set please.

rafael2k commented 2 years ago

LIBCAMERA_LOG_LEVELS=*:0 qcam

[0:30:12.356464695] [5814] DEBUG IPAModule ipa_module.cpp:320 ipa_ipu3.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_ipu3.so is not signed
[0:30:12.356812362] [5814] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_ipu3.so'
[0:30:12.357048528] [5814] DEBUG IPAModule ipa_module.cpp:320 ipa_rkisp1.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_rkisp1.so is not signed
[0:30:12.357144278] [5814] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_rkisp1.so'
[0:30:12.358509403] [5814] DEBUG IPAModule ipa_module.cpp:320 ipa_rpi.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so is not signed
[0:30:12.358690487] [5814] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so'
[0:30:12.358853653] [5814] DEBUG IPAModule ipa_module.cpp:320 ipa_vimc.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_vimc.so is not signed
[0:30:12.358920778] [5814] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_vimc.so'
[0:30:12.359063070] [5814]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[0:30:12.359481695] [5818] DEBUG Camera camera_manager.cpp:106 Starting camera manager
[0:30:12.362948903] [5818] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "cedrus" created from /dev/media0
[0:30:12.363078903] [5818] DEBUG DeviceEnumerator device_enumerator_udev.cpp:95 Defer media device /dev/media0 due to 1 missing dependencies
[0:30:12.363554362] [5818] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media0 found
[0:30:12.363623987] [5818] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media0: cedrus
[0:30:12.364336487] [5818] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "sun6i-csi" created from /dev/media1
[0:30:12.364866570] [5818] DEBUG DeviceEnumerator device_enumerator_udev.cpp:95 Defer media device /dev/media1 due to 1 missing dependencies
[0:30:12.365288195] [5818] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media1 found
[0:30:12.365343653] [5818] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media1: sun6i-csi
[0:30:12.365907903] [5818] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerIPU3'
[0:30:12.366061778] [5818] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerRPi'
[0:30:12.366115987] [5818] DEBUG RPI raspberrypi.cpp:1153 Unable to acquire a Unicam instance
[0:30:12.366196445] [5818] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerRkISP1'
[0:30:12.366272820] [5818] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'SimplePipelineHandler'
[0:30:12.366348987] [5818] DEBUG DeviceEnumerator device_enumerator.cpp:312 Successful match for media device "sun6i-csi"
[0:30:12.366580195] [5818] DEBUG SimplePipeline simple.cpp:383 Found capture device sun6i-csi
[0:30:12.366813237] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Exposure (0x00980911)
[0:30:12.366965195] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Horizontal Flip (0x00980914)
[0:30:12.367046320] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Vertical Flip (0x00980915)
[0:30:12.367189153] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Auto Exposure (0x009a0901)
[0:30:12.367267903] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Auto Exposure, Bias (0x009a0913)
[0:30:12.367448570] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Vertical Blanking (0x009e0901)
[0:30:12.367525195] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Horizontal Blanking (0x009e0902)
[0:30:12.367584737] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Analogue Gain (0x009e0903)
[0:30:12.367668570] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Pixel Rate (0x009f0902)
[0:30:12.367814278] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Test Pattern (0x009f0903)
[0:30:12.367966778] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Digital Gain (0x009f0905)
[0:30:12.372238487] [5818] DEBUG CameraSensor camera_sensor.cpp:197 'gc2145 3-003c': Optional V4L2 control 0x009a0923 not supported
[0:30:12.372360570] [5818]  WARN CameraSensor camera_sensor.cpp:212 'gc2145 3-003c': Recommended V4L2 control 0x009a0922 not supported
[0:30:12.372412987] [5818] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 2 on pad 0: Inappropriate ioctl for device
[0:30:12.373244528] [5818]  WARN CameraSensor camera_sensor.cpp:239 'gc2145 3-003c': The PixelArraySize property has been defaulted to 1600x1200
[0:30:12.373321778] [5818] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 1 on pad 0: Inappropriate ioctl for device
[0:30:12.373399112] [5818]  WARN CameraSensor camera_sensor.cpp:250 'gc2145 3-003c': The PixelArrayActiveAreas property has been defaulted to (0, 0)/1600x1200
[0:30:12.373488403] [5818] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 0 on pad 0: Inappropriate ioctl for device
[0:30:12.373540695] [5818]  WARN CameraSensor camera_sensor.cpp:258 'gc2145 3-003c': Failed to retrieve the sensor crop rectangle
[0:30:12.373602528] [5818]  WARN CameraSensor camera_sensor.cpp:264 'gc2145 3-003c': The sensor kernel driver needs to be fixed
[0:30:12.373644445] [5818]  WARN CameraSensor camera_sensor.cpp:266 'gc2145 3-003c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[0:30:12.375559778] [5818]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'gc2145'
[0:30:12.375672862] [5818]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[0:30:12.375721695] [5818]  WARN CameraSensor camera_sensor.cpp:411 'gc2145 3-003c': Failed to retrieve the camera location
[0:30:12.375786653] [5818] DEBUG SimplePipeline simple.cpp:430 Found pipeline: [gc2145 3-003c|0] -> [0|sun6i-csi]
[0:30:12.375870862] [5818] DEBUG SimplePipeline simple.cpp:383 Found capture device sun6i-csi
[0:30:12.376309862] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Contrast (0x00980901)
[0:30:12.376452903] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Saturation (0x00980902)
[0:30:12.376548612] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Hue (0x00980903)
[0:30:12.376675403] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: White Balance, Automatic (0x0098090c)
[0:30:12.376789778] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Red Balance (0x0098090e)
[0:30:12.376931570] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Blue Balance (0x0098090f)
[0:30:12.377043570] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Exposure (0x00980911)
[0:30:12.377169528] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Gain, Automatic (0x00980912)
[0:30:12.377311070] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Gain (0x00980913)
[0:30:12.377402862] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Horizontal Flip (0x00980914)
[0:30:12.377554237] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Vertical Flip (0x00980915)
[0:30:12.377625112] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Power Line Frequency (0x00980918)
[0:30:12.377795737] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Auto Exposure (0x009a0901)
[0:30:12.377882570] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Vertical Blanking (0x009e0901)
[0:30:12.377991153] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Horizontal Blanking (0x009e0902)
[0:30:12.378104403] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Link Frequency (0x009f0901)
[0:30:12.378370445] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Pixel Rate (0x009f0902)
[0:30:12.383042362] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Test Pattern (0x009f0903)
[0:30:12.383534903] [5818] DEBUG CameraSensor camera_sensor.cpp:197 'ov5640 3-004c': Optional V4L2 control 0x009a0923 not supported
[0:30:12.383600653] [5818]  WARN CameraSensor camera_sensor.cpp:212 'ov5640 3-004c': Recommended V4L2 control 0x009a0922 not supported
[0:30:12.383660695] [5818]  WARN CameraSensor camera_sensor.cpp:264 'ov5640 3-004c': The sensor kernel driver needs to be fixed
[0:30:12.383706862] [5818]  WARN CameraSensor camera_sensor.cpp:266 'ov5640 3-004c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[0:30:12.385222403] [5818] DEBUG CameraSensor camera_sensor.cpp:363 'ov5640 3-004c': Test pattern mode 2 ignored
[0:30:12.385299862] [5818] DEBUG CameraSensor camera_sensor.cpp:363 'ov5640 3-004c': Test pattern mode 3 ignored
[0:30:12.385572320] [5818] DEBUG CameraSensor camera_sensor.cpp:363 'ov5640 3-004c': Test pattern mode 4 ignored
[0:30:12.385622653] [5818]  WARN CameraSensor camera_sensor.cpp:411 'ov5640 3-004c': Failed to retrieve the camera location
[0:30:12.385686278] [5818] DEBUG CameraSensor camera_sensor.cpp:607 'ov5640 3-004c': Apply test pattern mode 0
[0:30:12.385790653] [5818] DEBUG SimplePipeline simple.cpp:430 Found pipeline: [ov5640 3-004c|0] -> [0|sun6i-csi]
[0:30:12.957091570] [5818] DEBUG V4L2 v4l2_videodevice.cpp:632 /dev/video2[14:cap]: Opened device platform:csi: sun6i-video: sun6i-csi
[0:30:12.957364320] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Exposure (0x00980911)
[0:30:12.957471654] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Horizontal Flip (0x00980914)
[0:30:12.957532195] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Vertical Flip (0x00980915)
[0:30:12.957593945] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Auto Exposure (0x009a0901)
[0:30:12.957665070] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Auto Exposure, Bias (0x009a0913)
[0:30:12.957756529] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Vertical Blanking (0x009e0901)
[0:30:12.957809362] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Horizontal Blanking (0x009e0902)
[0:30:12.957869820] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Analogue Gain (0x009e0903)
[0:30:12.957928695] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Pixel Rate (0x009f0902)
[0:30:12.957981362] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Test Pattern (0x009f0903)
[0:30:12.958084945] [5818] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Digital Gain (0x009f0905)
[0:30:12.958273195] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Contrast (0x00980901)
[0:30:12.958343945] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Saturation (0x00980902)
[0:30:12.958428612] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Hue (0x00980903)
[0:30:12.958485362] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: White Balance, Automatic (0x0098090c)
[0:30:12.958537112] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Red Balance (0x0098090e)
[0:30:12.958588195] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Blue Balance (0x0098090f)
[0:30:12.958637820] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Exposure (0x00980911)
[0:30:12.958694320] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Gain, Automatic (0x00980912)
[0:30:12.958745570] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Gain (0x00980913)
[0:30:12.958795945] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Horizontal Flip (0x00980914)
[0:30:12.958846904] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Vertical Flip (0x00980915)
[0:30:12.958897654] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Power Line Frequency (0x00980918)
[0:30:12.958988987] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Auto Exposure (0x009a0901)
[0:30:12.959054237] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Vertical Blanking (0x009e0901)
[0:30:12.959106695] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Horizontal Blanking (0x009e0902)
[0:30:12.959162237] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Link Frequency (0x009f0901)
[0:30:12.959283612] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Pixel Rate (0x009f0902)
[0:30:12.959345404] [5818] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Test Pattern (0x009f0903)
[0:30:12.962226404] [5818] DEBUG MediaDevice media_device.cpp:826 /dev/media1[sun6i-csi]: ov5640 3-004c[0] -> sun6i-csi[0]: 0
[0:30:13.161117695] [5818] DEBUG MediaDevice media_device.cpp:826 /dev/media1[sun6i-csi]: gc2145 3-003c[0] -> sun6i-csi[0]: 1
[0:30:13.161509654] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-RGB565_2X8_LE
[0:30:13.161635029] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ RGBP ]
[0:30:13.161876279] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-UYVY8_2X8
[0:30:13.161947029] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ UYVY ]
[0:30:13.162154820] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-VYUY8_2X8
[0:30:13.162214570] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ VYUY ]
[0:30:13.162414945] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-YUYV8_2X8
[0:30:13.162473695] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ YUYV ]
[0:30:13.162671945] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-YVYU8_2X8
[0:30:13.162728570] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ YVYU ]
[0:30:13.162928945] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-SBGGR8_1X8
[0:30:13.163025404] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ BA81 ]
[0:30:13.268170612] [5818] DEBUG MediaDevice media_device.cpp:826 /dev/media1[sun6i-csi]: gc2145 3-003c[0] -> sun6i-csi[0]: 0
[0:30:13.856542237] [5818] DEBUG MediaDevice media_device.cpp:826 /dev/media1[sun6i-csi]: ov5640 3-004c[0] -> sun6i-csi[0]: 1
[0:30:13.857012154] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-RGB565_2X8_BE
[0:30:13.857130904] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ RGBR ]
[0:30:13.857425696] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-RGB565_2X8_BE
[0:30:13.857501612] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ RGBR ]
[0:30:13.857773571] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-RGB565_2X8_BE
[0:30:13.857837571] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ RGBR ]
[0:30:13.858103612] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-RGB565_2X8_BE
[0:30:13.858165737] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ RGBR ]
[0:30:13.858426237] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-RGB565_2X8_BE
[0:30:13.858488154] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ RGBR ]
[0:30:13.858752696] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-RGB565_2X8_BE
[0:30:13.858815196] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ RGBR ]
[0:30:13.859076987] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-RGB565_2X8_BE
[0:30:13.859138487] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ RGBR ]
[0:30:13.859400946] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-RGB565_2X8_BE
[0:30:13.859462987] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ RGBR ]
[0:30:13.859726696] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-RGB565_2X8_BE
[0:30:13.859789237] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ RGBR ]
[0:30:13.860105779] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-RGB565_2X8_BE
[0:30:13.860174987] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ RGBR ]
[0:30:13.860450446] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-RGB565_2X8_LE
[0:30:13.860513404] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ RGBP ]
[0:30:13.860777071] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-RGB565_2X8_LE
[0:30:13.860839862] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ RGBP ]
[0:30:13.861100904] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-RGB565_2X8_LE
[0:30:13.861162696] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ RGBP ]
[0:30:13.861425571] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-RGB565_2X8_LE
[0:30:13.861486154] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ RGBP ]
[0:30:13.861748654] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-RGB565_2X8_LE
[0:30:13.861808612] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ RGBP ]
[0:30:13.862069404] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-RGB565_2X8_LE
[0:30:13.862132196] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ RGBP ]
[0:30:13.862393779] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-RGB565_2X8_LE
[0:30:13.862454571] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ RGBP ]
[0:30:13.862757779] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-RGB565_2X8_LE
[0:30:13.862821987] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ RGBP ]
[0:30:13.863084779] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-RGB565_2X8_LE
[0:30:13.863151029] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ RGBP ]
[0:30:13.863415279] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-RGB565_2X8_LE
[0:30:13.863477737] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ RGBP ]
[0:30:13.863747737] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-UYVY8_2X8
[0:30:13.863811446] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ UYVY ]
[0:30:13.864112196] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-UYVY8_2X8
[0:30:13.864184904] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ UYVY ]
[0:30:13.864453029] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-UYVY8_2X8
[0:30:13.864516112] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ UYVY ]
[0:30:13.864779279] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-UYVY8_2X8
[0:30:13.864838529] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ UYVY ]
[0:30:13.865098612] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-UYVY8_2X8
[0:30:13.865159487] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ UYVY ]
[0:30:13.865418904] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-UYVY8_2X8
[0:30:13.865479321] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ UYVY ]
[0:30:13.865739737] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-UYVY8_2X8
[0:30:13.865798196] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ UYVY ]
[0:30:13.866056946] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-UYVY8_2X8
[0:30:13.866117779] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ UYVY ]
[0:30:13.866377737] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-UYVY8_2X8
[0:30:13.866441821] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ UYVY ]
[0:30:13.866706029] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-UYVY8_2X8
[0:30:13.866766029] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ UYVY ]
[0:30:13.867033821] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-YUYV8_2X8
[0:30:13.867096237] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ YUYV ]
[0:30:13.867357571] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-YUYV8_2X8
[0:30:13.867417821] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ YUYV ]
[0:30:13.867678196] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-YUYV8_2X8
[0:30:13.867737779] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ YUYV ]
[0:30:13.868069612] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-YUYV8_2X8
[0:30:13.868141196] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ YUYV ]
[0:30:13.868399904] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-YUYV8_2X8
[0:30:13.868457779] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ YUYV ]
[0:30:13.868712487] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-YUYV8_2X8
[0:30:13.868768862] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ YUYV ]
[0:30:13.869022362] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-YUYV8_2X8
[0:30:13.869080112] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ YUYV ]
[0:30:13.869332154] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-YUYV8_2X8
[0:30:13.869388862] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ YUYV ]
[0:30:13.869641654] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-YUYV8_2X8
[0:30:13.869697321] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ YUYV ]
[0:30:13.869949821] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-YUYV8_2X8
[0:30:13.870007404] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ YUYV ]
[0:30:13.870267821] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SBGGR8_1X8
[0:30:13.870327446] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ BA81 ]
[0:30:13.870583237] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SBGGR8_1X8
[0:30:13.870639446] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ BA81 ]
[0:30:13.870892362] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SBGGR8_1X8
[0:30:13.870950529] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ BA81 ]
[0:30:13.871209779] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SGRBG8_1X8
[0:30:13.871267154] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ GRBG ]
[0:30:13.871520321] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SGRBG8_1X8
[0:30:13.871576571] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ GRBG ]
[0:30:13.871828821] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SGRBG8_1X8
[0:30:13.871886862] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ GRBG ]
[0:30:13.872186029] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SGBRG8_1X8
[0:30:13.872258071] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ GBRG ]
[0:30:13.872522112] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SGBRG8_1X8
[0:30:13.872584821] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ GBRG ]
[0:30:13.872847487] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SGBRG8_1X8
[0:30:13.872908862] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ GBRG ]
[0:30:13.873174404] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SRGGB8_1X8
[0:30:13.873236446] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ RGGB ]
[0:30:13.873500321] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SRGGB8_1X8
[0:30:13.873560071] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ RGGB ]
[0:30:13.873819654] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SRGGB8_1X8
[0:30:13.873879821] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ RGGB ]
[0:30:13.874145904] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-0x4001
[0:30:13.874210821] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ JPEG ]
[0:30:13.874469321] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-0x4001
[0:30:13.874530237] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ JPEG ]
[0:30:13.874790446] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-0x4001
[0:30:13.874851029] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ JPEG ]
[0:30:13.875112946] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-0x4001
[0:30:13.875173612] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ JPEG ]
[0:30:13.875432362] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-0x4001
[0:30:13.875492696] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ JPEG ]
[0:30:13.875751862] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-0x4001
[0:30:13.875812946] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ JPEG ]
[0:30:13.876105112] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-0x4001
[0:30:13.876171112] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ JPEG ]
[0:30:13.876433779] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-0x4001
[0:30:13.876496196] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ JPEG ]
[0:30:13.876759071] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-0x4001
[0:30:13.876822696] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ JPEG ]
[0:30:13.877082654] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-0x4001
[0:30:13.877142696] [5818] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ JPEG ]
[0:30:13.877279321] [5818] DEBUG Camera camera_manager.cpp:161 Pipeline handler "SimplePipelineHandler" matched
[0:30:13.877340779] [5818] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerUVC'
[0:30:13.877385404] [5818] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerVimc'
[0:30:20.816494116] [5814] DEBUG SimplePipeline simple.cpp:808 Largest stream size is 1280x720
[0:30:20.816725616] [5814] DEBUG SimplePipeline simple.cpp:860 Picked 1280x720-SBGGR8_1X8 -> 1280x720-SBGGR8 for max stream size 1280x720
[0:30:20.822470949] [5814] DEBUG Camera camera.cpp:970 streams configuration: (0) 1280x720-SBGGR8
[0:30:20.822682657] [5814] DEBUG SimplePipeline simple.cpp:808 Largest stream size is 1280x720
[0:30:20.822787574] [5814] DEBUG SimplePipeline simple.cpp:860 Picked 1280x720-SBGGR8_1X8 -> 1280x720-SBGGR8 for max stream size 1280x720
[0:30:20.823001657] [5814] DEBUG SimplePipeline simple.cpp:808 Largest stream size is 1280x720
[0:30:20.823097407] [5814] DEBUG SimplePipeline simple.cpp:860 Picked 1280x720-SBGGR8_1X8 -> 1280x720-SBGGR8 for max stream size 1280x720
[0:30:20.823264241] [5814]  INFO Camera camera.cpp:1029 configuring streams: (0) 1280x720-SBGGR8
[0:30:20.824233282] [5818] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SBGGR8_1X8
Failed to set viewfinder format
^CExiting
rafael2k commented 2 years ago

Two sample pictures with qcam (and gles driver): https://www.abradig.org.br/maemo-crazyness/test.jpg https://www.abradig.org.br/maemo-crazyness/test1.jpg

kbingham commented 2 years ago

Thanks, ok - so interesting - the simple pipeline handler is preferring RAW formats over the YUV formats (which would be much better for your usage already).

The reason it works with the GLES back end is because we have a (very basic) debayering shader to allow displaying RAW bayer formats (which is what is being configured).

Try experimenting with forcing the pixelformat:

qcam -c1 -s pixelformat=YUYV or qcam -c1 -s pixelformat=RGB565

kbingham commented 2 years ago

If those formats work well, we should probably try to encourage the simple pipeline handler to have preferences on which format gets selected when there is no ISP ;-)

kbingham commented 2 years ago

(As well as have better negotiation between cam/qcam and the default format selection)

rafael2k commented 2 years ago

Got worse. Garbled image. qcam -spixelformat=YUYV,width=1280,height=720

[2:52:05.862958838] [6948]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[2:52:05.869030755] [6952]  WARN CameraSensor camera_sensor.cpp:212 'gc2145 3-003c': Recommended V4L2 control 0x009a0922 not supported
[2:52:05.869151838] [6952] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 2 on pad 0: Inappropriate ioctl for device
[2:52:05.869531463] [6952]  WARN CameraSensor camera_sensor.cpp:239 'gc2145 3-003c': The PixelArraySize property has been defaulted to 1600x1200
[2:52:05.869583838] [6952] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 1 on pad 0: Inappropriate ioctl for device
[2:52:05.869651755] [6952]  WARN CameraSensor camera_sensor.cpp:250 'gc2145 3-003c': The PixelArrayActiveAreas property has been defaulted to (0, 0)/1600x1200
[2:52:05.869721171] [6952] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 0 on pad 0: Inappropriate ioctl for device
[2:52:05.869765463] [6952]  WARN CameraSensor camera_sensor.cpp:258 'gc2145 3-003c': Failed to retrieve the sensor crop rectangle
[2:52:05.869803630] [6952]  WARN CameraSensor camera_sensor.cpp:264 'gc2145 3-003c': The sensor kernel driver needs to be fixed
[2:52:05.869841463] [6952]  WARN CameraSensor camera_sensor.cpp:266 'gc2145 3-003c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[2:52:05.871242171] [6952]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'gc2145'
[2:52:05.871306546] [6952]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[2:52:05.871349046] [6952]  WARN CameraSensor camera_sensor.cpp:411 'gc2145 3-003c': Failed to retrieve the camera location
[2:52:05.872554380] [6952]  WARN CameraSensor camera_sensor.cpp:212 'ov5640 3-004c': Recommended V4L2 control 0x009a0922 not supported
[2:52:05.872633755] [6952]  WARN CameraSensor camera_sensor.cpp:264 'ov5640 3-004c': The sensor kernel driver needs to be fixed
[2:52:05.872673421] [6952]  WARN CameraSensor camera_sensor.cpp:266 'ov5640 3-004c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[2:52:05.873909546] [6952]  WARN CameraSensor camera_sensor.cpp:411 'ov5640 3-004c': Failed to retrieve the camera location
[2:52:16.766566635] [6948]  INFO Camera camera.cpp:1029 configuring streams: (0) 1280x720-YUYV
Using software format conversion from 1448695129
^CExiting
user@devuan-pinephone:~$ LIBCAMERA_LOG_LEVELS=*:0 qcam -spixelformat=YUYV,width=1280,height=720 -platform xcb -style=fusion
[2:52:49.759975109] [6960] DEBUG IPAModule ipa_module.cpp:320 ipa_ipu3.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_ipu3.so is not signed
[2:52:49.760378901] [6960] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_ipu3.so'
[2:52:49.760587776] [6960] DEBUG IPAModule ipa_module.cpp:320 ipa_rkisp1.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_rkisp1.so is not signed
[2:52:49.760910067] [6960] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_rkisp1.so'
[2:52:49.769828442] [6960] DEBUG IPAModule ipa_module.cpp:320 ipa_rpi.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so is not signed
[2:52:49.770048734] [6960] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so'
[2:52:49.770263526] [6960] DEBUG IPAModule ipa_module.cpp:320 ipa_vimc.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_vimc.so is not signed
[2:52:49.770343984] [6960] DEBUG IPAManager ipa_manager.cpp:240 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_vimc.so'
[2:52:49.770494276] [6960]  INFO Camera camera_manager.cpp:293 libcamera v0.0.0
[2:52:49.770897109] [6964] DEBUG Camera camera_manager.cpp:106 Starting camera manager
[2:52:49.774448859] [6964] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "cedrus" created from /dev/media0
[2:52:49.774580776] [6964] DEBUG DeviceEnumerator device_enumerator_udev.cpp:95 Defer media device /dev/media0 due to 1 missing dependencies
[2:52:49.775099692] [6964] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media0 found
[2:52:49.775292817] [6964] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media0: cedrus
[2:52:49.775830026] [6964] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "sun6i-csi" created from /dev/media1
[2:52:49.780316651] [6964] DEBUG DeviceEnumerator device_enumerator_udev.cpp:95 Defer media device /dev/media1 due to 1 missing dependencies
[2:52:49.780748359] [6964] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media1 found
[2:52:49.780887567] [6964] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media1: sun6i-csi
[2:52:49.781388151] [6964] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerIPU3'
[2:52:49.781499567] [6964] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerRPi'
[2:52:49.781637317] [6964] DEBUG RPI raspberrypi.cpp:1153 Unable to acquire a Unicam instance
[2:52:49.781707276] [6964] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerRkISP1'
[2:52:49.781870442] [6964] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'SimplePipelineHandler'
[2:52:49.781988609] [6964] DEBUG DeviceEnumerator device_enumerator.cpp:312 Successful match for media device "sun6i-csi"
[2:52:49.782330734] [6964] DEBUG SimplePipeline simple.cpp:383 Found capture device sun6i-csi
[2:52:49.782542859] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Exposure (0x00980911)
[2:52:49.782712401] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Horizontal Flip (0x00980914)
[2:52:49.782801609] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Vertical Flip (0x00980915)
[2:52:49.782870526] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Auto Exposure (0x009a0901)
[2:52:49.783078109] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Auto Exposure, Bias (0x009a0913)
[2:52:49.783218942] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Vertical Blanking (0x009e0901)
[2:52:49.783342276] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Horizontal Blanking (0x009e0902)
[2:52:49.783430776] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Analogue Gain (0x009e0903)
[2:52:49.783491817] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Pixel Rate (0x009f0902)
[2:52:49.783640692] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Test Pattern (0x009f0903)
[2:52:49.783877151] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Digital Gain (0x009f0905)
[2:52:49.784194067] [6964] DEBUG CameraSensor camera_sensor.cpp:197 'gc2145 3-003c': Optional V4L2 control 0x009a0923 not supported
[2:52:49.784254192] [6964]  WARN CameraSensor camera_sensor.cpp:212 'gc2145 3-003c': Recommended V4L2 control 0x009a0922 not supported
[2:52:49.784300067] [6964] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 2 on pad 0: Inappropriate ioctl for device
[2:52:49.784907734] [6964]  WARN CameraSensor camera_sensor.cpp:239 'gc2145 3-003c': The PixelArraySize property has been defaulted to 1600x1200
[2:52:49.784961734] [6964] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 1 on pad 0: Inappropriate ioctl for device
[2:52:49.785014484] [6964]  WARN CameraSensor camera_sensor.cpp:250 'gc2145 3-003c': The PixelArrayActiveAreas property has been defaulted to (0, 0)/1600x1200
[2:52:49.785155692] [6964] ERROR V4L2 v4l2_subdevice.cpp:318 'gc2145 3-003c': Unable to get rectangle 0 on pad 0: Inappropriate ioctl for device
[2:52:49.785271734] [6964]  WARN CameraSensor camera_sensor.cpp:258 'gc2145 3-003c': Failed to retrieve the sensor crop rectangle
[2:52:49.785310776] [6964]  WARN CameraSensor camera_sensor.cpp:264 'gc2145 3-003c': The sensor kernel driver needs to be fixed
[2:52:49.785497359] [6964]  WARN CameraSensor camera_sensor.cpp:266 'gc2145 3-003c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[2:52:49.787017526] [6964]  WARN CameraSensorProperties camera_sensor_properties.cpp:174 No static properties available for 'gc2145'
[2:52:49.787081734] [6964]  WARN CameraSensorProperties camera_sensor_properties.cpp:176 Please consider updating the camera sensor properties database
[2:52:49.790544984] [6964]  WARN CameraSensor camera_sensor.cpp:411 'gc2145 3-003c': Failed to retrieve the camera location
[2:52:49.793562109] [6964] DEBUG SimplePipeline simple.cpp:430 Found pipeline: [gc2145 3-003c|0] -> [0|sun6i-csi]
[2:52:49.793680026] [6964] DEBUG SimplePipeline simple.cpp:383 Found capture device sun6i-csi
[2:52:49.793887484] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Contrast (0x00980901)
[2:52:49.794098067] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Saturation (0x00980902)
[2:52:49.794164151] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Hue (0x00980903)
[2:52:49.794226192] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: White Balance, Automatic (0x0098090c)
[2:52:49.794286942] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Red Balance (0x0098090e)
[2:52:49.794347776] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Blue Balance (0x0098090f)
[2:52:49.794416567] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Exposure (0x00980911)
[2:52:49.794485984] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Gain, Automatic (0x00980912)
[2:52:49.794590234] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Gain (0x00980913)
[2:52:49.794652984] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Horizontal Flip (0x00980914)
[2:52:49.794741984] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Vertical Flip (0x00980915)
[2:52:49.794800692] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Power Line Frequency (0x00980918)
[2:52:49.794889776] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Auto Exposure (0x009a0901)
[2:52:49.794962192] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Vertical Blanking (0x009e0901)
[2:52:49.795021692] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Horizontal Blanking (0x009e0902)
[2:52:49.795085859] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Link Frequency (0x009f0901)
[2:52:49.795223401] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Pixel Rate (0x009f0902)
[2:52:49.795308192] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Test Pattern (0x009f0903)
[2:52:49.795724276] [6964] DEBUG CameraSensor camera_sensor.cpp:197 'ov5640 3-004c': Optional V4L2 control 0x009a0923 not supported
[2:52:49.795777984] [6964]  WARN CameraSensor camera_sensor.cpp:212 'ov5640 3-004c': Recommended V4L2 control 0x009a0922 not supported
[2:52:49.795833234] [6964]  WARN CameraSensor camera_sensor.cpp:264 'ov5640 3-004c': The sensor kernel driver needs to be fixed
[2:52:49.795876484] [6964]  WARN CameraSensor camera_sensor.cpp:266 'ov5640 3-004c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[2:52:49.797337817] [6964] DEBUG CameraSensor camera_sensor.cpp:363 'ov5640 3-004c': Test pattern mode 2 ignored
[2:52:49.797413859] [6964] DEBUG CameraSensor camera_sensor.cpp:363 'ov5640 3-004c': Test pattern mode 3 ignored
[2:52:49.797454526] [6964] DEBUG CameraSensor camera_sensor.cpp:363 'ov5640 3-004c': Test pattern mode 4 ignored
[2:52:49.797493526] [6964]  WARN CameraSensor camera_sensor.cpp:411 'ov5640 3-004c': Failed to retrieve the camera location
[2:52:49.797543567] [6964] DEBUG CameraSensor camera_sensor.cpp:607 'ov5640 3-004c': Apply test pattern mode 0
[2:52:49.797634984] [6964] DEBUG SimplePipeline simple.cpp:430 Found pipeline: [ov5640 3-004c|0] -> [0|sun6i-csi]
[2:52:50.356764401] [6964] DEBUG V4L2 v4l2_videodevice.cpp:632 /dev/video2[14:cap]: Opened device platform:csi: sun6i-video: sun6i-csi
[2:52:50.357071526] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Exposure (0x00980911)
[2:52:50.357184026] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Horizontal Flip (0x00980914)
[2:52:50.357240943] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Vertical Flip (0x00980915)
[2:52:50.357304068] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Auto Exposure (0x009a0901)
[2:52:50.357372318] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Auto Exposure, Bias (0x009a0913)
[2:52:50.357461318] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Vertical Blanking (0x009e0901)
[2:52:50.357514151] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Horizontal Blanking (0x009e0902)
[2:52:50.357574109] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Analogue Gain (0x009e0903)
[2:52:50.357632609] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Pixel Rate (0x009f0902)
[2:52:50.357683984] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Test Pattern (0x009f0903)
[2:52:50.357785901] [6964] DEBUG V4L2 v4l2_device.cpp:623 'gc2145 3-003c': Control: Digital Gain (0x009f0905)
[2:52:50.357965859] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Contrast (0x00980901)
[2:52:50.358035651] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Saturation (0x00980902)
[2:52:50.358123234] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Hue (0x00980903)
[2:52:50.358180484] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: White Balance, Automatic (0x0098090c)
[2:52:50.358232193] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Red Balance (0x0098090e)
[2:52:50.358282818] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Blue Balance (0x0098090f)
[2:52:50.358336318] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Exposure (0x00980911)
[2:52:50.358391901] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Gain, Automatic (0x00980912)
[2:52:50.358442901] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Gain (0x00980913)
[2:52:50.358493318] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Horizontal Flip (0x00980914)
[2:52:50.358543234] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Vertical Flip (0x00980915)
[2:52:50.358594234] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Power Line Frequency (0x00980918)
[2:52:50.358688984] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Auto Exposure (0x009a0901)
[2:52:50.358755234] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Vertical Blanking (0x009e0901)
[2:52:50.358807193] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Horizontal Blanking (0x009e0902)
[2:52:50.358862734] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Link Frequency (0x009f0901)
[2:52:50.358982609] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Pixel Rate (0x009f0902)
[2:52:50.359044443] [6964] DEBUG V4L2 v4l2_device.cpp:623 'ov5640 3-004c': Control: Test Pattern (0x009f0903)
[2:52:50.362212151] [6964] DEBUG MediaDevice media_device.cpp:826 /dev/media1[sun6i-csi]: ov5640 3-004c[0] -> sun6i-csi[0]: 0
[2:52:50.556461818] [6964] DEBUG MediaDevice media_device.cpp:826 /dev/media1[sun6i-csi]: gc2145 3-003c[0] -> sun6i-csi[0]: 1
[2:52:50.556864234] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-RGB565_2X8_LE
[2:52:50.556993193] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ RGBP ]
[2:52:50.557247193] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-UYVY8_2X8
[2:52:50.557313526] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ UYVY ]
[2:52:50.557529693] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-VYUY8_2X8
[2:52:50.557597484] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ VYUY ]
[2:52:50.557801568] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-YUYV8_2X8
[2:52:50.557861734] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ YUYV ]
[2:52:50.558059359] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-YVYU8_2X8
[2:52:50.558118734] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ YVYU ]
[2:52:50.558321026] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'gc2145 3-003c':0 -> 'sun6i-csi':0 configured with format 1600x1200-SBGGR8_1X8
[2:52:50.558416776] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1600x1200 in pixel formats [ BA81 ]
[2:52:50.664152901] [6964] DEBUG MediaDevice media_device.cpp:826 /dev/media1[sun6i-csi]: gc2145 3-003c[0] -> sun6i-csi[0]: 0
[2:52:51.245998735] [6964] DEBUG MediaDevice media_device.cpp:826 /dev/media1[sun6i-csi]: ov5640 3-004c[0] -> sun6i-csi[0]: 1
[2:52:51.246468401] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-RGB565_2X8_BE
[2:52:51.246591985] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ RGBR ]
[2:52:51.246891860] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-RGB565_2X8_BE
[2:52:51.246967526] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ RGBR ]
[2:52:51.247244235] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-RGB565_2X8_BE
[2:52:51.247315276] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ RGBR ]
[2:52:51.247582151] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-RGB565_2X8_BE
[2:52:51.247645443] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ RGBR ]
[2:52:51.247909610] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-RGB565_2X8_BE
[2:52:51.247978526] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ RGBR ]
[2:52:51.248307610] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-RGB565_2X8_BE
[2:52:51.248383693] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ RGBR ]
[2:52:51.248646443] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-RGB565_2X8_BE
[2:52:51.248710193] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ RGBR ]
[2:52:51.248966026] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-RGB565_2X8_BE
[2:52:51.249024235] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ RGBR ]
[2:52:51.249278526] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-RGB565_2X8_BE
[2:52:51.249335193] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ RGBR ]
[2:52:51.249605151] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-RGB565_2X8_BE
[2:52:51.249663943] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ RGBR ]
[2:52:51.249926651] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-RGB565_2X8_LE
[2:52:51.249985693] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ RGBP ]
[2:52:51.250241193] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-RGB565_2X8_LE
[2:52:51.250297985] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ RGBP ]
[2:52:51.250550860] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-RGB565_2X8_LE
[2:52:51.250607360] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ RGBP ]
[2:52:51.250860568] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-RGB565_2X8_LE
[2:52:51.250918276] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ RGBP ]
[2:52:51.251170776] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-RGB565_2X8_LE
[2:52:51.251226693] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ RGBP ]
[2:52:51.251479693] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-RGB565_2X8_LE
[2:52:51.251537735] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ RGBP ]
[2:52:51.251792860] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-RGB565_2X8_LE
[2:52:51.251850735] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ RGBP ]
[2:52:51.252184401] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-RGB565_2X8_LE
[2:52:51.252249026] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ RGBP ]
[2:52:51.252505985] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-RGB565_2X8_LE
[2:52:51.252564610] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ RGBP ]
[2:52:51.252819110] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-RGB565_2X8_LE
[2:52:51.252875693] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ RGBP ]
[2:52:51.253134485] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-UYVY8_2X8
[2:52:51.253194610] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ UYVY ]
[2:52:51.253450026] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-UYVY8_2X8
[2:52:51.253506943] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ UYVY ]
[2:52:51.253760526] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-UYVY8_2X8
[2:52:51.253818235] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ UYVY ]
[2:52:51.254071735] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-UYVY8_2X8
[2:52:51.254127818] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ UYVY ]
[2:52:51.254381818] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-UYVY8_2X8
[2:52:51.254438151] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ UYVY ]
[2:52:51.254692360] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-UYVY8_2X8
[2:52:51.254748860] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ UYVY ]
[2:52:51.255002068] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-UYVY8_2X8
[2:52:51.255058318] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ UYVY ]
[2:52:51.255312318] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-UYVY8_2X8
[2:52:51.255367901] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ UYVY ]
[2:52:51.255619985] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-UYVY8_2X8
[2:52:51.255676151] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ UYVY ]
[2:52:51.255928735] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-UYVY8_2X8
[2:52:51.255983735] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ UYVY ]
[2:52:51.256283318] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-YUYV8_2X8
[2:52:51.256344610] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ YUYV ]
[2:52:51.256599651] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-YUYV8_2X8
[2:52:51.256657318] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ YUYV ]
[2:52:51.256910651] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-YUYV8_2X8
[2:52:51.256968985] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ YUYV ]
[2:52:51.257257318] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-YUYV8_2X8
[2:52:51.257318860] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ YUYV ]
[2:52:51.257574735] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-YUYV8_2X8
[2:52:51.257632735] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ YUYV ]
[2:52:51.257885360] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-YUYV8_2X8
[2:52:51.257941776] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ YUYV ]
[2:52:51.258196776] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-YUYV8_2X8
[2:52:51.258252651] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ YUYV ]
[2:52:51.258504068] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-YUYV8_2X8
[2:52:51.258560193] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ YUYV ]
[2:52:51.258812401] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-YUYV8_2X8
[2:52:51.258867651] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ YUYV ]
[2:52:51.259121276] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-YUYV8_2X8
[2:52:51.259179068] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ YUYV ]
[2:52:51.259437651] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SBGGR8_1X8
[2:52:51.259497318] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ BA81 ]
[2:52:51.259752568] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SBGGR8_1X8
[2:52:51.259809693] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ BA81 ]
[2:52:51.260092151] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SBGGR8_1X8
[2:52:51.260156110] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ BA81 ]
[2:52:51.260421401] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SGRBG8_1X8
[2:52:51.260480110] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ GRBG ]
[2:52:51.260735901] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SGRBG8_1X8
[2:52:51.260792360] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ GRBG ]
[2:52:51.261048026] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SGRBG8_1X8
[2:52:51.261103776] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ GRBG ]
[2:52:51.261358818] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SGBRG8_1X8
[2:52:51.261417735] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ GBRG ]
[2:52:51.261670526] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SGBRG8_1X8
[2:52:51.261726901] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ GBRG ]
[2:52:51.261981735] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SGBRG8_1X8
[2:52:51.262038401] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ GBRG ]
[2:52:51.262294860] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SRGGB8_1X8
[2:52:51.262354818] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ RGGB ]
[2:52:51.262609693] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SRGGB8_1X8
[2:52:51.262667610] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ RGGB ]
[2:52:51.262922401] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SRGGB8_1X8
[2:52:51.262977360] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ RGGB ]
[2:52:51.263235193] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-0x4001
[2:52:51.263295151] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 160x120 in pixel formats [ JPEG ]
[2:52:51.263548276] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-0x4001
[2:52:51.263603693] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 176x144 in pixel formats [ JPEG ]
[2:52:51.263857818] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-0x4001
[2:52:51.263915068] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 320x240 in pixel formats [ JPEG ]
[2:52:51.264203735] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-0x4001
[2:52:51.264271235] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 640x480 in pixel formats [ JPEG ]
[2:52:51.264529610] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-0x4001
[2:52:51.264588276] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x480 in pixel formats [ JPEG ]
[2:52:51.264841568] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-0x4001
[2:52:51.264897943] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 720x576 in pixel formats [ JPEG ]
[2:52:51.265151360] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-0x4001
[2:52:51.265207985] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1024x768 in pixel formats [ JPEG ]
[2:52:51.265459818] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-0x4001
[2:52:51.265517193] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1280x720 in pixel formats [ JPEG ]
[2:52:51.265772401] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-0x4001
[2:52:51.265829943] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 1920x1080 in pixel formats [ JPEG ]
[2:52:51.266084360] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-0x4001
[2:52:51.266141568] [6964] DEBUG SimplePipeline simple.cpp:539 Adding configuration for 2592x1944 in pixel formats [ JPEG ]
[2:52:51.266276901] [6964] DEBUG Camera camera_manager.cpp:161 Pipeline handler "SimplePipelineHandler" matched
[2:52:51.266336776] [6964] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerUVC'
[2:52:51.266381151] [6964] DEBUG Camera camera_manager.cpp:149 Found registered pipeline handler 'PipelineHandlerVimc'
[2:52:56.198003029] [6960] DEBUG SimplePipeline simple.cpp:808 Largest stream size is 1280x720
[2:52:56.198240029] [6960] DEBUG SimplePipeline simple.cpp:860 Picked 1280x720-SBGGR8_1X8 -> 1280x720-SBGGR8 for max stream size 1280x720
[2:52:56.198480612] [6960] DEBUG Camera camera.cpp:970 streams configuration: (0) 1280x720-SBGGR8
[2:52:56.198658195] [6960] DEBUG SimplePipeline simple.cpp:808 Largest stream size is 1280x720
[2:52:56.198751529] [6960] DEBUG SimplePipeline simple.cpp:860 Picked 1280x720-YUYV8_2X8 -> 1280x720-YUYV for max stream size 1280x720
[2:52:56.198923862] [6960] DEBUG SimplePipeline simple.cpp:808 Largest stream size is 1280x720
[2:52:56.199008320] [6960] DEBUG SimplePipeline simple.cpp:860 Picked 1280x720-YUYV8_2X8 -> 1280x720-YUYV for max stream size 1280x720
[2:52:56.199144570] [6960]  INFO Camera camera.cpp:1029 configuring streams: (0) 1280x720-YUYV
[2:52:56.199995487] [6964] DEBUG SimplePipeline simple.cpp:660 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-YUYV8_2X8
Using software format conversion from 1448695129
[2:52:56.220872987] [6964] DEBUG V4L2 v4l2_videodevice.cpp:1224 /dev/video2[14:cap]: 3 buffers requested.
[2:52:56.223301362] [6964] DEBUG Buffer framebuffer.cpp:340 Buffer is contiguous
[2:52:56.226453862] [6964] DEBUG Buffer framebuffer.cpp:340 Buffer is contiguous
[2:52:56.226557362] [6964] DEBUG Buffer framebuffer.cpp:340 Buffer is contiguous
[2:52:56.226634487] [6964] DEBUG V4L2 v4l2_videodevice.cpp:1224 /dev/video2[14:cap]: 0 buffers requested.
[2:52:56.227175404] [6960] DEBUG Request request.cpp:358 Created request - cookie: 0
[2:52:56.227381862] [6960] DEBUG Request request.cpp:358 Created request - cookie: 0
[2:52:56.227459195] [6960] DEBUG Request request.cpp:358 Created request - cookie: 0
[2:52:56.227550820] [6960] DEBUG Camera camera.cpp:1182 Starting capture
[2:52:56.227730779] [6964] DEBUG V4L2 v4l2_videodevice.cpp:1224 /dev/video2[14:cap]: 3 buffers requested.
[2:52:56.227803862] [6964] DEBUG V4L2 v4l2_videodevice.cpp:1491 /dev/video2[14:cap]: Prepared to import 3 buffers
[2:52:56.234307695] [6964] DEBUG V4L2 v4l2_videodevice.cpp:1655 /dev/video2[14:cap]: Queueing buffer 0
[2:52:56.234646487] [6964] DEBUG V4L2 v4l2_videodevice.cpp:1655 /dev/video2[14:cap]: Queueing buffer 1
[2:52:56.234766445] [6964] DEBUG V4L2 v4l2_videodevice.cpp:1655 /dev/video2[14:cap]: Queueing buffer 2
[2:52:56.309249445] [6964] DEBUG V4L2 v4l2_videodevice.cpp:1726 /dev/video2[14:cap]: Dequeuing buffer 0
[2:52:56.309592487] [6964] DEBUG Request request.cpp:122 Request(0:C:0/1:0)
[2:52:56.342735654] [6964] DEBUG V4L2 v4l2_videodevice.cpp:1726 /dev/video2[14:cap]: Dequeuing buffer 1
[2:52:56.343024320] [6964] DEBUG Request request.cpp:122 Request(1:C:0/1:0)
rafael2k commented 2 years ago

New test files setting YUYV: https://www.abradig.org.br/maemo-crazyness/test2.jpg https://www.abradig.org.br/maemo-crazyness/test3.jpg

kbingham commented 2 years ago

That looks like a stride issue. I've just realised it also says JPEG is supported.

Can you post the same with the RGB565 and JPEG?

qcam -c1 -s pixelformat=RGB565

qcam -c1 -s pixelformat=MJPEG

I should have also already asked for the output from:

cam -c1 -I

kbingham commented 2 years ago

And I see we're also dealing with two cameras on this platform. Perhaps best check both cameras too.

rafael2k commented 2 years ago

For RGB565: [3:04:10.649161100] [7085] INFO Camera camera.cpp:1029 configuring streams: (0) 1280x720-RGB565 [3:04:10.650082059] [7089] ERROR SimplePipeline simple.cpp:1049 Unable to configure capture in 1280x720-RGBP (got 1280x720-RGBR) Failed to configure camera

For MJPEG: Same results as qcam without no argument (same as with SBGGR8 too)

cam -I for both cammeras:

Using camera /base/i2c-csi/rear-camera@4c as cam0
0: 1280x720-SBGGR8
 * Pixelformat: SBGGR8 (1280x720)-(2592x1944)/(+0,+0)
  - 1280x720
  - 1920x1080
  - 2592x1944
 * Pixelformat: RGB565 (160x120)-(2592x1944)/(+0,+0)
  - 160x120
  - 176x144
  - 320x240
  - 640x480
  - 720x480
  - 720x576
  - 1024x768
  - 1280x720
  - 1920x1080
  - 2592x1944
 * Pixelformat: SRGGB8 (1280x720)-(2592x1944)/(+0,+0)
  - 1280x720
  - 1920x1080
  - 2592x1944
 * Pixelformat: SGRBG8 (1280x720)-(2592x1944)/(+0,+0)
  - 1280x720
  - 1920x1080
  - 2592x1944
 * Pixelformat: JPEG (160x120)-(2592x1944)/(+0,+0)
  - 160x120
  - 176x144
  - 320x240
  - 640x480
  - 720x480
  - 720x576
  - 1024x768
  - 1280x720
  - 1920x1080
  - 2592x1944
 * Pixelformat: SGBRG8 (1280x720)-(2592x1944)/(+0,+0)
  - 1280x720
  - 1920x1080
  - 2592x1944
 * Pixelformat: YUYV (160x120)-(2592x1944)/(+0,+0)
  - 160x120
  - 176x144
  - 320x240
  - 640x480
  - 720x480
  - 720x576
  - 1024x768
  - 1280x720
  - 1920x1080
  - 2592x1944
 * Pixelformat: UYVY (160x120)-(2592x1944)/(+0,+0)
  - 160x120
  - 176x144
  - 320x240
  - 640x480
  - 720x480
  - 720x576
  - 1024x768
  - 1280x720
  - 1920x1080
  - 2592x1944

Using camera /base/i2c-csi/front-camera@3c as cam0
0: 1600x1200-SBGGR8
 * Pixelformat: SBGGR8 (1600x1200)-(1600x1200)/(+1,+1)
  - 1600x1200
 * Pixelformat: RGB565 (1600x1200)-(1600x1200)/(+1,+1)
  - 1600x1200
 * Pixelformat: YVYU (1600x1200)-(1600x1200)/(+1,+1)
  - 1600x1200
 * Pixelformat: YUYV (1600x1200)-(1600x1200)/(+1,+1)
  - 1600x1200
 * Pixelformat: VYUY (1600x1200)-(1600x1200)/(+1,+1)
  - 1600x1200
 * Pixelformat: UYVY (1600x1200)-(1600x1200)/(+1,+1)
  - 1600x1200
rafael2k commented 2 years ago

Results among both cameras are similar. But lets focus on the ov5640 camera, which is rear camera, and has a much more mature driver (mainline). Once we get it working fine, I can do all the tests with the front camera. AFAICS, capturing images with "cam" does not suffer from the same problems of capturing with "qcam". Added some info about the commands I'm using here: https://leste.maemo.org/PinePhone#How_to_take_a_picture

kbingham commented 2 years ago

Can you add this script to your path: https://gist.githubusercontent.com/kbingham/34664071fcbcf237fce7f2a55f84e7a8/raw/a30873c44b5b5a6d079e28e02a88014f55538bb9/lcdebug

and then run:

lcdebug -s qcam -c1 -s pixelformat=RGB565

The script will just make it easier to track adding strace and log levels. It should expand to:

LIBCAMERA_LOG_LEVELS='*:0' strace -e ioctl -f -- qcam -c1 -s pixelformat=RGB565

But perhaps given the iterations here already - would it be possible to set up some live / remote debugging? Could we join a video call to go through this in realtime perhaps?

If you can join the IRC/Matrix channel (oftc.net #libcamera, https://matrix.to/#/#_oftc_#libcamera:matrix.org) we can organise getting on a call to figure this out.

rafael2k commented 2 years ago

I'll show up in irc. I'll run the tests you suggest also, later in the day I publish the results.

rafael2k commented 2 years ago

Here the output of lcdebug -s qcam -c "/base/i2c-csi/rear-camera@4c" -s pixelformat=RGB5652 https://www.abradig.org.br/maemo-crazyness/debug.txt

rafael2k commented 2 years ago

Latest tests with YUYV in qcam: https://www.abradig.org.br/maemo-crazyness/test4.jpg Using just cam and -spixelformat=YUYV,width=1280,height=720 (and then converting with ffmpeg): https://www.abradig.org.br/maemo-crazyness/test5.jpg