ArduCAM / Arducam_OBISP_MIPI_Camera_Module

13 stars 18 forks source link

AR0230 framerate control #10

Open mecowhy opened 3 years ago

mecowhy commented 3 years ago

Hi,

is it possible to control framerate of this camera?

v4l2-ctl --list-formats-ext lists 30 fps

ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture

        [0]: 'UYVY' (UYVY 4:2:2)
                Size: Discrete 1920x1080
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 640x480
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 320x240
                        Interval: Discrete 0.033s (30.000 fps)

but when running arducamstill it outputs 45fps

./arducamstill -t 0 -e h264 
Hardare version: 9000c1
No match to hardware version!
Device /dev/video0) opened.
Video format set: UYVY (59565955) 1920x1080
[Framerate]: 45 fps.

is it possible geting 10-15 fps out of this camera ?

driver info:

v4l2-ctl -d /dev/video0 --all
Driver Info:
        Driver name      : unicam
        Card type        : unicam
        Bus info         : platform:20801000.csi
        Driver version   : 5.4.79
        Capabilities     : 0x85a00001
                Video Capture
                Metadata Capture
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x05200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
Media Driver Info:
        Driver name      : unicam
        Model            : unicam
        Serial           :
        Bus info         : platform:20801000.csi
        Media version    : 5.4.79
        Hardware revision: 0x00000000 (0)
        Driver version   : 5.4.79
Interface Info:
        ID               : 0x03000005
        Type             : V4L Video
Entity Info:
        ID               : 0x00000003 (3)
        Name             : unicam-image
        Function         : V4L2 I/O
        Flags         : default
        Pad 0x01000004   : 0: Sink
          Link 0x02000007: from remote pad 0x1000002 of entity 'arducam 10-000c': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 0: ok)
Format Video Capture:
        Width/Height      : 1920/1080
        Pixel Format      : 'UYVY' (UYVY 4:2:2)
        Field             : None
        Bytes per Line    : 3840
        Size Image        : 4147200
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Limited Range)
        Flags             :

User Controls

                     brightness 0x00980900 (int)    : min=1 max=64 step=1 default=64 value=64 flags=slider
                       contrast 0x00980901 (int)    : min=1 max=64 step=1 default=32 value=32 flags=slider
                     saturation 0x00980902 (int)    : min=1 max=128 step=1 default=50 value=50 flags=slider
                            hue 0x00980903 (int)    : min=1 max=40 step=1 default=40 value=40 flags=slider
        white_balance_automatic 0x0098090c (bool)   : default=1 value=1
                          gamma 0x00980910 (int)    : min=18 max=128 step=2 default=25 value=25 flags=slider
                       exposure 0x00980911 (int)    : min=1 max=2000 step=1 default=500 value=500
                           gain 0x00980913 (int)    : min=1 max=100 step=1 default=1 value=1
                horizontal_flip 0x00980914 (bool)   : default=0 value=0
                  vertical_flip 0x00980915 (bool)   : default=0 value=0
      white_balance_temperature 0x0098091a (int)    : min=1 max=65535 step=1 default=4600 value=4600
                      sharpness 0x0098091b (int)    : min=1 max=6 step=1 default=3 value=3 flags=slider
         backlight_compensation 0x0098091c (int)    : min=0 max=3 step=1 default=3 value=3

Camera Controls

                  exposure_auto 0x009a0901 (bool)   : default=1 value=1