index

Using the Easycap USB video capture device with OpenWrt Slug
(This will all run internally in the Slug)

More notes for next time
easycap

This site showed me how - http://www.farlock.org/nslu2/openwrt-non-standard-module-compiling/
many thanks!!
I failed to compile as shown but downloaded easycap.ko from there - my backup copy is here

put it in here -
/lib/modules/2.6.26.8/

It is essential to run kamikaze 8.09.2 - I compiled that but I understand that
http://downloads.openwrt.org/kamikaze/8.09.2/ixp4xx/openwrt-nslu2-squashfs.bin will work as a foundation

Using mjpg_streamer the only active video input lead is number 4.
It seems that mjpg_streamer cannot tell the Easycap driver to switch to a chosen input.

In /etc/init.d/done I have as below - (the red text is the new part)

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org

START=95
boot() {
[ -d /tmp/root ] && {
lock /tmp/.switch2jffs
firstboot switch2jffs
lock -u /tmp/.switch2jffs
}

# process user commands
[ -f /etc/rc.local ] && {
sh /etc/rc.local
}

# load the easycap module
insmod /lib/modules/2.6.26.8/easycap.ko
sleep 1
# create a dev - it needs video# format
ln /dev/easycap0 /dev/video9
sleep 1
/sbin/mjpg_streamer -i "input_uvc.so -d /dev/video9 -f 5 -y -q 80 -n" -o "output_http.so -p 8087 -w /webcam_www" -b




# set leds to normal state
. /etc/diag.sh
set_state done
}

also note http://easycap.blogspot.co.uk/

So far I have failed to run 2 instances of mjpg_streamer with the second one running my Logitech HD C270 webcam.

Also - a Logitech Webcam Pro 9000 Web camera will run with a Logitech HD C270 webcam.

But - two Logitech HD C270 webcams will not run together on one Slug.

Such are the mysteries of Linux

Also note -

cheapcam

This cheap USB cam is available from many eBay shops
It runs with mjpg_streamer but needs the PC to do the processing - good enough for snapshots for Motion
.
I have not managed to get it to run with a second cam of any sort.

The picture is clear and seems to be 640 x 480 native - you can focus it for a nestbox cam etc.

The LEDs look fake but are real - but I see no way to switch them from Linux.

The mjpg_streamer command line in /etc/init.d/done has to be like -

mjpg_streamer -i "input_uvc.so -d /dev/video0 -f 5 -y -q 80 -n" -o "output_http.so -p 8087 -w /webcam_www" -b