avafinger / bananapi-zero-ubuntu-base-minimal

BananaPi M2 Zero - Ubuntu Focal Base Minimal Image (Experimental) - U-Boot 2017.09 / Kernel 4.18.y / Kernel 4.19.y / Kernel 4.20.y / Kernel 5.3.y / Kernel 5.6.y / Kernel 5.7.y / Kernel 5.11.y
88 stars 17 forks source link

OV5640 DV camera + mjpeg_streamer not working #63

Closed gavan1 closed 3 years ago

gavan1 commented 3 years ago

USB camera works as per docs.

OV5640 DVP example is incorrect.

OV5640 DVP is listed in video1 not video2.

/dev/video1

"mjpg_streamer -i ./input_uvc.so -d /dev/video1 -r 1280x720 -q 90 -n" -o "./output_http.so -p 8080 -w ./www"

MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39
 i: Using V4L2 device.: /dev/video1
 i: Desired Resolution: 1280 x 720
 i: Frames Per Second.: -1
 i: Format............: JPEG
 i: TV-Norm...........: DEFAULT
 i: Could not obtain the requested pixelformat: MJPG , driver gave us: BA81
    ... will try to handle this by checking against supported formats. 
Init v4L2 failed !! exit fatal
 i: init_VideoIn failed

media-ctl --device /dev/media1 --print-topology

Media controller API version 5.11.10

Media device information
------------------------
driver          sun6i-csi
model           Allwinner Video Capture Device
serial          
bus info        platform:1cb0000.camera
hw revision     0x0
driver version  5.11.10

Device topology
- entity 1: sun6i-csi (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video1
    pad0: Sink
        <- "ov5640 3-003c":0 [ENABLED,IMMUTABLE]

- entity 5: ov5640 3-003c (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev0
    pad0: Source
        [fmt:JPEG_1X8/1280x720@1/30 colorspace:jpeg xfer:srgb ycbcr:601 quantization:full-range]
        -> "sun6i-csi":0 [ENABLED,IMMUTABLE]

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)
avafinger commented 3 years ago

https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal/issues/56