Arducam 2MP OV2311 - grab YUYV raw frame using v4l2

  1. Where did you get the camera module(s)?
    here
  2. Model number of the product(s)?
    Arducam 2MP OV2311
  3. What hardware/platform were you working on?
    PocketBeagle
  4. Instructions you have followed. (link/manual/etc.)
    linux/v4l2 – Gateworks
  5. Problems you were having?
    I can grab frames using v4l2-ctl in MJPG format, but not in YUYV format:
    This works:
    v4l2-ctl -d /dev/video0 --set-fmt-video=width=1600,height=1200,pixelformat=‘MJPG’ --stream-mmap 2 --stream-count=1 --stream-to=test.raw --verbose
    VIDIOC_QUERYCAP: ok
    VIDIOC_G_FMT: ok
    VIDIOC_S_FMT: ok
    Format Video Capture:
    Width/Height : 1600/1200
    Pixel Format : ‘MJPG’ (Motion-JPEG)
    Field : None
    Bytes per Line : 0
    Size Image : 3840589
    Colorspace : Default
    Transfer Function : Default (maps to Rec. 709)
    YCbCr/HSV Encoding: Default (maps to ITU-R 601)
    Quantization : Default (maps to Full Range)
    Flags :
    idx: 0 seq: 0 bytesused: 59496 ts: 6855.679031

This hangs and does not complete:
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1600,height=1200,pixelformat=‘YUYV’ --stream-mmap 2 --stream-count=1 --stream-to=test.raw --verbose
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture:
Width/Height : 1600/1200
Pixel Format : ‘YUYV’ (YUYV 4:2:2)
Field : None
Bytes per Line : 3200
Size Image : 3840000
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Limited Range)
Flags :
6. The dmesg log from your hardware?

  1. Troubleshooting attempts you’ve made?

  2. What help do you need?
    Should this be possible?