From: William Manley <will@williammanley.net>
To: Paulo Assis <pj.assis@gmail.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: uvcvideo: logitech C920 resets controls during VIDIOC_STREAMON
Date: Thu, 06 Mar 2014 13:04:50 +0000 [thread overview]
Message-ID: <53187272.6000901@williammanley.net> (raw)
In-Reply-To: <CAPueXH7UaScMA2S1r77oR+5p=MCxQEx3P0c2bhxS+8weqdVUBQ@mail.gmail.com>
On 06/03/14 12:09, Paulo Assis wrote:
> Hi,
>
> 2014-03-05 23:01 GMT+00:00 William Manley <will@williammanley.net>:
>> Hi All
>>
>> I've been attempting to use the Logitech C920 with the uvcvideo driver.
>> I set the controls with v4l2-ctl but some of them change during
>> VIDIOC_STREAMON. My understanding is that the values of controls should
>> be preserved.
>>
[snip]
>> The camera does
>> have a mode where it would change by itself but that is disabled
>> (exposure_auto=1).
>
> This alone doesn't guarantee that exposure absolute is untouched.
> To do so you need to set V4L2_CID_EXPOSURE_AUTO_PRIORITY to 0 and
> V4L2_CID_EXPOSURE_AUTO to V4L2_EXPOSURE_MANUAL
The behaviour is the same whether exposure_auto_priority is set to 1 or
0. I don't think I've explained myself clearly - the exposure time does
not change by itself, apart from during VIDIOC_STREAMON:
* When I'm streaming video from the camera it's constant.
* When no data is coming from the camera it's constant
It's only modified during STREAMON and when I explicitly set it with
v4l2-ctl.
This doesn't seem like correct behaviour as it breaks the use-case of
setting the controls as you want before starting streaming. My
workaround is to reset all the controls after calling VIDIOC_STREAMON
but this is ugly and you get a few frames at the beginning of the video
stream where the settings are set correctly.
Thanks
Will
next prev parent reply other threads:[~2014-03-06 13:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-05 23:01 uvcvideo: logitech C920 resets controls during VIDIOC_STREAMON William Manley
2014-03-06 12:09 ` Paulo Assis
2014-03-06 13:04 ` William Manley [this message]
2014-03-07 15:36 ` William Manley
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=53187272.6000901@williammanley.net \
--to=will@williammanley.net \
--cc=linux-media@vger.kernel.org \
--cc=pj.assis@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox