All of lore.kernel.org
 help / color / mirror / Atom feed
* Fwd: Fail to set resolution for the Vimicro USB Camera (Altair)
       [not found] <53268D33.8040504@gmail.com>
@ 2014-03-17  5:53 ` Leslie Zhai
  0 siblings, 0 replies; only message in thread
From: Leslie Zhai @ 2014-03-17  5:53 UTC (permalink / raw)
  To: linux-media

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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-17  5:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <53268D33.8040504@gmail.com>
2014-03-17  5:53 ` Fwd: Fail to set resolution for the Vimicro USB Camera (Altair) Leslie Zhai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.