NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

geoff_sim's avatar
geoff_sim
Aspirant
Oct 13, 2009

USB Webcam and Motion add-on

Webcam support on the DUO

Download UVC Video Drivers
Download Motion Application

Video drivers has been tested on arm ReadyNAS with RAIDiator 4.1.10

UVCVideo is the magic behind it all, and will install a range of drivers that will hopefully recognise your webcam. I have allowed for up to two webcams to be connected (/dev/video0 & /dev/video1). Note however, that USB video processing is processor-hungry, so don't expect lightning performance! If you have any issues with camera detection, try stopping and starting the UVCVideo resource.

Motion is a fantastic program that is highly configurable, and can be tailored to suit most requirements. It can act as a simple snapshot system for a webpage; a video surveillance system; a time-lapse capture system; and much more. It uses ffmpeg (0.4.8) to create videos, and I have included mysql support.

When you install motion, a /c/media/motion folder will be created and three files will be placed into the folder: a simple motion.conf to allow motion to start-up; a distribution version, motion-dist.conf; and a text version of the unix man-page.

If you choose a different folder, and that folder does not contain an existing motion.conf file, un-modified versions of these three files will be placed there (an existing motion.conf file will not be over-written). Only the motion.conf file is required for motion to run.

The sample motion.conf file instructs motion to do three things: create a mini http webserver accessible via port 8085; capture any movement detected as an avi file, and store this movie along with a jpeg preview of the avi file, in an "images" folder.

You will need to modify motion.conf to suit your requirements. Please read the manual and web resources for more information.

Sample two-camera feed to my iPhone using the netcamviewer app.


Geoff.

(donations accepted)

60 Replies

Replies have been turned off for this discussion
  • The file in first page has no longer available.
    Can someone help me?
    Thanks.

    By(t)e
  • geoff.sim wrote:
    I have re-instated the binaries just for you ;-)

    Thanks a lot! Really... :D

    By(t)e
  • I've just checked that they still work with the latest ReadNAS build, 4.1.10.
    Install the UVC drivers 1st, then Motion.
    When you look at Motion in the installed add-ons, refresh the screen if you don't see the default folder locations.

    A few other things:
    1. Motion will start immediately you install it.
    2. The default motion.conf supplied will start a video capture.
    You may want to change this (comment out ffmpeg_cap_new entry or set it to no and start/stop motion).
    3. When you move the motion folder to another location, the old location contents are not deleted.

    Motion is quite flexible, so you should be able to do what you want with it. I was going to add a scheduler, but there was little interest.

    Enjoy.
  • This project ended some time ago. I do not intend to do anymore with it.
    The UVC drivers support quite a lot of USB cams. Try it and see. If not, sorry I can't help.
  • geoff.sim wrote:
    I was going to add a scheduler, but there was little interest.


    Can i use cron ofr schedule start/stop motion?

    By(t)e
  • If you have access to cron, then you can call the start and stop scripts:

    /etc/frontview/addons/bin/MOTION/start.sh
    /etc/frontview/addons/bin/MOTION/stop.sh
  • Works perfectly!
    I make a cron job that change configuration for night and day (only webcam for day, webcam and motion during night).
    Only the second webcam doesn't work (the model is unknow...).
    Thanks a lot...

    P.S.: i will make you a little donation... :)

    By(t)e

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More