USB webcam++ support for FreeBSD-8-current is soon here

View: New views
2 Messages — Rating Filter:   Alert me  

USB webcam++ support for FreeBSD-8-current is soon here

by Ilya Bakulin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Just checked out Userland Linux kernel wrapper from here:
svn --username anonsvn --password anonsvn \
      checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux

And tried to compile it according to instructions in Makefile:
 make fetch
 sudo make patch all install

It complained about missing definition of __u32 in ulinux/libv4l/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c

Following patch fixed this problem for me, built-in USB webcam works with pwcview:
----
kibab@kibab-nb%sudo pwcview
KrefGet: 0x28731404 = 1
KrefGet: 0x28731404 = 2
KrefGet: 0x2873160c = 1
KrefGet: 0x287316c8 = 1
Added device 0x28618c44
KrefGet: 0x28618c48 = 1
KrefGet: 0x28618c48 = 2
KrefGet: 0x287ada38 = 1
Webcam set to: 320x240 (sif) at 5 fps
----
BTW after quitting pwcview Webcam continues to work (blue LED indicator stays ON). It's not a big problem,
after "power_off/power_on" commands via usbconfig LED goes away :-D

Is there any way to make Skype work with Webcam (as I understand, it requires /dev/video0 device to be present?)

--
Regards, Ilya Bakulin
http://kibab.com
xmpp://kibab612@...


--- ulinux/libv4l-4714b31863c5/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c 2009-10-18 02:41:39.000000000 +0400
+++ ulinux/libv4l-4714b31863c5/v4l2-apps/libv4l/libv4lconvert/control/libv4lcontrol.c 2009-10-18 23:01:33.000000000 +0400
@@ -45,6 +45,7 @@
 #define V4L2_IN_ST_VFLIP       0x00000020 /* Frames are flipped vertically */
 #endif
 
+#define __u32 uint32_t
 
 /* List of cams which need special flags */
 static const struct v4lcontrol_flags_info v4lcontrol_flags[] = {



signature.asc (203 bytes) Download Attachment

Re: USB webcam++ support for FreeBSD-8-current is soon here

by Hans Petter Selasky-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sunday 18 October 2009 22:11:01 Ilya Bakulin wrote:
> Is there any way to make Skype work with Webcam (as I understand, it
> requires /dev/video0 device to be present?)

When skype links with libv4l like the rest of the Linux V4L applications
nowadays, it will work given some minor changes I think.

NOTE: if you try to build KDE4(network) after you installed my libv4l, then
KDE4 will start using libv4l instead of /dev/video0. It will break a couple of
times, but should be easy to fix. Mostly I needed to add libv4lxdrivers.so to
the installed libv4l .pc files.

Thanks for your patch.

I will forward it.

--HPS
_______________________________________________
freebsd-emulation@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@..."