Camera test on Phosh
#1
You can find me on IRC, Discord and Twitter


#2
(05-03-2020, 03:41 PM)Luke Wrote:

Can you link the python app?
#3
Any information on the driver used for camera access?

On Mobian, only /dev/video1 claims video capture capability via the sun6i driver and no controls are reported.


Code:
mobian@mobian:~$ v4l2-ctl --list-devices cedrus (platform:cedrus): /dev/video0 /dev/media0 sun6i-csi (platform:csi): /dev/video1 mobian@mobian:~$ v4l2-ctl -d /dev/video0 -D Driver Info: Driver name      : cedrus Card type        : cedrus Bus info         : platform:cedrus Driver version   : 5.6.0 Capabilities     : 0x84208000 Video Memory-to-Memory Streaming Extended Pix Format Device Capabilities Device Caps      : 0x04208000 Video Memory-to-Memory Streaming Extended Pix Format Media Driver Info: Driver name      : cedrus Model            : cedrus Serial           : Bus info         : platform:cedrus Media version    : 5.6.0 Hardware revision: 0x00000000 (0) Driver version   : 5.6.0 Interface Info: ID               : 0x0300000c Type             : V4L Video Entity Info: ID               : 0x00000001 (1) Name             : cedrus-source Function         : V4L2 I/O Pad 0x01000002   : 0: Source  Link 0x02000008: to remote pad 0x1000004 of entity 'cedrus-proc': Data, Enabled, Immutable mobian@mobian:~$ v4l2-ctl -d /dev/media0 -D Unable to detect what device /dev/media0 is, exiting. mobian@mobian:~$ v4l2-ctl -d /dev/video1 -D Driver Info: Driver name      : sun6i-video Card type        : sun6i-csi Bus info         : platform:csi Driver version   : 5.6.0 Capabilities     : 0x84200001 Video Capture Streaming Extended Pix Format Device Capabilities Device Caps      : 0x04200001 Video Capture Streaming Extended Pix Format mobian@mobian:~$ v4l2-ctl -L Codec Controls        mpeg_2_slice_parameters 0x009909fa (unknown): type=103 flags=has-payload   mpeg_2_quantization_matrices 0x009909fb (unknown): type=104 flags=has-payload    h264_sequence_parameter_set 0x00990ce8 (unknown): type=110 flags=has-payload     h264_picture_parameter_set 0x00990ce9 (unknown): type=111 flags=has-payload            h264_scaling_matrix 0x00990cea (unknown): type=112 flags=has-payload          h264_slice_parameters 0x00990ceb (unknown): type=113 flags=has-payload         h264_decode_parameters 0x00990cec (unknown): type=114 flags=has-payload               h264_decode_mode 0x00990ced (menu)   : min=0 max=0 default=0 value=0 0: Slice-Based                h264_start_code 0x00990cee (menu)   : min=0 max=0 default=0 value=0 0: No Start Code    hevc_sequence_parameter_set 0x00990cf0 (unknown): type=120 flags=has-payload     hevc_picture_parameter_set 0x00990cf1 (unknown): type=121 flags=has-payload          hevc_slice_parameters 0x00990cf2 (unknown): type=122 flags=has-payload               hevc_decode_mode 0x00990cf7 (menu)   : min=0 max=0 default=0 value=0 0: Slice-Based                hevc_start_code 0x00990cf8 (menu)   : min=0 max=0 default=0 value=0 0: No Start Code mobian@mobian:~$ v4l2-ctl --list-formats-ext ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'ST12' (Sunxi Tiled NV12 Format, compressed) [1]: 'NV12' (Y/CbCr 4:2:0)


https://twongkee.wordpress.com/2020/03/2...phone-pic/ appears to use the ov5640 driver.
#4
Poked around a bit more and there is a dmesg error for the ov5640 device for Mobian.

On pmOS, the camera "works" as a video device without autofocus. A video player is used for the viewfinder and can be used to "take photos".
#5
Yes, last I checked the driver is loaded, but it can't init the camera, not sure what the problem is yet


Possibly Related Threads…
Thread Author Replies Views Last Post
  camera not usable with trixie? JChdeL 0 1,186 12-05-2025, 01:45 AM
Last Post: JChdeL
  Switching cameras on PPpro Camera app biketool 0 1,211 11-11-2025, 10:44 AM
Last Post: biketool
  New camera app gnome-snapshot working on trixie? vusra 4 5,044 04-11-2025, 02:53 AM
Last Post: vusra
  mobian phosh on screen keyboard not popping up for Chromium/Electron apps grump_fiddle_reinstall 1 4,575 01-15-2025, 08:08 PM
Last Post: Kevin Kofler
  The program doesn`t detect the camera blag0rag 6 6,961 09-17-2024, 03:45 PM
Last Post: Kevin Kofler
  Command to test vibration motor? Zebulon Walton 3 6,068 11-12-2023, 08:45 PM
Last Post: zetabeta
  Auto start application on Phosh login Zebulon Walton 8 13,248 10-14-2023, 06:29 AM
Last Post: alaraajavamma
  GStreamer Camera Issue (Unsupported pixformat: 0x56595559 with mbus code: 0x3001) sog8b 1 3,918 07-17-2023, 01:49 AM
Last Post: junelung
  Using sway along phosh fdlamotte 2 6,390 05-11-2023, 04:24 PM
Last Post: kabouik
  Mobian + phosh firefox ublock and other overlays display bugs tuxcall 3 5,392 02-24-2023, 12:11 AM
Last Post: nexion

Forum Jump:


Users browsing this thread: 1 Guest(s)