public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* Dark picture on Genius E-Messenger 112 webcam with yesterday's v4l-dvb code.
@ 2009-04-11 14:16 Victor
  2009-04-12 17:08 ` Jean-Francois Moine
  0 siblings, 1 reply; 4+ messages in thread
From: Victor @ 2009-04-11 14:16 UTC (permalink / raw)
  To: linux-media

Hello.

I'm using Genius E-Messenger 112 webcam on Slackware 12.2 with 2.6.27.7 kernel 
(custom-built) and yesterday's v4l-dvb sources checked out via "mercurial" 
("hg log" returns "11445:dba0b6fae413" as latest commit). the camera uses 
gspca_main and gspca_pac207 kernel modules.`

Camera works (with LD_PRELOAD=v4l2convert.so) in mplayer (mplayer tv://) and 
skype, but picture is way too dark. It looks like "contrast" is permanently 
set at maximum, and doesn't change (although it looks like camera tries to 
adjust brightness automatically).

How can this be fixed?

Few articles in the web talk about "/sys/module/gspca/parameters/gamma", etc, 
but it looks like such advice is outdated. I assume this device is not 
completely supported (people on the web recommend to avoid using this camera 
on linux), so perhaps I could provide additional data to make it work in the 
future. Or, perhaps, someone could tell me where (in gspca source) I could 
start trying to fix that problem.

-- 
With best regards, Victor

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dark picture on Genius E-Messenger 112 webcam with yesterday's v4l-dvb code.
  2009-04-11 14:16 Dark picture on Genius E-Messenger 112 webcam with yesterday's v4l-dvb code Victor
@ 2009-04-12 17:08 ` Jean-Francois Moine
  2009-04-12 19:50   ` Victor
  2009-04-13 13:07   ` Victor
  0 siblings, 2 replies; 4+ messages in thread
From: Jean-Francois Moine @ 2009-04-12 17:08 UTC (permalink / raw)
  To: ErV2005; +Cc: linux-media

On Sat, 11 Apr 2009 18:16:14 +0400
Victor <ErV2005@rambler.ru> wrote:

> Hello.

Hello Victor,

> I'm using Genius E-Messenger 112 webcam on Slackware 12.2 with
> 2.6.27.7 kernel (custom-built) and yesterday's v4l-dvb sources
> checked out via "mercurial" ("hg log" returns "11445:dba0b6fae413" as
> latest commit). the camera uses gspca_main and gspca_pac207 kernel
> modules.`
> 
> Camera works (with LD_PRELOAD=v4l2convert.so) in mplayer (mplayer
> tv://) and skype, but picture is way too dark. It looks like
> "contrast" is permanently set at maximum, and doesn't change
> (although it looks like camera tries to adjust brightness
> automatically).
> 
> How can this be fixed?

Did you try to change the webcam controls? (there are brightness,
exposure, autogain and gain - they may be changed by programs as
v4l2ucp or vlc)

> Few articles in the web talk about
> "/sys/module/gspca/parameters/gamma", etc, but it looks like such
> advice is outdated. I assume this device is not completely supported
> (people on the web recommend to avoid using this camera on linux), so
> perhaps I could provide additional data to make it work in the
> future. Or, perhaps, someone could tell me where (in gspca source) I
> could start trying to fix that problem.

You may ask to Hans de Goede who is the maintainer of the pac207
driver.

Cheers.

-- 
Ken ar c'hentañ	|	      ** Breizh ha Linux atav! **
Jef		|		http://moinejf.free.fr/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dark picture on Genius E-Messenger 112 webcam with yesterday's v4l-dvb code.
  2009-04-12 17:08 ` Jean-Francois Moine
@ 2009-04-12 19:50   ` Victor
  2009-04-13 13:07   ` Victor
  1 sibling, 0 replies; 4+ messages in thread
From: Victor @ 2009-04-12 19:50 UTC (permalink / raw)
  To: Jean-Francois Moine; +Cc: linux-media

[-- Attachment #1: Type: text/plain, Size: 2131 bytes --]

Hello,

On Sunday 12 April 2009 21:08:31 you wrote:
> On Sat, 11 Apr 2009 18:16:14 +0400
>
> Victor <ErV2005@rambler.ru> wrote:
> > Hello.
>
> Hello Victor,
>
> > I'm using Genius E-Messenger 112 webcam on Slackware 12.2 with
> > 2.6.27.7 kernel (custom-built) and yesterday's v4l-dvb sources
> > checked out via "mercurial" ("hg log" returns "11445:dba0b6fae413" as
> > latest commit). the camera uses gspca_main and gspca_pac207 kernel
> > modules.`
> >
> > Camera works (with LD_PRELOAD=v4l2convert.so) in mplayer (mplayer
> > tv://) and skype, but picture is way too dark. It looks like
> > "contrast" is permanently set at maximum, and doesn't change
> > (although it looks like camera tries to adjust brightness
> > automatically).
> >
> > How can this be fixed?
>
> Did you try to change the webcam controls? (there are brightness,
> exposure, autogain and gain - they may be changed by programs as
> v4l2ucp or vlc)
I can modify brightness, exposure, gain/autogain from vlc.
It looks like the problem is related to automatic gain function. Automatic 
gain is enabled by default. When it is enabled, it slowly sets "gain" to the 
maximum, "brightness" to minimum, and "exposure" according to the situation 
(somewhere in the middle).
"Normal" results are produced when gain is near zero.
That's why picture looks bad. 
I could run vlc each time I'm going to use webcam, of course, but I'd like to 
keep automatic brightness/contrast/gain feature and fix it.

As I understand it, automatic exposure is handled by 
"gspca_auto_gain_n_exposure" routine which is located at line 2048 in gspca.c, 
but "gspca_auto_gain_n_exposure" is actually called 
from "pac207_do_auto_gain", line 338 of pac207.c, and at least some data that 
could produce wrong result (avg_lum) seems to be read from the frame data of 
the webcam (line 385 of pac207.c). 

So I'm not quite sure - given this info,
> You may ask to Hans de Goede who is the maintainer of the pac207
> driver.
>
> Cheers.
should I continue discussion here or contact maintainer of pac207 instead?

-- 
Best regards, Victor

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 489 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Dark picture on Genius E-Messenger 112 webcam with yesterday's v4l-dvb code.
  2009-04-12 17:08 ` Jean-Francois Moine
  2009-04-12 19:50   ` Victor
@ 2009-04-13 13:07   ` Victor
  1 sibling, 0 replies; 4+ messages in thread
From: Victor @ 2009-04-13 13:07 UTC (permalink / raw)
  To: Jean-Francois Moine; +Cc: linux-media

On Sunday 12 April 2009 21:08:31 you wrote:
> You may ask to Hans de Goede who is the maintainer of the pac207
> driver.
>
> Cheers.
After some thinking, I decided to contact maintainer of pac207, because 
problem most likely belong to that module. Thanks for the help.


-- 
Best regards, Victor

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-13 13:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-11 14:16 Dark picture on Genius E-Messenger 112 webcam with yesterday's v4l-dvb code Victor
2009-04-12 17:08 ` Jean-Francois Moine
2009-04-12 19:50   ` Victor
2009-04-13 13:07   ` Victor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox