NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
geoff_sim
Oct 13, 2009Aspirant
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)
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.

Geoff.
(donations accepted)
60 Replies
Replies have been turned off for this discussion
- BaldyOwlAspirantDoes anyone happen to have the original package download they could share with me? That URL no longer exists and it seems Geoff is no longer about?
- geoff_simAspirantApologies for the delay (!).
I have spent the last week or two (re)creating the work I did last year - and then more time fighting with perl/javascript/html. I have now posted the results of my labour. to bring you what you have been asking for...
http://www.readynas.com/forum/viewtopic.php?f=36&t=34172.
Geoff. - danielvegas1AspirantNice.
Worked out-of-the-box for me with a Logitech QuickCam.
Thanks, Geoff! - geoff_simAspirantI have been running motion for a week or so now and have seen no ill effects.
I have noticed that disk activity takes priority over motion, such that motion does not have any real effect on the day-to-day running of my ReadyNAS (I primarily use mine as a backup device).
I have also confirmed that the mySql sections work fine too.
I am now trying two cameras for a while...
I will host the files for as long as I can. Hopefully, I will get the go-ahead to post them in the correct add-on location some time soon...
Geoff. - geoff_simAspirantTwo cameras work fine, although the processor is worked a bit harder.
I would imagine that three or four cameras might be possible providing you fine tune the config files.
If you have an iPhone, download the free app, NetcamViewer, and point it to your http webcam servers!
Here are some photos of my iPhone displaying the feed from two webcams. - J_Hutt1AspirantWorking well - with one cam anyway. Couldnt quite get 2 to work (eventho each cam works separately on its own)
Tried creating a thread1.conf and thread2.conf from the motion.conf file...with separate settings, and placing in the /media/motion directory along with the original motion.conf, restarting...but it stopped either cam from working. Any tips?
Also
Is it possible to use a single url to start motion up & shut it down from a browser without having to go into Frontview?. Like the following which works for Transmission;
ON: <NAS IP>/TRANSMISSION/TRANSMISSION_HANDLER.pl?command=ToggleService&OPERATION=set&CHECKBOX_TRANSMISSION_ENABLED=unchecked
OFF: <NAS IP>/TRANSMISSION/TRANSMISSION_HANDLER.pl?command=ToggleService&OPERATION=set&CHECKBOX_TRANSMISSION_ENABLED=unchecked - geoff_simAspirantHere is a simple set of conf files for two webcams with http servers (assuming a motion folder of /c/media/motion):
motion.conf
target_dir /c/media/motion
width 320
height 240
text_left CAMERA %t
text_right %d-%m-%Y %T-%q %Z
framerate 2
output_normal off
webcam_localhost off
thread /c/media/motion/camera1.conf
thread /c/media/motion/camera2.conf
camera1.conf
videodevice /dev/video0
webcam_port 8085
camera2.conf
videodevice /dev/video1
webcam_port 8086
Once done, point your ip camera software at the following urls:
http://[your_ip_address]:8085
http://[your_ip_address]:8086
As for your question re starting/stopping, yes:
ON:
http://<NAS_IP>/MOTION/MOTION.pl?command=ToggleService&OPERATION=set&CHECKBOX_MOTION_ENABLED=checked
OFF:
http://<NAS_IP>/MOTION/MOTION.pl?command=ToggleService&OPERATION=set&CHECKBOX_MOTION_ENABLED=unchecked
From this question, I thought it might be fun to add a simple scheduler to start/stop motion.
However, is it starting/stopping that is required, or just turning detection on/off? - J_Hutt1AspirantGot the 2 cams working thanks! Stability is so-so - ie one cut out after a while, might be the cams/duo workload etc.
On/Off link works great too. Scheduler to start/stop motion would be even better! - odarocAspirantWebcam v3.94 update from RAIDiator 4.17 will not start the ignition.
Gspca USB Camera Driverv 1:00:20.
Thanks - geoff_simAspirantYou need to use the UVC drivers and the Motion add-in. See the 1st post in this thread.
To duplicate the functionality of what you had before, use the configs three posts up (this is for 2 cameras - you can edit this for one).
Related Content
NETGEAR Academy

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