Webcam Video Surveillance via Mjpg-Streamer Debian Arm

If you own a webcam from this list than you can attach it to the AsusWRT routers usb port and see in real time images from it, like babyroom, garage, courtyard...

This version is for arm devices like RT-AC56U, RT-AC68U, RT-AC87U...

1- Install Debian from here

2- Download videomod script

wget -c -O /opt/etc/videomod.sh http://goo.gl/1RW00w
chmod a+rx /opt/etc/videomod.sh

2b - Download and load UVC Modules

wget -c -O /opt/tmp/uvc_modules_2.6.36brcmarm-380.58-arm.tgz http://goo.gl/UkS8Xy
cd /
tar -zxvf /opt/tmp/uvc_modules_2.6.36brcmarm-380.58-arm.tgz
/opt/etc/videomod.sh load

3 - Enter Debian

debian enter

4 - Update Debian

apt-get update
apt-get upgrade

5 - Install necessary packages

apt-get install wget procps libjpeg-dev libv4l-dev

6 - Download and install mjpg-streamer

wget -c -O /var/tmp/mjpg-streamer_182-1_armel.deb http://goo.gl/xMnSf4
dpkg -i /var/tmp/mjpg-streamer_182-1_armel.deb

7 - Download startup script

wget -c -O /etc/init.d/S99mjpg-streamer-debian http://goo.gl/UKIgeq
chmod 755 /etc/init.d/S99mjpg-streamer-debian

8 - Exit Debian

exit

9 - Add script to chrooted services list

echo "" >>/opt/etc/chroot-services.list
echo "S99mjpg-streamer-debian" >>/opt/etc/chroot-services.list
chmod 755 /opt/etc/chroot-services.list

10 - Create script to load UVC Modules and mjpg-streamer at startup

nano /jffs/scripts/post-mount

Add this lines

#!/bin/sh

/opt/etc/videomod.sh load
sleep 5
/opt/etc/init.d/S99debian start

Save with CTRL-O / Enter / and exit with CTRL-X

chmod a+rx /jffs/scripts/post-mount

11 - Start mjpg-streamer

debian restart

12 - Go to 192.168.1.1:3000/stream_simple.html and should see images from your webcam

If you want to change username, password, portresolution and fps, edit /opt/debian/etc/init.d/S99mjpg-streamer-debian script

 

Tested successfully with Logitech C270 webcam
c270

 

SUBSCRIBE

To be notified by email when a new tutorial is posted :)

Thanks for Subscribing! I'll keeping you up-to-date with latest tutorials!

Something went wrong, try again...