[gst-devel] Camera Configurations with Gstreamer

Stefan Kost ensonic at hora-obscura.de
Fri Oct 15 17:31:32 CEST 2010


Am 15.10.2010 02:36, schrieb Marlos C. Machado:
> 2010/10/14 Andrey Nechypurenko <andreynech at googlemail.com>:
>> Hi,
>>
>>> I'm developing a game which uses a PSEye (Camera) in Ubuntu. I'm able
>>> to play what the camera captures in the game but the camera is auto
>>> adjusting its gain (V4L2_CID_AUTOGAIN on Video For Linux Two API). I
>>> don't want this behavior. Can I disable the camera AUTOGAIN using only
>>> the Gstreamer?

Once the gstphotography interface in gst-plugin-bad becomes more stable we can
move that to gst-plugin-good (or base) and implement it in v4l2src. Need to
check still what AUTOGAIN should be mapped too.

>>
>> AFAIK, you can not do it neither with v4l2src nor with any other
>> elements available. I agree, that it would be nice feature for
>> v4l2src.
>>
>>> I've understood that I need to develop a mini-driver using the V4L2
>>> API, which is time-consuming for a simple task, since I'm able to do
>>> all the rest I need using Gstreamer it would be wonderful to use only
>>> it. I'm programming in C++ on Ubuntu 10.04.
>>
>> I do not think that driver is necessary in this case. If the camera
>> already supported by V4L2 (and as I understand it is the case) then
>> you can use V4L2 API from your application to set controls as you like
>> before using gstreamer.
>>
>> For example, recently I did something similar (disable auto exposure
>> to increase the frame rate) before running gstreamer pipeline. To
>> learn how it works, I've written small program which prints available
>> camera controls and could be used to set these controls. Let me know
>> if you want to take a look at sources. I'll be glad to share it.
> 
> It would be amazing if you could share this codes, it seems it will
> solve my problem.

There is also v4l-info (v4l2-utils package) to list them and various
v4l2-control panels.

Stefan

> 
> Thanks!
> 
>>
>> Regards,
>> Andrey.
>>
>>>
>>> Thanks in advance,
>>>
>>> --
>>> Marlos Cholodovskis Machado
>>>
>>> ------------------------------------------------------------------------------
>>> Beautiful is writing same markup. Internet Explorer 9 supports
>>> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>>> Spend less time writing and  rewriting code and more time creating great
>>> experiences on the web. Be a part of the beta today.
>>> http://p.sf.net/sfu/beautyoftheweb
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> Download new Adobe(R) Flash(R) Builder(TM) 4
>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
>> Flex(R) Builder(TM)) enable the development of rich applications that run
>> across multiple browsers and platforms. Download your free trials today!
>> http://p.sf.net/sfu/adobe-dev2dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
> 
> 
> 





More information about the gstreamer-devel mailing list