<div dir="ltr"><div><div><div>Hello,<br><br></div>The camerabin in its self does not have support for autofocus, at least none that I am aware of. Are you using v4l2src with wrappercamerabinsrc? If that is the case I would suspect that the problem is renegotiation on capture. When a new capture is performed, the pipeline is dynamically changed to feed the image output path. That procs a renegotiaion. If the caps on the video/image output are different than the viewfinder, a new set_fmt is performed in v4l2, which resets the v4l2 controls and in turn resets the focus. to verify/fix that you can do something like:<br><br> g_object_set (camerabin_object,<br> "viewfinder-caps", gst_caps_from_string(caps),<br> "image-capture-caps", gst_caps_from_string(caps),<br> "video-capture-caps", gst_caps_from_string(caps),<br> NULL);<br><br><br></div>Make sure the caps string is the same for all 3. <br><br><br></div>Dimitrios</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 5:07 PM, Robert Hailey <span dir="ltr"><<a href="mailto:gstreamer@osndok.com" target="_blank">gstreamer@osndok.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Greetings.<br>
<br>
I'm trying to understand what is causing an auto-focus event in<br>
response to the CameraBin receiving a 'start-capture' (or<br>
'capture-start') signal.<br>
<br>
Fedora 22<br>
gstreamer1-1.4.5-1.fc22.x86_64<br>
Ziggi HD Plus Document Camera<br>
kernel-4.3.6-201.fc22.x86_64<br>
<br>
Does anyone know off-hand:<br>
<br>
* if-or-where there is an intentional focus being done in gstreamer,<br>
<br>
* if-or-where there is any re-initialization needed during still image<br>
capture (e.g. when handling different view-finder & capture output<br>
pixel sizes), or<br>
<br>
* if this (or a similar) issue has been addressed between 1.4.x and<br>
1.6.x ?<br>
<br>
Thanks in advance!<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Robert Hailey<br>
<br>
<br>
More details/narrative from cheese-list:<br>
<a href="https://mail.gnome.org/archives/cheese-list/2016-March/msg00000.html" rel="noreferrer" target="_blank">https://mail.gnome.org/archives/cheese-list/2016-March/msg00000.html</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</font></span></blockquote></div><br></div>