Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 245819

Summary: media-libs/libv4l is need for new webcam driver in kernel 2-6-27
Product: Gentoo Linux Reporter: Michele Schiavo <micheleschi>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: minor CC: serkan
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michele Schiavo 2008-11-06 12:34:31 UTC
the new kernel 2.6.27 have new gspca v2 driver.
The new driver need external v4lib http://moinejf.free.fr/gspca_README.txt
All "old" application using webcam still not working.
but trying the cam with svv is working good.

Ref : http://bugzilla.kernel.org/show_bug.cgi?id=11952


Reproducible: Always
Comment 1 Michele Schiavo 2008-11-06 12:36:58 UTC
V4L library

	Most applications don't know how to decode the raw frames generated
	by the driver, and also, many of them do not speak the V4L2
	interface. To make them work, you need the V4L application
	library found at:

		http://linuxtv.org/hg/~hgoede/v4l-dvb

	To generate:
		cd v4l2-apps/lib/libv4l/
		make
	   (and as root)
		make install
		(the installation is done under /usr/local)

	To use it with a mono-threaded:
		export LD_LIBRARY_PATH=/usr/local/lib/
		LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so <application>

	To use it with a multi-threaded application:
		export LD_LIBRARY_PATH=/usr/local/lib/
		export LD_PRELOAD=/usr/local/lib/libv4l/v4l1compat.so
		<application>

Applications

	- without the library
		- luvcview: OK with JPEG webcams / KO with other webcams
		- mplayer: OK

	- with the library
		- camorama: often OK but KO with some webcams
		- cheese: OK
		- effectv: OK
		- skype: OK
		- vlc: OK
		- xawtv: OK
		- xcam: OK
		- zapping: KO


I think in the future all ebuild using webcam have to use this lib.

(but I'm not a developed and I can be wrong....)
Comment 2 Michele Schiavo 2008-11-06 18:47:01 UTC
can be solved add something in /etc/env.d/v4l

with something like that

export LD_LIBRARY_PATH=/usr/lib/
export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so

but i'm not sure this is the right solution.
Comment 3 Michele Schiavo 2008-11-06 22:49:44 UTC
I'm stupid...

i didn't read emerge info of this package

Sorry