Accessing the camera from Python
#1
I've been trying to write a Python application for the Pinephone that needs access to the camera.

1. My first iteration was using python-opencv, but that doesn't work out of the box.
The simple first two lines:
```
import cv2
cap = cv2.VideoCapture(0)
```
produce the following error:
```
[ WARN:0@18.736] global ./modules/videoio/src/cap_gstreamer.cpp (2401) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Device '/dev/video0' is not a capture device.
[ WARN:0@18.739] global ./modules/videoio/src/cap_gstreamer.cpp (1356) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0@18.740] global ./modules/videoio/src/cap_gstreamer.cpp (862) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ WARN:0@18.758] global ./modules/videoio/src/cap_v4l.cpp (902) open VIDEOIO(V4L2:/dev/video0): can't open camera by index

```
There is some discussion about this problem in a manjaro forum: https://forum.manjaro.org/t/access-pinep...encv/94593
but there are no conclusive solutions.

I have two possible work-around to this issue:

2. I could build a python library reusing "megapixels" code (https://gitlab.com/postmarketOS/megapixels). By the way, there is a very interesting description of the pinephone camera interface in the README in that repository.

3. Or I could call an external command from my python executable that gets me the actual camera data, for example `ffmpeg` similarly to this blog post: https://blog.brixit.nl/camera-on-the-pinephone/

In my opinion, solution 3 is ugly and probably under-performant, while 2 seems overkill.
There should be a simple way to read the camera data natively from Python.

If anyone can give me a solution or a hint, I would really appreciate it.
  Reply
#2
I don't have solution but does it help you if I tell that with Manjaro you can use camera trough libcamera?

You can also check Martijn blog but some of the details might be out dated
https://blog.brixit.nl/camera-on-the-pinephone/
  Reply
#3
The errors you quoted look like OpenCV's GStreamer backend needs fixing to work with libcamera. It should be using the libcamerasrc, not the v4l2src0.

Try using gst-python, the Python bindings for GStreamer. That gives you more control over the GStreamer pipeline used.
  Reply
#4
I've been learning how to use gstreamer. Whether in C, Python or even directly through the command line, there is an interface kind of like bash pipes that can be used to move data from the different gstreamer plugins.

For example, the following will launch a video test screen:
gst-launch-1.0 videotestsrc ! autovideosink

this other pipeline will access the webcam in my workstation and display it live in a video screen:
GST_V4L2_USE_LIBV4L2=1 gst-launch-1.0 v4l2src ! autovideosink

according to the documentation of the v4l2src plugin (Video For Linux)
https://gstreamer.freedesktop.org/docume...language=c
the environment variable GST_V4L2_USE_LIBV4L2 must be set to 1 in order to use libv4l2

When It comes to the Pinephone I've tried the same command specifying the video device and I had no luck
GST_V4L2_USE_LIBV4L2=1 gst-launch-1.0 -v -m v4l2src device=/dev/video3 ! autovideosink

Setting pipeline to PAUSED ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video3' is not a capture device.
Additional debug info:
../sys/v4l2/v4l2_calls.c(629): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Capabilities: 0x4208000
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...

I know the correct device is /dev/video3 because I've run Martijn Braam's camera.py script (https://git.sr.ht/~martijnbraam/python-p.../camera.py) that takes a picture using v4l2-ctl

I've also tried with video0, video1, and video2. All fail. With video2 the command stucks; if I ctrl+C that breaks v4l2 for the whole system, and so far the only way to fix it is by rebooting. I haven't figured out yet how to restart v4l underlying process, I just can't find a systemd service or v4l2-ctl kind of command to do that.
  Reply
#5
Use the libcamerasrc, not the v4l2src.
  Reply
#6
Thank you for bearing with me.
Now I've tried libcamera, I've got this

mobian@mobian:~$ gst-launch-1.0 -v -m libcamerasrc ! autovideosink
Setting pipeline to PAUSED ...
[0:36:54.893676575] [21598] INFO Camera camera_manager.cpp:299 libcamera v0.0.4
[0:36:54.932195402] [21617] WARN CameraSensor camera_sensor.cpp:245 'ov5640 3-004c': Recommended V4L2 control 0x009a0922 not supported
[0:36:54.932328070] [21617] WARN CameraSensor camera_sensor.cpp:312 'ov5640 3-004c': The sensor kernel driver needs to be fixed
[0:36:54.932374987] [21617] WARN CameraSensor camera_sensor.cpp:314 'ov5640 3-004c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[0:36:54.934093081] [21617] WARN CameraSensor camera_sensor.cpp:460 'ov5640 3-004c': Failed to retrieve the camera location
[0:36:54.935087962] [21617] WARN CameraSensor camera_sensor.cpp:245 'gc2145 3-003c': Recommended V4L2 control 0x009a0922 not supported
[0:36:54.935167005] [21617] ERROR V4L2 v4l2_subdevice.cpp:400 'gc2145 3-003c': Unable to get rectangle 2 on pad 0: Inappropriate ioctl for device
[0:36:54.935248505] [21617] WARN CameraSensor camera_sensor.cpp:287 'gc2145 3-003c': The PixelArraySize property has been defaulted to 1600x1200
[0:36:54.935300422] [21617] ERROR V4L2 v4l2_subdevice.cpp:400 'gc2145 3-003c': Unable to get rectangle 1 on pad 0: Inappropriate ioctl for device
[0:36:54.935353423] [21617] WARN CameraSensor camera_sensor.cpp:298 'gc2145 3-003c': The PixelArrayActiveAreas property has been defaulted to (0, 0)/1600x1200
[0:36:54.935407381] [21617] ERROR V4L2 v4l2_subdevice.cpp:400 'gc2145 3-003c': Unable to get rectangle 0 on pad 0: Inappropriate ioctl for device
[0:36:54.935459423] [21617] WARN CameraSensor camera_sensor.cpp:306 'gc2145 3-003c': Failed to retrieve the sensor crop rectangle
[0:36:54.935503548] [21617] WARN CameraSensor camera_sensor.cpp:312 'gc2145 3-003c': The sensor kernel driver needs to be fixed
[0:36:54.935546049] [21617] WARN CameraSensor camera_sensor.cpp:314 'gc2145 3-003c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[0:36:54.941421753] [21617] WARN CameraSensorProperties camera_sensor_properties.cpp:231 No static properties available for 'gc2145'
[0:36:54.941519962] [21617] WARN CameraSensorProperties camera_sensor_properties.cpp:233 Please consider updating the camera sensor properties database
[0:36:54.941570045] [21617] WARN CameraSensor camera_sensor.cpp:460 'gc2145 3-003c': Failed to retrieve the camera location
[0:36:54.941667629] [21617] ERROR V4L2 v4l2_device.cpp:352 'gc2145 3-003c': Unable to set controls: Permission denied
[0:36:54.941847214] [21617] ERROR SimplePipeline simple.cpp:1433 No valid pipeline for sensor 'gc2145 3-003c', skipping
[0:36:54.943567558] [21617] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
...
[0:36:54.980220749] [21617] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[0:36:54.980288416] [21617] ERROR SimplePipeline simple.cpp:527 No valid configuration found
ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Could not find any supported camera on this system.
Additional debug info:
../src/gstreamer/gstlibcamerasrc.cpp(355): gst_libcamera_src_open (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0:
libcamera::CameraMananger::cameras() is empty
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...

With the environment variable LIBCAMERA_LOG_LEVELS=*:0 I can get more information.
Besides inital warnings and some errors there looks like there is a loop at the end where libcamera tries different pixel formats but apparently none makes the camera happy.

mobian@mobian:~$ LIBCAMERA_LOG_LEVELS=*:0 gst-launch-1.0 -v -m libcamerasrc ! autovideosink
Setting pipeline to PAUSED ...
[1:19:00.336768119] [21869] DEBUG IPAModule ipa_module.cpp:329 ipa_rkisp1.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_rkisp1.so is signed
[1:19:00.337134956] [21869] DEBUG IPAManager ipa_manager.cpp:245 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_rkisp1.so'
[1:19:00.337613959] [21869] DEBUG IPAModule ipa_module.cpp:329 ipa_rpi.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so is signed
[1:19:00.337853794] [21869] DEBUG IPAManager ipa_manager.cpp:245 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_rpi.so'
[1:19:00.338173755] [21869] DEBUG IPAModule ipa_module.cpp:329 ipa_vimc.so: IPA module /usr/lib/aarch64-linux-gnu/libcamera/ipa_vimc.so is signed
[1:19:00.338372798] [21869] DEBUG IPAManager ipa_manager.cpp:245 Loaded IPA module '/usr/lib/aarch64-linux-gnu/libcamera/ipa_vimc.so'
[1:19:00.338568966] [21869] INFO Camera camera_manager.cpp:299 libcamera v0.0.4
[1:19:00.339288013] [21877] DEBUG Camera camera_manager.cpp:108 Starting camera manager
[1:19:00.357832151] [21877] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "cedrus" created from /dev/media0
[1:19:00.357980610] [21877] DEBUG DeviceEnumerator device_enumerator_udev.cpp:95 Defer media device /dev/media0 due to 1 missing dependencies
[1:19:00.359044535] [21877] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media0 found
[1:19:00.359149327] [21877] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media0: cedrus
[1:19:00.359768040] [21877] DEBUG DeviceEnumerator device_enumerator.cpp:224 New media device "sun6i-csi" created from /dev/media1
[1:19:00.361211884] [21877] DEBUG DeviceEnumerator device_enumerator_udev.cpp:95 Defer media device /dev/media1 due to 1 missing dependencies
[1:19:00.362261309] [21877] DEBUG DeviceEnumerator device_enumerator_udev.cpp:320 All dependencies for media device /dev/media1 found
[1:19:00.362352143] [21877] DEBUG DeviceEnumerator device_enumerator.cpp:252 Added device /dev/media1: sun6i-csi
[1:19:00.366717425] [21877] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'PipelineHandlerISI'
[1:19:00.366870884] [21877] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'PipelineHandlerRPi'
[1:19:00.366940885] [21877] DEBUG RPI raspberrypi.cpp:1255 Unable to acquire a Unicam instance
[1:19:00.366985594] [21877] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'PipelineHandlerRkISP1'
[1:19:00.367075594] [21877] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'SimplePipelineHandler'
[1:19:00.367176470] [21877] DEBUG DeviceEnumerator device_enumerator.cpp:312 Successful match for media device "sun6i-csi"
[1:19:00.367343846] [21877] DEBUG SimplePipeline simple.cpp:397 Found capture device sun6i-csi
[1:19:00.367554223] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Contrast (0x00980901)
[1:19:00.367659307] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Saturation (0x00980902)
[1:19:00.367722349] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Hue (0x00980903)
[1:19:00.367788183] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: White Balance, Automatic (0x0098090c)
[1:19:00.367849767] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Red Balance (0x0098090e)
[1:19:00.367909309] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Blue Balance (0x0098090f)
[1:19:00.367969393] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Exposure (0x00980911)
[1:19:00.368083810] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Gain, Automatic (0x00980912)
[1:19:00.368154102] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Horizontal Flip (0x00980914)
[1:19:00.368240061] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Vertical Flip (0x00980915)
[1:19:00.368302978] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Power Line Frequency (0x00980918)
[1:19:00.368401854] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Auto Exposure (0x009a0901)
[1:19:00.368475021] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Focus, Automatic Continuous (0x009a090c)
[1:19:00.368538439] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Auto Focus, Start (0x009a091c)
[1:19:00.368614022] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Auto Focus, Stop (0x009a091d)
[1:19:00.368675273] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Auto Focus, Status (0x009a091e)
[1:19:00.368741898] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Vertical Blanking (0x009e0901)
[1:19:00.368806816] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Horizontal Blanking (0x009e0902)
[1:19:00.368890649] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Analogue Gain (0x009e0903)
[1:19:00.368958775] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Link Frequency (0x009f0901)
[1:19:00.369116943] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Pixel Rate (0x009f0902)
[1:19:00.369184193] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Test Pattern (0x009f0903)
[1:19:00.369697530] [21877] DEBUG CameraSensor camera_sensor.cpp:230 'ov5640 3-004c': Optional V4L2 control 0x009a0923 not supported
[1:19:00.369765906] [21877] WARN CameraSensor camera_sensor.cpp:245 'ov5640 3-004c': Recommended V4L2 control 0x009a0922 not supported
[1:19:00.369828031] [21877] WARN CameraSensor camera_sensor.cpp:312 'ov5640 3-004c': The sensor kernel driver needs to be fixed
[1:19:00.369871948] [21877] WARN CameraSensor camera_sensor.cpp:314 'ov5640 3-004c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[1:19:00.371483960] [21877] DEBUG CameraSensor camera_sensor.cpp:412 'ov5640 3-004c': Test pattern mode 2 ignored
[1:19:00.371567169] [21877] DEBUG CameraSensor camera_sensor.cpp:412 'ov5640 3-004c': Test pattern mode 3 ignored
[1:19:00.371612003] [21877] DEBUG CameraSensor camera_sensor.cpp:412 'ov5640 3-004c': Test pattern mode 4 ignored
[1:19:00.371653337] [21877] WARN CameraSensor camera_sensor.cpp:460 'ov5640 3-004c': Failed to retrieve the camera location
[1:19:00.371710295] [21877] DEBUG CameraSensor camera_sensor.cpp:656 'ov5640 3-004c': Apply test pattern mode 0
[1:19:00.371800963] [21877] DEBUG SimplePipeline simple.cpp:467 Found pipeline: [ov5640 3-004c|0] -> [0|sun6i-csi]
[1:19:00.371928172] [21877] DEBUG SimplePipeline simple.cpp:397 Found capture device sun6i-csi
[1:19:00.372180257] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Exposure (0x00980911)
[1:19:00.372290758] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Horizontal Flip (0x00980914)
[1:19:00.372357592] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Vertical Flip (0x00980915)
[1:19:00.372422842] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Auto Exposure (0x009a0901)
[1:19:00.372503885] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Auto Exposure, Bias (0x009a0913)
[1:19:00.372611760] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Vertical Blanking (0x009e0901)
[1:19:00.372673511] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Horizontal Blanking (0x009e0902)
[1:19:00.372730511] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Analogue Gain (0x009e0903)
[1:19:00.372792928] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Pixel Rate (0x009f0902)
[1:19:00.372861304] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Test Pattern (0x009f0903)
[1:19:00.372988180] [21877] DEBUG V4L2 v4l2_device.cpp:635 'gc2145 3-003c': Control: Digital Gain (0x009f0905)
[1:19:00.375941493] [21877] DEBUG CameraSensor camera_sensor.cpp:230 'gc2145 3-003c': Optional V4L2 control 0x009a0923 not supported
[1:19:00.376615790] [21877] WARN CameraSensor camera_sensor.cpp:245 'gc2145 3-003c': Recommended V4L2 control 0x009a0922 not supported
[1:19:00.376710916] [21877] ERROR V4L2 v4l2_subdevice.cpp:400 'gc2145 3-003c': Unable to get rectangle 2 on pad 0: Inappropriate ioctl for device
[1:19:00.376793166] [21877] WARN CameraSensor camera_sensor.cpp:287 'gc2145 3-003c': The PixelArraySize property has been defaulted to 1600x1200
[1:19:00.376844083] [21877] ERROR V4L2 v4l2_subdevice.cpp:400 'gc2145 3-003c': Unable to get rectangle 1 on pad 0: Inappropriate ioctl for device
[1:19:00.376893251] [21877] WARN CameraSensor camera_sensor.cpp:298 'gc2145 3-003c': The PixelArrayActiveAreas property has been defaulted to (0, 0)/1600x1200
[1:19:00.376946668] [21877] ERROR V4L2 v4l2_subdevice.cpp:400 'gc2145 3-003c': Unable to get rectangle 0 on pad 0: Inappropriate ioctl for device
[1:19:00.376995418] [21877] WARN CameraSensor camera_sensor.cpp:306 'gc2145 3-003c': Failed to retrieve the sensor crop rectangle
[1:19:00.377034877] [21877] WARN CameraSensor camera_sensor.cpp:312 'gc2145 3-003c': The sensor kernel driver needs to be fixed
[1:19:00.377074544] [21877] WARN CameraSensor camera_sensor.cpp:314 'gc2145 3-003c': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[1:19:00.378426345] [21877] WARN CameraSensorProperties camera_sensor_properties.cpp:231 No static properties available for 'gc2145'
[1:19:00.378489887] [21877] WARN CameraSensorProperties camera_sensor_properties.cpp:233 Please consider updating the camera sensor properties database
[1:19:00.378537013] [21877] WARN CameraSensor camera_sensor.cpp:460 'gc2145 3-003c': Failed to retrieve the camera location
[1:19:00.378623097] [21877] ERROR V4L2 v4l2_device.cpp:352 'gc2145 3-003c': Unable to set controls: Permission denied
[1:19:00.378788515] [21877] ERROR SimplePipeline simple.cpp:1433 No valid pipeline for sensor 'gc2145 3-003c', skipping
[1:19:00.378969558] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Contrast (0x00980901)
[1:19:00.379055475] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Saturation (0x00980902)
[1:19:00.379112725] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Hue (0x00980903)
[1:19:00.379167726] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: White Balance, Automatic (0x0098090c)
[1:19:00.379226351] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Red Balance (0x0098090e)
[1:19:00.379281727] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Blue Balance (0x0098090f)
[1:19:00.379340269] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Exposure (0x00980911)
[1:19:00.379400102] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Gain, Automatic (0x00980912)
[1:19:00.379461061] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Horizontal Flip (0x00980914)
[1:19:00.379519020] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Vertical Flip (0x00980915)
[1:19:00.379577187] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Power Line Frequency (0x00980918)
[1:19:00.379662688] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Auto Exposure (0x009a0901)
[1:19:00.379734355] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Focus, Automatic Continuous (0x009a090c)
[1:19:00.379791980] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Auto Focus, Start (0x009a091c)
[1:19:00.379857856] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Auto Focus, Stop (0x009a091d)
[1:19:00.379915690] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Auto Focus, Status (0x009a091e)
[1:19:00.379981648] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Vertical Blanking (0x009e0901)
[1:19:00.380114733] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Horizontal Blanking (0x009e0902)
[1:19:00.380179150] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Analogue Gain (0x009e0903)
[1:19:00.380244900] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Link Frequency (0x009f0901)
[1:19:00.380387610] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Pixel Rate (0x009f0902)
[1:19:00.380448819] [21877] DEBUG V4L2 v4l2_device.cpp:635 'ov5640 3-004c': Control: Test Pattern (0x009f0903)
[1:19:00.380848655] [21877] DEBUG V4L2 v4l2_videodevice.cpp:632 /dev/video3[22:cap]: Opened device platform:1cb0000.csi: sun6i-csi: sun6i-csi
[1:19:00.381448909] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-RGB565_2X8_BE
[1:19:00.381526535] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.381573285] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 160x120 in pixel formats [ ]
[1:19:00.381937580] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-RGB565_2X8_BE
[1:19:00.381992997] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.382038372] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 176x144 in pixel formats [ ]
[1:19:00.382388875] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-RGB565_2X8_BE
[1:19:00.382443542] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.382486167] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 320x240 in pixel formats [ ]
[1:19:00.382833045] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-RGB565_2X8_BE
[1:19:00.382886003] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.382937879] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 640x480 in pixel formats [ ]
[1:19:00.383294423] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-RGB565_2X8_BE
[1:19:00.383354548] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.386890491] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x480 in pixel formats [ ]
[1:19:00.387421287] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-RGB565_2X8_BE
[1:19:00.387480037] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.387522746] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x576 in pixel formats [ ]
[1:19:00.387865457] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-RGB565_2X8_BE
[1:19:00.387915666] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.387955666] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1024x768 in pixel formats [ ]
[1:19:00.388335544] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-RGB565_2X8_BE
[1:19:00.388400378] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.388442711] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1280x720 in pixel formats [ ]
[1:19:00.388780505] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-RGB565_2X8_BE
[1:19:00.388831422] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.388878131] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1920x1080 in pixel formats [ ]
[1:19:00.389206342] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-RGB565_2X8_BE
[1:19:00.389256092] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.389296509] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 2592x1944 in pixel formats [ ]
[1:19:00.389638887] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-RGB565_2X8_LE
[1:19:00.389690720] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.389730804] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 160x120 in pixel formats [ ]
[1:19:00.390056765] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-RGB565_2X8_LE
[1:19:00.390105765] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.390146307] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 176x144 in pixel formats [ ]
[1:19:00.390470685] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-RGB565_2X8_LE
[1:19:00.390520393] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.390561977] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 320x240 in pixel formats [ ]
[1:19:00.390891313] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-RGB565_2X8_LE
[1:19:00.390940021] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.390979730] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 640x480 in pixel formats [ ]
[1:19:00.391308024] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-RGB565_2X8_LE
[1:19:00.391357358] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.391398858] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x480 in pixel formats [ ]
[1:19:00.391727527] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-RGB565_2X8_LE
[1:19:00.391778111] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.391819445] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x576 in pixel formats [ ]
[1:19:00.392489283] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-RGB565_2X8_LE
[1:19:00.392577784] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.392619576] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1024x768 in pixel formats [ ]
[1:19:00.392976745] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-RGB565_2X8_LE
[1:19:00.393029995] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.393071537] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1280x720 in pixel formats [ ]
[1:19:00.393403248] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-RGB565_2X8_LE
[1:19:00.393454748] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.393499040] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1920x1080 in pixel formats [ ]
[1:19:00.393826626] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-RGB565_2X8_LE
[1:19:00.393874252] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.393913168] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 2592x1944 in pixel formats [ ]
[1:19:00.398381077] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-UYVY8_2X8
[1:19:00.398445744] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.398486994] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 160x120 in pixel formats [ ]
[1:19:00.398819580] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-UYVY8_2X8
[1:19:00.398873205] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.398912539] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 176x144 in pixel formats [ ]
[1:19:00.399236416] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-UYVY8_2X8
[1:19:00.399286292] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.399324084] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 320x240 in pixel formats [ ]
[1:19:00.399640503] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-UYVY8_2X8
[1:19:00.399690753] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.399729920] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 640x480 in pixel formats [ ]
[1:19:00.400089423] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-UYVY8_2X8
[1:19:00.400170923] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.400212715] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x480 in pixel formats [ ]
[1:19:00.400554843] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-UYVY8_2X8
[1:19:00.400619010] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.400658177] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x576 in pixel formats [ ]
[1:19:00.401011804] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-UYVY8_2X8
[1:19:00.401100430] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.401142847] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1024x768 in pixel formats [ ]
[1:19:00.401510350] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-UYVY8_2X8
[1:19:00.401604226] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.401649851] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1280x720 in pixel formats [ ]
[1:19:00.402011895] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-UYVY8_2X8
[1:19:00.402066271] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.402104979] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1920x1080 in pixel formats [ ]
[1:19:00.402418982] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-UYVY8_2X8
[1:19:00.402463565] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.402501607] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 2592x1944 in pixel formats [ ]
[1:19:00.402819943] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-YUYV8_2X8
[1:19:00.402887027] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.402934985] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 160x120 in pixel formats [ ]
[1:19:00.403294280] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-YUYV8_2X8
[1:19:00.403372030] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.403423989] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 176x144 in pixel formats [ ]
[1:19:00.403786533] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-YUYV8_2X8
[1:19:00.403879742] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.403921993] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 320x240 in pixel formats [ ]
[1:19:00.404335954] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-YUYV8_2X8
[1:19:00.404399288] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.404443163] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 640x480 in pixel formats [ ]
[1:19:00.404778874] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-YUYV8_2X8
[1:19:00.404834958] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.404874458] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x480 in pixel formats [ ]
[1:19:00.405199627] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-YUYV8_2X8
[1:19:00.405250544] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.405289295] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x576 in pixel formats [ ]
[1:19:00.405613005] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-YUYV8_2X8
[1:19:00.405662589] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.405701423] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1024x768 in pixel formats [ ]
[1:19:00.406019258] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-YUYV8_2X8
[1:19:00.406066717] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.406105259] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1280x720 in pixel formats [ ]
[1:19:00.406419386] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-YUYV8_2X8
[1:19:00.406469012] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.406507345] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1920x1080 in pixel formats [ ]
[1:19:00.406822306] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-YUYV8_2X8
[1:19:00.406870848] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.406908515] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 2592x1944 in pixel formats [ ]
[1:19:00.407235601] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SBGGR8_1X8
[1:19:00.407285434] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.407325685] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1280x720 in pixel formats [ ]
[1:19:00.407639270] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SBGGR8_1X8
[1:19:00.407686729] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.407725313] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1920x1080 in pixel formats [ ]
[1:19:00.408096607] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SBGGR8_1X8
[1:19:00.408156941] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.408195608] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 2592x1944 in pixel formats [ ]
[1:19:00.408529819] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SGRBG8_1X8
[1:19:00.408579819] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.408618028] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1280x720 in pixel formats [ ]
[1:19:00.408934947] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SGRBG8_1X8
[1:19:00.408987572] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.409025906] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1920x1080 in pixel formats [ ]
[1:19:00.409339283] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SGRBG8_1X8
[1:19:00.409389242] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.409427284] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 2592x1944 in pixel formats [ ]
[1:19:00.409745536] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SGBRG8_1X8
[1:19:00.409795078] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.409832537] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1280x720 in pixel formats [ ]
[1:19:00.410149122] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SGBRG8_1X8
[1:19:00.410200623] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.410239331] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1920x1080 in pixel formats [ ]
[1:19:00.410554917] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SGBRG8_1X8
[1:19:00.410605292] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.410645751] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 2592x1944 in pixel formats [ ]
[1:19:00.410971003] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-SRGGB8_1X8
[1:19:00.411022629] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.411060671] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1280x720 in pixel formats [ ]
[1:19:00.411377173] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-SRGGB8_1X8
[1:19:00.411427590] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.411468215] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1920x1080 in pixel formats [ ]
[1:19:00.411786759] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-SRGGB8_1X8
[1:19:00.411835676] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.411873968] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 2592x1944 in pixel formats [ ]
[1:19:00.412274096] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 160x120-JPEG_1X8
[1:19:00.412342930] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.412385972] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 160x120 in pixel formats [ ]
[1:19:00.412714016] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 176x144-JPEG_1X8
[1:19:00.412765808] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.412804517] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 176x144 in pixel formats [ ]
[1:19:00.413125644] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 320x240-JPEG_1X8
[1:19:00.413176936] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.413215228] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 320x240 in pixel formats [ ]
[1:19:00.413534189] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 640x480-JPEG_1X8
[1:19:00.413583773] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.413621398] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 640x480 in pixel formats [ ]
[1:19:00.413935609] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x480-JPEG_1X8
[1:19:00.413984109] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.414022943] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x480 in pixel formats [ ]
[1:19:00.414335903] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 720x576-JPEG_1X8
[1:19:00.414386404] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.414423696] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 720x576 in pixel formats [ ]
[1:19:00.414737740] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1024x768-JPEG_1X8
[1:19:00.414787115] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.414825365] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1024x768 in pixel formats [ ]
[1:19:00.415141951] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1280x720-JPEG_1X8
[1:19:00.415191285] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.415229202] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1280x720 in pixel formats [ ]
[1:19:00.415545412] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 1920x1080-JPEG_1X8
[1:19:00.415594746] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.415632788] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 1920x1080 in pixel formats [ ]
[1:19:00.415946832] [21877] DEBUG SimplePipeline simple.cpp:716 Link 'ov5640 3-004c':0 -> 'sun6i-csi':0 configured with format 2592x1944-JPEG_1X8
[1:19:00.415995916] [21877] ERROR V4L2 v4l2_videodevice.cpp:1106 /dev/video3[22:cap]: Media bus code filtering not supported by the device
[1:19:00.416092916] [21877] DEBUG SimplePipeline simple.cpp:576 Adding configuration for 2592x1944 in pixel formats [ ]
[1:19:00.416135583] [21877] ERROR SimplePipeline simple.cpp:527 No valid configuration found
[1:19:00.416517836] [21877] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'PipelineHandlerUVC'
[1:19:00.416597337] [21877] DEBUG Camera camera_manager.cpp:151 Found registered pipeline handler 'PipelineHandlerVimc'
ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Could not find any supported camera on this system.
Additional debug info:
../src/gstreamer/gstlibcamerasrc.cpp(355): gst_libcamera_src_open (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0:
libcamera::CameraMananger::cameras() is empty
ERROR: pipeline doesn't want to preroll.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...
  Reply
#7
But v4l2 is not completely broken, Martjin Braam's script (https://git.sr.ht/~martijnbraam/python-p.../camera.py) uses v4l2-ctl.
There must be a way to make the v4l2 plugin in gstreamer working as well. Also at the end of the day it looks like libcamera uses v4l2 as back-end, judging by the debugging messages above.
  Reply
#8
(07-24-2023, 01:51 PM)Kevin Kofler Wrote: Use the libcamerasrc, not the v4l2src.

But, isn't libcamera actually using v4l2 in the background?
  Reply
#9
Sorta, but libcamera handles the things such as switching between the back and front camera that v4l2 applications do not know about. (A v4l2 application expects one video device to equal one camera, whereas there is a multiplexed topology with software switches on the PinePhone.)
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Stupid Question] Where is the phone camera software?! newusername 5 3,962 10-10-2022, 03:58 AM
Last Post: newusername
  basic and ugly mpc-python-GTK3 mpd remote alexandre 0 1,279 08-22-2021, 11:35 AM
Last Post: alexandre
Question Pinephone camera & Megapixels - Bug report and question danimations 0 1,535 08-10-2021, 05:43 AM
Last Post: danimations
  Is there a sound card input on the Pinephone which can be used by Python software? Peter Gamma 5 7,899 06-24-2020, 06:08 AM
Last Post: wibble

Forum Jump:


Users browsing this thread: 1 Guest(s)