vor mehr als 2 monaten hatte ich den wunsch, live-bilder von meinem wohnzimmer aus ins internet zu streamen. hardware hatte ich schnell gefunden, die logitech quickcam pro 9000 sollte meine bedürfnisse abdecken, zumal hd-qualität [1600x1200] unterstützt wird.
leider gibt es unter dem derzeitigen kernel [2.6.21.7] von slugos 4.8 keine oder nur mangelhafte v4l [video for linux] unterstützung und die suche nach dem passenden treiber wurde zu einem hürdenlauf. but I am running successfully for today mjpg StreamServe service under slugos. puts you on the distro worth less, can be found at this blog already a firmware binary image based on the nslu2 openwrt. here is a manual for those who have slugos as target platform.
the resources we are currently running compile against the v4l kernel. within this package, there is also the appropriate driver [ http://linux-uvc.berlios.de/ ] for the Logitech QuickCam Pro 9000
in turn - we put the camera on the usb hub on the slug. lsusb recognizes the device immediately and report:
# lsusb-s 2:4-v
Bus 2 Device 4: ID 046d: 0990 Logitech, Inc.
thus we come to the driver installation. download the archives
# wget http://linuxtv.org/hg/ pinchartl ~ / uvcvideo / archive / tip.tar.gz
# gzip-d # tar xvf tip.tar.gt
tip.tar
dannach the unpacked archive change
# cd uvcvideo-33fd4f6f3afa
# make
# make install
compile to be successful is an actual linux-src-environment condition that also requires a, cross-compile-environment '[ required to install packages using ipkg - autoconf, automake, cpp, g + +, g + +-symlinks, gcc, glibc-utils gnu-config, kernel-dev, ldd, libgcc, libglib, make, makedevs, ncurses, ncurses-dev, update-modules]. also to compile kernel module - git and svn [Optware repository].
install linux resources:
# cd / usr / src # wget
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.21.7.tar.gz
# gzip -d linux-2.6.21.7.tar.gz
# tar-xvf linux-2.6.21.7.tar
# ln-s / usr / src / linux-2.6.21.7 linux
# ipkg install kernel-dev
# cp / boot / config-2.6.21.7 / usr / src / linux / .config
so that any references of the driver package [uvc] on native kernel-objects can be linked to compile wir alle kernel-module [nativ auf der slug dauert das etwas ~2h]
# cd /usr/src/linux
# make menuconfig
# make modules
jetzt haben wir unter /lib/modules/2.6.21.7/kernel/drivers/media/video die aktuellen kernel-module der video4linux umgebung, und diese werden von nun an in das memory geladen.
# cd /lib/modules/2.6.21.7/kernel/drivers/media/video
# insmod v4l2-compat-ioctl32.ko
# insmod v4l1-compat.ko
# insmod videodev.ko
… der erste erfolg dmesg liefert
Jan 10 12:07:43 nwal002 Linux video capture interface: v2.00 - von nun an We have our device [/ dev/video0] # cd uvc
# insmod uvcvideo.ko
...
Jan 10 12:08:36 nwal002 uvcvideo: Found UVC 1.00 device
Jan 10 12:08:36 nwal002 input: UVC Camera (046d: 0990) as / class/input/input4 usbcore
Jan 10 12:08:36 nwal002: registered new interface driver uvcvideo
Jan 10 12:08:36 nwal002 USB Video Class driver (v0.1.0)
the installation of any compatible software packages [http://www.quickcamteam.net/software/linux/v4l2-software] runs unspectacular. quite quickly find yourself with uvccapture-0.5, uvc-streamer and just deal mjpg-streamer.
of now runs
#. / mjpg_streamer-o-w `pwd` output_http.so / www-o-f output_file.so pics-d 300000 "
as daemon under non-root user [! / Dev / video group permission should have set write! ] And also writes every 5 minutes a static image, such as here.
mjpg order to enjoy the stream [user: walcherstrasse17, pwd: webcam] [Mozilla Firefox] browser to enjoy and
http://80.109.78.83:443/webcam/
...
0 comments:
Post a Comment