Skip to contentSkip to conversation

Fail to set resolution for the Vimicro USB Camera (Altair)

DISCUSSION Leslie Zhai 1 participant 1 message Mar 17, 2014 1 message not in the archive Media (V4L/DVB)

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi uvc && v4l developers,

My Vimicro USB Camera (Altair) driver info shown as below:

Driver Info (using libv4l2):

        Driver name   : uvcvideo
        Card type     : Vimicro USB Camera (Altair)
        Bus info      : usb-0000:00:1d.2-1
        Driver version: 3.12.7
        Capabilities  : 0x85000001
                Video Capture
                Read/Write
                Streaming
                Device Capabilities
        Device Caps   : 0x05000001
                Video Capture
                Read/Write
                Streaming
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
        Width/Height  : 320/240
        Pixel Format  : 'YUYV'
        Field         : None

Bytes per Line: 640
Size Image : 153600
Colorspace : SRGB
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 320, Height 240
Default : Left 0, Top 0, Width 320, Height 240
Pixel Aspect: 1/1
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 5.000 (5/1)
Read buffers : 0
...

I use v4l2-ctl -d /dev/video1 --set-fmt-video=width=640,height=480 but the camera Format Video Capture Width/Height is still 320/240 Also I tried to use libv4l2 API to VIDIOC_S_FMT, but failed
https://github.com/xiangzhai/laserkbd/blob/master/laser_kbd_neo/src/port/linux/powervideocap_linux.cpp#L130

And I use v4l2-ctl -d /dev/video1 --list-formats-ext there is NO 640x480 resolution! But my friend use Windows 7 can set resolution to 640x480

ioctl: VIDIOC_ENUM_FMT

        Index       : 0
        Type        : Video Capture
        Pixel Format: 'YUYV'
        Name        : YUV 4:2:2 (YUYV)
                Size: Discrete 320x240
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 160x120
                        Interval: Discrete 0.050s (20.000 fps)

Please someone give me some advice, thanks a lot!

Regards,

Leslie Zhai