Talk:Webcam

= Old Logitech packages = media-video/qc-usb media-video/qc-usb-messenger media-video/gspcav1 media-video/spca5xx

None of these are in Portage! --67.168.2.194 01:20, 27 April 2010 (GMT)

= ZoneMinder compilation =

ZoneMinder-1.24.2 does not compile unless you do the following...

export CPPFLAGS="-D__STDC_CONSTANT_MACROS" ; emerge zoneminder

See [this] post on the ZoneMinder forums, for details.

--Lyallp 05:59, 28 October 2010 (GMT)

=MSI StarCam 370i configuration for ZoneMinder=

This process could probably be applied to any webcam.

MSI StarCam 370i (WebCam) configured by using lsusb to find the manufacturer and device codes. pearcely:~ Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 002: ID 0c45:60c0 Microdia PC Camera with Mic (SN9C105) Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 003: ID 413c:2010 Dell Computer Corp. Bus 006 Device 002: ID 413c:1003 Dell Computer Corp. Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 004: ID 413c:3010 Dell Computer Corp. Optical Wheel Mouse pearcely:~ Searched for using grep -i 60c0 /usr/src/linux/Documentation/video4linux/* which pointed me to sn9c102.txt Followed instructions on configuring that module. Added sn9c102 to /etc/modules.autoload.d/kernel-2.6 Made sure I had both 'v4l' and 'v4l2' in my USE setting in /etc/make.conf Did an emerge --newuse --verbose --with-bdeps y --update --deep world rebooted, just to be sure I had not borked my boot (which happens if I forget to emerge nvidia-drivers and virtualbox-modules)
 * 1) lsusb

Tested using mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0

Re-emerged ZoneMinder, just in case (temporarily changing my /etc/make.conf MAKEOPTS to '-j1' because zoneminder does not build well with parallel builds, apparently)


 * 1) export CPPFLAGS="-D__STDC_CONSTANT_MACROS" ; emerge zoneminder

I had to put LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so; export LD_PRELOAD in my apache2 /etc/conf.d/apache2 I had tried simply putting it in the zoneminder service startup script, to no avail.

Restarted apache and browsed to the zoneminder page.

Now, I can see the webcam stream! (configured as 320x240 PAL RGB24)

--Lyallp 05:02, 2 December 2010 (GMT)