Launchpad has imported 11 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=457796.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2008-08-04T17:32:35+00:00 Hans wrote:

Created attachment 313380
xawtv-3.95-fixes.patch

Short intro: I'm a long time Linux developer currently working on improving
webcam support in Linux, see:
http://fedoraproject.org/wiki/Features/BetterWebcamSupport

I'm one of the authors of the v4l2 rewrite of the gspca usb webcam driver
framework (which supports more then 100 different cams), this v4l2 rewrite has
been merged into the 2.6.27 kernel and thus will become available in the
official Linux kernel soon.

One of the parts of the v4l2 rewrite has been removing conversion from various
manufacturer cam specific video formats to more normal videoformats from the
drivers, as this really does not belong in kernel space.

As a result of this the gspca subdrivers can generate raw video frames in the
following formats:

#define V4L2_PIX_FMT_SN9C10X  v4l2_fourcc('S', '9', '1', '0') /* SN9C10x
compressed bayer
#define V4L2_PIX_FMT_SPCA501  v4l2_fourcc('S', '5', '0', '1') /* YUYV per line 
#define V4L2_PIX_FMT_SPCA505  v4l2_fourcc('S', '5', '0', '5') /* YYUV per line 
#define V4L2_PIX_FMT_SPCA508  v4l2_fourcc('S', '5', '0', '8') /* YUVY per line 
#define V4L2_PIX_FMT_SPCA561  v4l2_fourcc('S', '5', '6', '1') /* compressed
GBRG bayer
#define V4L2_PIX_FMT_PAC207   v4l2_fourcc('P', '2', '0', '7') /* compressed
BGGR bayer

As we do not want to see each application implement (nor having to implement)
support for these various formats, as we like to have one code base and only
one code base for these formats. A library has been written (with me as the
main author) to convert from these formats to BGR24 or YUV420. For more on this
library see:
http://hansdegoede.livejournal.com/3636.html

As such I've been working (for a number of days!) on a patch to add
support for libv4l to xawtv. This has resulted in my doing a whole patch
series, listed in the order in which the patches should be applied.

xawtv-3.95-fixes.patch
----------------------
Some small fixes which are needed for xawtv-3.95 to work with some v4l2 devices 
at all.

xawtv-3.95-libv4l2.patch
------------------------
Use libv4l2 to gain support for all kind of camera specific video formats

xawtv-3.95-no-dga.patch
-----------------------
xawtv does not work on many videocards without specifying -nodga, this patch
fixes this by catching the error and continuing as if the server does not 
support DGA at all

xawtv-3.95-v4l-conf-user-bpl.patch
----------------------------------
Allow root to override the detected number of bytes per line, this is needed
to get direct pci transfers to the framebuffer to work on my ati x1950pro


Note that for xawtv to work properly atleast version 0.4.0 of libv4l is needed,
rawhide currently has 0.3.9 and I cannot build 0.4.0 due to an error in the 
kernel-headers package.


p.s.

While writing all these patches and with all my recent v4l work in
general I've become quite familiar with the xawtv code, so if you want I
can become a co-maintainer (and push these patches myself).

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/10

------------------------------------------------------------------------
On 2008-08-04T17:46:25+00:00 Hans wrote:

Created attachment 313381
xawtv-3.95-libv4l2.patch

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/11

------------------------------------------------------------------------
On 2008-08-04T17:46:58+00:00 Hans wrote:

Created attachment 313382
xawtv-3.95-no-dga.patch

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/12

------------------------------------------------------------------------
On 2008-08-04T18:20:31+00:00 Hans wrote:

Created attachment 313392
xawtv-3.95-v4l-conf-user-bpl.patch

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/13

------------------------------------------------------------------------
On 2008-08-23T07:41:07+00:00 Hans wrote:

Ping,

I would really like to see this fixed before F10-beta freeze so that the
better webcam support feature can get some good testing in the Beta.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/18

------------------------------------------------------------------------
On 2008-08-25T16:36:06+00:00 Dmitry wrote:

Pong.

I am still thinking how to make libv4l2 support optional...

It seems that an option is not suitable here, as there are several
applications (xawtv, streamer, fbtv, ...) and it is not good to hack all
their cmdline interfaces.

Perhaps LD_PRELOAD is a way? If the only application still used by "end
users" is "xawtv", then maybe just add "LD_PRRELOAD=..." into its
.desktop file? (Saving all another utils unchanged).

P.S. Could you add autoconf stuff for libv4l2 patch as well?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/20

------------------------------------------------------------------------
On 2008-08-25T16:45:15+00:00 Hans wrote:

(In reply to comment #5)
> Pong.
> 
> I am still thinking how to make libv4l2 support optional...
> 

Why would you want todo that? libv4l was explicitly designed to be
transparent to the application.

With the current patch, libv4l does not get used / linked in to the
lowlevel v4l-info, v4l-conf and v4lctl programs, so those are not
affected, all the others actually stream data from the cam in one form
or the other and thus need libv4l to work with cams which have funky
video formats (IOW most of them!!).

> P.S. Could you add autoconf stuff for libv4l2 patch as well?

Why? Its a distro specific patch and we will always want to enable
libv4l support, I will take a look at autoconf support when a new
upstream is formed and patches need to become non distro specific so
that they can be merged upstream.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/21

------------------------------------------------------------------------
On 2008-08-25T17:02:56+00:00 Dmitry wrote:

> libv4l does not get used / linked in to the lowlevel
> v4l-info, v4l-conf and v4lctl programs

"v4lctl" actually uses libng drivers, ie. the patch affects it as well.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/22

------------------------------------------------------------------------
On 2008-08-25T18:09:59+00:00 Hans wrote:

(In reply to comment #7)
> > libv4l does not get used / linked in to the lowlevel
> > v4l-info, v4l-conf and v4lctl programs
> 
> "v4lctl" actually uses libng drivers, ie. the patch affects it as well.

Ah I didn't know that even then though, this is not a problem as libv4l
does not touch any of the CTRL related ioctl's it passes them through to
the kernel *completely* unmodified.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/23

------------------------------------------------------------------------
On 2008-08-26T16:58:20+00:00 Dmitry wrote:

OK

I've added your patches (I have a little touched them, and add manual
stuff for the "-p pitch"). Additionally, I've added some debian ones.

The results are available in Koji:
http://kojipkgs.fedoraproject.org/packages/xawtv/3.95/10.fc10/

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/24

------------------------------------------------------------------------
On 2008-08-27T09:55:46+00:00 Hans wrote:

Looks (In reply to comment #9)
> OK
> 
> I've added your patches (I have a little touched them, and add manual stuff 
> for
> the "-p pitch"). Additionally, I've added some debian ones.
> 
> The results are available in Koji:
> http://kojipkgs.fedoraproject.org/packages/xawtv/3.95/10.fc10/

Works like a charm, including accessing webcams which do not work
without libv4l and using my bttv tv card.

Thanks!

Reply at:
https://bugs.launchpad.net/ubuntu/+source/libv4l/+bug/260918/comments/25


** Changed in: xawtv (Fedora)
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/260918

Title:
  needed: libv4l and associated application patches (or "gspca stopped
  working in 2.6.27")

To manage notifications about this bug go to:
https://bugs.launchpad.net/adobe-flash-plugin-tools/+bug/260918/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to