Package: xscreensaver
Version: 4.23-4
Severity: normal
Tags: patch

Hi!

I have a webcam working with the spca5xx driver. To grab an image from my
webcam, xscreensaver-getimage-video calls streamer.

By the way it is called in xscreensaver-getimage-video, streamer only grabs
the very first frame sent by the webcam. But as there is a hardware automatic
brightness adjustment made by the webcam, the first frame sent is black...
and it takes 2 seconds before having a correct image!

I made a quick hack in xscreensaver-getimage-video that enables taking
the picture 2 seconds after the webcam has been enabled.

I don't know if this issue is really specific to my hardware, but maybe
xscreensaver should have an option to ask after how many seconds the picture
should be grabbed. Or maybe can/should this be handled by the spca5xx driver?

Ask me if if you need more information, screenshots, etc...

Cheers,
-- 
Steph


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (970, 'stable'), (950, 'unstable'), (930, 
'experimental'), (890, 'breezy'), (870, 'dapper'), (500, 'dapper-updates'), 
(500, 'dapper-security'), (500, 'dapper-backports'), (500, 'breezy-updates'), 
(500, 'breezy-security'), (500, 'breezy-backports')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages xscreensaver depends on:
ii  libatk1.0-0              1.10.3-1        The ATK accessibility toolkit
ii  libc6                    2.3.6-3         GNU C Library: Shared libraries an
ii  libcairo2                1.0.2-3         The Cairo 2D vector graphics libra
ii  libfontconfig1           2.3.2-1.1       generic font configuration library
ii  libglade2-0              1:2.5.1-2       library to load .glade files at ru
ii  libglib2.0-0             2.10.1-1        The GLib library of C routines
ii  libgtk2.0-0              2.8.13-1        The GTK+ graphical user interface 
ii  libice6                  6.9.0.dfsg.1-4  Inter-Client Exchange library
ii  libjpeg62                6b-12           The Independent JPEG Group's JPEG 
ii  libpam0g                 0.79-3.1        Pluggable Authentication Modules l
ii  libpango1.0-0            1.12.0-0ubuntu1 Layout and rendering of internatio
ii  libsm6                   6.9.0.dfsg.1-4  X Window System Session Management
ii  libx11-6                 6.9.0.dfsg.1-4  X Window System protocol client li
ii  libxcursor1              1.1.3-1         X cursor management library
ii  libxext6                 6.9.0.dfsg.1-4  X Window System miscellaneous exte
ii  libxi6                   6.9.0.dfsg.1-4  X Window System Input extension li
ii  libxinerama1             6.9.0.dfsg.1-4  X Window System multi-head display
ii  libxml2                  2.6.23.dfsg.2-2 GNOME XML library
ii  libxmu6                  6.9.0.dfsg.1-4  X Window System miscellaneous util
ii  libxpm4                  6.9.0.dfsg.1-4  X pixmap library
ii  libxrandr2               6.9.0.dfsg.1-4  X Window System Resize, Rotate and
ii  libxrender1              1:0.9.0.2-1     X Rendering Extension client libra
ii  libxt6                   6.9.0.dfsg.1-4  X Toolkit Intrinsics
ii  libxxf86misc1            6.9.0.dfsg.1-4  X miscellaneous extensions library
ii  libxxf86vm1              6.9.0.dfsg.1-4  X Video Mode selection library
ii  zlib1g                   1:1.2.3-9       compression library - runtime

Versions of packages xscreensaver recommends:
pn  libjpeg-progs                 <none>     (no description available)
ii  perl [perl5]                  5.8.8-2    Larry Wall's Practical Extraction 
ii  wamerican [wordlist]          6-2        American English dictionary words 
ii  xloadimage                    4.1-16     Graphics file viewer under X11

-- no debconf information
--- xscreensaver-4.23/driver/xscreensaver-getimage-video        2005-02-23 
02:01:41.000000000 -0800
+++ /usr/bin/xscreensaver-getimage-video        2006-03-19 22:54:06.000000000 
-0800
@@ -34,6 +34,8 @@
 my $verbose = 0;
 
 my $tmpdir  = $ENV{TMPDIR} || "/tmp";
+my $tmpfile1 = sprintf ("%s/xssgv01.ppm", $tmpdir, rand(0xFFFFFFFF));
+my $tmpfile3 = sprintf ("%s/xssgv03.ppm", $tmpdir, rand(0xFFFFFFFF));
 my $tmpfile = sprintf ("%s/xssgv.%08x.ppm", $tmpdir, rand(0xFFFFFFFF));
 
 
@@ -45,6 +47,7 @@
 # If you add other programs to this list, please let me know!
 #
 my @programs = (
+  "streamer -a -t3 -r1 -o $tmpfile1; mv $tmpfile3 $tmpfile",           # XawTV 
after 2 sec
 
   "bttvgrab -d q -Q -l 1 -o ppm -f $tmpfile",  # BTTV
   "qcam > $tmpfile",                           # Connectix Qcam

Reply via email to