Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250079 - add libv4l2 support to media-plugins/gst-plugins-v4l2 - required for most new webcams
Summary: add libv4l2 support to media-plugins/gst-plugins-v4l2 - required for most new...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: GStreamer package maintainers
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-06 21:22 UTC by Alexandre Rostovtsev (RETIRED)
Modified: 2011-08-04 09:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fedora's gst-plugins-v4l2 libv4l2 patch (gst-plugins-v4l2-0.10.11-fedora-libv4l2.patch,23.10 KB, patch)
2008-12-06 21:25 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff
Patch to make libv4l dependency non-automagic (gst-plugins-v4l2-0.10.11-libv4l2-no-automagic.patch,1.00 KB, patch)
2008-12-06 21:28 UTC, Alexandre Rostovtsev (RETIRED)
Details | Diff
ebuild using the above two patches (gst-plugins-v4l2-0.10.11.ebuild,810 bytes, text/plain)
2008-12-06 21:33 UTC, Alexandre Rostovtsev (RETIRED)
Details
non-automagic gst-plugins-v4l2-0.10.14.ebuild (gst-plugins-v4l2-0.10.14.ebuild,644 bytes, text/plain)
2009-03-30 14:54 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-12-06 21:22:45 UTC
In kernel 2.6.27 and higher, the drivers for gspca and most uvc webcams (i.e. most USB webcams in existence) require userspace v4l2 clients to do their own video format conversion. gst-plugins-libv4l2 currently does not perform this conversion, hence making the plugin very nearly useless.

To perform the required format conversion automatically, Fedora patched gst-plugins-libv4l2 to use libv4l2 from media-libs/libv4l (see URL field for the patch). Seems to be working pretty well for them.

I have tested the Fedora patch with two webcams (one gspca, one uvc), and it works beautifully. Please add it to the version of gst-plugins-v4l2 in portage.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-12-06 21:24:23 UTC
In text above, s/gst-plugins-libv4l2/gst-plugins-v4l2/g
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-12-06 21:25:54 UTC
Created attachment 174472 [details, diff]
Fedora's gst-plugins-v4l2 libv4l2 patch

The patch from Fedora, renamed for sanity purposes.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-12-06 21:28:19 UTC
Created attachment 174473 [details, diff]
Patch to make libv4l dependency non-automagic

Unfortunately, Fedora's patch makes the dependency on libv4l automagic. Here's a patch to apply on top of Fedora's to make it non-automagic. (One could integrate the two patches into one, but that would make version bumps harder.)
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-12-06 21:33:11 UTC
Created attachment 174475 [details]
ebuild using the above two patches
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2008-12-06 21:34:48 UTC
(In reply to comment #3)
> Created an attachment (id=174473) [edit]
> Patch to make libv4l dependency non-automagic
> 
> Unfortunately, Fedora's patch makes the dependency on libv4l automagic. Here's
> a patch to apply on top of Fedora's to make it non-automagic. (One could
> integrate the two patches into one, but that would make version bumps harder.)
> 

Please open a bug for this in gstreamer's bugzilla (gnome's bugzilla) so we
don't have to carry these around from version to version.

And link this bug there in the URL field, and other way around.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2008-12-06 21:36:21 UTC
I'm asking this because we really don't have a active gstreamer maintainer in Gentoo at the moment, unfortunately. I've done some work, because there has been nobody else to do it. I don't need the extra work, no offense. Thanks!
Comment 7 Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-12-06 22:15:13 UTC
(In reply to comment #5)
> Please open a bug for this in gstreamer's bugzilla (gnome's bugzilla) so we
> don't have to carry these around from version to version.

Done: http://bugzilla.gnome.org/show_bug.cgi?id=563504

> And link this bug there in the URL field, and other way around.

Can't, Gnome bugzilla doesn't seem to have a URL field...

> I don't need the extra work, no offense.

I understand. That's why I made the non-automagic patch separate: it will (hopefully) remain constant for future versions of the plugin, while the updated main patch can simply be downloaded from Fedora CVS.
Comment 8 Mart Raudsepp gentoo-dev 2008-12-07 04:16:50 UTC
FYI, I have joined the gstreamer herd a week ago, and do have a gspca driven webcam. Hopefully I can take a look at resolving this bug before the year ends...
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2008-12-07 19:37:07 UTC
It turned out that the Fedora patch had been accepted in upstream CVS in September. And the non-automagic patch is now in too, see the Gnome bug. So there will be no extra work in the future.
Comment 10 Pacho Ramos gentoo-dev 2009-02-05 10:40:45 UTC
Could this be included in the tree? Now that kernel 2.6.27 is in stable some people are having to manually run gst apps setting LD_PRELOAD=/usr/$(get_libdir)/libv4l/v4l2convert.so

Thanks a lot :-)
Comment 11 Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-03-30 14:52:36 UTC
gst-plugins-v4l2-0.10.14 (recently added to portage) automatically detects and uses libv4l2 at compile time. However, it would probably be best to make the dependency explicit in the ebuild instead of automagic (currently, the ebuild does not mention libv4l at all).
Comment 12 Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-03-30 14:54:48 UTC
Created attachment 186758 [details]
non-automagic gst-plugins-v4l2-0.10.14.ebuild

gst-plugins-v4l2-0.10.14.ebuild that makes the libv4l dependency explicit, controlled by a USE flag (the USE flag is on by default because most modern webcams require libv4l support).
Comment 13 Olivier Crete (RETIRED) gentoo-dev 2009-03-30 15:26:26 UTC
I'm tempted to just add it without a use flag..
Comment 14 Alexandre Rostovtsev (RETIRED) gentoo-dev 2009-03-30 15:32:10 UTC
(In reply to comment #13)
> I'm tempted to just add it without a use flag..

OK, that also works.
Comment 15 Samuli Suominen (RETIRED) gentoo-dev 2009-06-01 09:04:27 UTC
Removing myself from CC because I refuse to maintain gstreamer long as it is packaged in such ridicilous way in Gentoo.
Comment 16 Pacho Ramos gentoo-dev 2009-06-01 09:09:18 UTC
Well, the "fix" for this is simply depend on media-libs/libv4l (always or with a USE flag)

What is the other suggest?
Comment 17 Thomas 2010-07-15 10:59:06 UTC
Please make libv4l dependency explicit, it won't hurt anyone.  I just saw this when i dropped v4l support for vlc and emerge --depclean deleted libv4l afterwards.
Comment 18 Arun Raghavan (RETIRED) gentoo-dev 2011-03-21 14:05:08 UTC
Sorry about the inordinate delay on this - I've pushed this (mandatory libv4l2 dep) to CVS in 0.10.28-r1.
Comment 19 Albert W. Hopkins 2011-03-22 15:25:03 UTC
(In reply to comment #18)
> Sorry about the inordinate delay on this - I've pushed this (mandatory libv4l2
> dep) to CVS in 0.10.28-r1.

This looks like it should be a RDEPEND as well as a DEPEND.  Right now if one runs "emerge --depclean --with-bdeps=n" then it pulls out media-libs/libv4l2.  But this breaks a link dependency with libgstvideo4linux2.so.
Comment 20 Samuli Suominen (RETIRED) gentoo-dev 2011-08-04 09:44:11 UTC
+  04 Aug 2011; Samuli Suominen <ssuominen@gentoo.org>
+  gst-plugins-v4l2-0.10.30.ebuild:
+  Move libv4l from DEPEND to RDEPEND wrt #370671

It seems 0.10.30 is proper, and this bug can be closed now