All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leslie Zhai <xiangzhai83@gmail.com>
To: linux-media@vger.kernel.org
Subject: Fwd: Fail to set resolution for the Vimicro USB Camera (Altair)
Date: Mon, 17 Mar 2014 13:53:55 +0800	[thread overview]
Message-ID: <53268DF3.8040503@gmail.com> (raw)
In-Reply-To: <53268D33.8040504@gmail.com>

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



           reply	other threads:[~2014-03-17  5:55 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <53268D33.8040504@gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53268DF3.8040503@gmail.com \
    --to=xiangzhai83@gmail.com \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.