Linuxolator v4l2/dvb patches (like for webcamd + skype...)

Juergen Lock nox at jelal.kn-bremen.de
Fri Apr 15 17:52:41 UTC 2011


On Thu, Apr 14, 2011 at 08:13:10PM +0300, Andriy Gapon wrote:
> 
> BTW, just in case:
> http://www.quickcamteam.net/documentation/faq/logitech-webcam-linux-usb-incompatibilities
> 
> P.S.
> http://blogs.skype.com/linux/2011/04/2_2_beta.html

Ok I just tested that version and found another bug in the patches,
but even after fixing that I couldn't get video to work with my
gspca camera that doesn't do yuv video. :(  Maybe the f10 version
of libv4l that is now in ports is just too old?  (Does anyone else
get that version to work with a cam that does do yuv like a uvc?)

 netchild, you said you have an f10 build env iirc, could you try
building the latest libv4l on there for me to test?

 The new patches are here:

	http://people.freebsd.org/~nox/dvb/linux-dvb-v4l2-8-test-split.patch
	(for 8, this is what I tested)

	http://people.freebsd.org/~nox/dvb/linux-dvb-v4l2-test-split.patch
	(for head, again untested)

 I have now split the dvb handling into a seperate kld because of
the LGPL'd header it uses (linux_dvbwrapper.ko), but it looks like
I'll have to make that a port as netchild still had concerns putting
that version in base...

 I also couldn't get audio input to work with that skype version
but maybe that just was because I am on 8 and used a Linux alsa
oss plugin,

	http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/10/i386/alsa-plugins-oss-1.0.21-3.fc10.i386.rpm

with this /compat/linux/etc/asound.conf:

-----snip--------
#
# FreeBSD/OSS
#
pcm.!default {
	type oss
	device /dev/dsp
}

ctl.!default {
	type oss
	device /dev/mixer
}

pcm.!dsp4 {
	type oss
	device /dev/dsp4
}

ctl.!dsp4 {
	type oss
	device /dev/mixer4
}

#
# Remap all possible surround stuffs.
#
pcm.!surround40 {
	type oss
	device /dev/dsp
}

pcm.!surround41 {
	type oss
	device /dev/dsp
}

pcm.!surround50 {
	type oss
	device /dev/dsp
}

pcm.!surround51 {
	type oss
	device /dev/dsp
}

pcm.!surround71 {
	type oss
	device /dev/dsp
}

#
# Pulseaudio
#
# pcm.!default {
# 	type pulse
# }
# 
# ctl.!default {
# 	type pulse
# }
-----snip--------

...instead of messing with pulseaudio and the patches it needs like
you posted here:

	http://lists.freebsd.org/pipermail/freebsd-multimedia/2011-February/011696.html

(I did hear skype's sounds that way btw, just the webcam's builtin
mic on /dev/dsp4 wouldn't want to record anything even tho skype
allowed me to select `dsp4' as mic input.)

 And now I also tested the version you tested in that posting which
I found to be still available here,

	http://download.skype.com/linux/skype_static-2.1.0.81.tar.bz2

and with _that_ version the webcam did work with my updated patch.
(the mic didn't, probably for the same reason as above.)

 For those that want to try, I just extracted the tarball below my
homedir and then ran:

	LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so ./skype_static-2.1.0.81/skype --resources=$PWD/skype_static-2.1.0.81

 And the latest beta I tested the same way:

	LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so ./skype_static-2.2.0.25/skype --resources=$PWD/skype_static-2.2.0.25

 Enjoy, :)
	Juergen


More information about the freebsd-multimedia mailing list