The camera does v4l2
#1
I haven't brought myself to install Cheese because it's Gnome.  But I have another USB webcam (which this is) and even in OpenBSD it can do v4l2 (Video For Linux 2).  I'm In Bullseye, I did
modprobe uvcvideo and lsusb shows (maybe it did before):
Bus 002 Device 003: ID 0c45:6321 Microdia HP Integrated Webcam

Installed a few v4l2 things, I don't really know what I'm doing.
Code:
v4l2-ctl --list-devices
rockchip,rk3399-vpu-enc (platform: hantro-vpu):
/dev/video0
/dev/video1
/dev/media0

rockchip-rga (platform:rga):
/dev/video4

USB Camera: USB Camera (usb-fe3c0000.usb-1.2):
/dev/video2
/dev/video3
/dev/media1

-------------
v4l2-ctl --all
Driver Info:
Driver name      : hantro-vpu
Card type        : rockchip,rk3399-vpu-enc
Bus info        : platform: hantro-vpu
Driver version  : 5.7.19
Capabilities    : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps      : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name      : hantro-vpu
Model            : hantro-vpu
Serial          :
Bus info        : platform: hantro-vpu
Media version    : 5.7.19
Hardware revision: 0x00000000 (0)
Driver version  : 5.7.19
Interface Info:
ID              : 0x0300000c
Type            : V4L Video
Entity Info:
ID              : 0x00000001 (1)
Name            : rockchip,rk3399-vpu-enc-source
Function        : V4L2 I/O
Pad 0x01000002  : 0: Source
  Link 0x02000008: to remote pad 0x1000004 of entity 'rockchip,rk3399-vpu-enc-proc': Data, Enabled, Immutable
Priority: 2
Format Video Capture Multiplanar:
Width/Height      : 96/32
Pixel Format      : 'JPEG' (JFIF JPEG)
Field            : None
Number of planes  : 1
Flags            :
Colorspace        : JPEG
Transfer Function : Default
YCbCr/HSV Encoding: Default
Quantization      : Default
Plane 0          :
  Bytes per Line : 0
  Size Image    : 6745
Format Video Output Multiplanar:
Width/Height      : 96/32
Pixel Format      : 'YM12' (Planar YUV 4:2:0 (N-C))
Field            : None
Number of planes  : 3
Flags            :
Colorspace        : JPEG
Transfer Function : Default
YCbCr/HSV Encoding: Default
Quantization      : Default
Plane 0          :
  Bytes per Line : 96
  Size Image    : 3072
Plane 1          :
  Bytes per Line : 48
  Size Image    : 768
Plane 2          :
  Bytes per Line : 48
  Size Image    : 768

JPEG Compression Controls

            compression_quality 0x009d0903 (int)    : min=5 max=100 step=1 default=50 value=50

And
Code:
v4l2-compliance -d /dev/video4 -s

v4l2-compliance SHA: not available
, 64 bits, 64-bit time_t

Compliance test for rockchip-rga device /dev/video4:

Driver Info:
Driver name      : rockchip-rga
Card type        : rockchip-rga
Bus info        : platform:rga
Driver version  : 5.7.19
Capabilities    : 0x84208000
Video Memory-to-Memory
Streaming
Extended Pix Format
Device Capabilities
Device Caps      : 0x04208000
Video Memory-to-Memory
Streaming
Extended Pix Format

Required ioctls:
test VIDIOC_QUERYCAP: OK

Allow for multiple opens:
test second /dev/video4 open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK
test for unlimited opens: OK

test invalid ioctls: OK
Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported)
test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0

Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
test VIDIOC_G/S_EDID: OK (Not Supported)

Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
test VIDIOC_G/S_CTRL: OK
test VIDIOC_G/S/TRY_EXT_CTRLS: OK
test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 5 Private Controls: 0

Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
test VIDIOC_G/S_PARM: OK (Not Supported)
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK
test VIDIOC_TRY_FMT: OK
fail: v4l2-test-formats.cpp(836): fmt_cap.g_colorspace() != col
test VIDIOC_S_FMT: FAIL
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
test Cropping: OK
test Composing: OK
test Scaling: OK

Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
test VIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

Buffer ioctls:
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
test VIDIOC_EXPBUF: OK
test Requests: OK (Not Supported)

Test input 0:

Streaming ioctls:
test read/write: OK (Not Supported)
test blocking wait: OK
fail: v4l2-test-buffers.cpp(256): g_field() == V4L2_FIELD_ANY
fail: v4l2-test-buffers.cpp(1278): buf.qbuf(node)
test MMAP (no poll): FAIL
fail: v4l2-test-buffers.cpp(256): g_field() == V4L2_FIELD_ANY
fail: v4l2-test-buffers.cpp(1278): buf.qbuf(node)
test MMAP (select): FAIL
fail: v4l2-test-buffers.cpp(256): g_field() == V4L2_FIELD_ANY
fail: v4l2-test-buffers.cpp(1278): buf.qbuf(node)
test MMAP (epoll): FAIL
test USERPTR (no poll): OK (Not Supported)
test USERPTR (select): OK (Not Supported)
test DMABUF: Cannot test, specify --expbuf-device

Total for rockchip-rga device /dev/video4: 52, Succeeded: 48, Failed: 4, Warnings: 0

So it's on /dev/video4 as a device name anyway.
  Reply


Messages In This Thread
The camera does v4l2 - by ab1jx - 01-05-2021, 08:13 PM
RE: The camera does v4l2 - by ab1jx - 01-06-2021, 10:55 AM
RE: The camera does v4l2 - by ab1jx - 01-06-2021, 09:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Camera not working with Cheese cypresstwist 1 1,729 08-18-2023, 02:02 AM
Last Post: juliamenendez
  Can we get a latest camera fix in Debian? Krakatau 0 1,812 01-07-2020, 05:31 PM
Last Post: Krakatau

Forum Jump:


Users browsing this thread: 2 Guest(s)