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
- chirpaLuminaryFirst, post it to a site like http://stashbox.org if you need a place to host it at the moment. We will test it out, if it works well, we'll give you access to post in the community add-ons forum.
- geoff_simAspirantI have *finally* fathomed out the package stucture and the perl and javascript libs available (some more useful than others!).
My GSPCA add-on is built and tested, and the webcam add-on is being finalised now.
I will make them both available via my ftp site very soon.
My plan is to create a 3-camera add-on for "webcam" and "motion"...
GjS - geoff_simAspirantI have ripped out all the fancy stuff I was trying out whilst learning about addons.
Find the GSPCA driver and a simple webcam image capture add-ins here:
http://www.readynas.talktalk.net/DUO/
I hope it works for you as well as it does for me!
More to come...
GjS - mdgm-ntgrNETGEAR Employee RetiredOther things you should mention are what firmware you tested it on (know it works on), minimum RAIDiator firmware required...
Also any other add-ons required to be installed for it to work and what hardware e.g. which usb webcam you tested it with and what range you expect to work. You can take a look at the Community Add-ons forum to see what information you should provide to help inform those who may wish to test your add-on.
Basic instructions on how to use, could also be useful. - geoff_simAspirantThe GSPCA add-in consists of two kernel modules, videodev.ko and gspca.ko.
Both have been built against Linux version 2.6.17.8 (RAIDiator 4.1.6 [1.00a043]).
Supported cameras are in the readme, accessible from the add-in.
The Webcam add-in consists of xawtv-plugins_3.94 and webcam_3.94.
An edittable index.html and .webcamrc are placed in /c/media/webcam.
There are no add-on dependencies.
Basic installation instructions are in the readme on the ftp site.
If and when I get access to post to the community add-in forum, I will add the instructions there :-) - geoff_simAspirantGSPCA Version 1.00.20
Currently, the following cameras are supported by this driver:
Vendor ID Device ID Support Summary
--------- --------- ---------------
{USB_DEVICE(0x0733, 0x0430)}, /* Intel PC Camera Pro */
{USB_DEVICE(0x0733, 0x0401)}, /* Intel Create and Share */
{USB_DEVICE(0x99FA, 0x8988)}, /* Grandtec V.cap */
{USB_DEVICE(0x0733, 0x0402)}, /* ViewQuest M318B */
{USB_DEVICE(0x0733, 0x0110)}, /* ViewQuest VQ110 */
{USB_DEVICE(0x040A, 0x0002)}, /* Kodak DVC-325 */
{USB_DEVICE(0x055f, 0xc420)}, /* Mustek gSmart Mini 2 */
{USB_DEVICE(0x055f, 0xc520)}, /* Mustek gSmart Mini 3 */
{USB_DEVICE(0x041E, 0x400A)}, /* Creative PC-CAM 300 */
{USB_DEVICE(0x084D, 0x0003)}, /* D-Link DSC-350 */
{USB_DEVICE(0x041E, 0x400B)}, /* Creative PC-CAM 600 */
{USB_DEVICE(0x8086, 0x0630)}, /* Intel Pocket PC Camera */
{USB_DEVICE(0x8086, 0x0110)}, /* Intel Easy PC Camera */
{USB_DEVICE(0x0506, 0x00df)}, /* 3Com HomeConnect Lite */
{USB_DEVICE(0x040a, 0x0300)}, /* Kodak EZ200 */
{USB_DEVICE(0x04fc, 0x504b)}, /* Maxell MaxPocket LE 1.3 */
{USB_DEVICE(0x08ca, 0x2008)}, /* Aiptek Mini PenCam 2 M */
{USB_DEVICE(0x08ca, 0x0104)}, /* Aiptek PocketDVII 1.3 */
{USB_DEVICE(0x08ca, 0x2018)}, /* Aiptek Pencam SD 2M */
{USB_DEVICE(0x04fc, 0x504a)}, /* Aiptek Mini PenCam 1.3 */
{USB_DEVICE(0x055f, 0xc530)}, /* Mustek Gsmart LCD 3 */
{USB_DEVICE(0x055f, 0xc650)}, /* Mustek MDC5500Z */
{USB_DEVICE(0x052b, 0x1513)}, /* Megapix V4 */
{USB_DEVICE(0x08ca, 0x0103)}, /* Aiptek PocketDV */
{USB_DEVICE(0x0af9, 0x0010)}, /* Hama USB Sightcam 100 */
{USB_DEVICE(0x1776, 0x501c)}, /* Arowana 300K CMOS Camera */
{USB_DEVICE(0x08ca, 0x0106)}, /* Aiptek Pocket DV3100+ */
{USB_DEVICE(0x08ca, 0x2010)}, /* Aiptek PocketCam 3M */
{USB_DEVICE(0x0458, 0x7004)}, /* Genius VideoCAM Express V2 */
{USB_DEVICE(0x04fc, 0x0561)}, /* Flexcam 100 */
{USB_DEVICE(0x055f, 0xc430)}, /* Mustek Gsmart LCD 2 */
{USB_DEVICE(0x04fc, 0xffff)}, /* Pure DigitalDakota */
{USB_DEVICE(0xabcd, 0xcdee)}, /* Petcam */
{USB_DEVICE(0x04a5, 0x3008)}, /* Benq DC 1500 */
{USB_DEVICE(0x046d, 0x0960)}, /* Logitech Inc. ClickSmart 420 */
{USB_DEVICE(0x046d, 0x0901)}, /* Logitech Inc. ClickSmart 510 */
{USB_DEVICE(0x04a5, 0x3003)}, /* Benq DC 1300 */
{USB_DEVICE(0x0af9, 0x0011)}, /* Hama USB Sightcam 100 */
{USB_DEVICE(0x055f, 0xc440)}, /* Mustek DV 3000 */
{USB_DEVICE(0x041e, 0x4013)}, /* Creative Pccam750 */
{USB_DEVICE(0x060b, 0xa001)}, /* Maxell Compact Pc PM3 */
{USB_DEVICE(0x04a5, 0x300a)}, /* Benq DC3410 */
{USB_DEVICE(0x04a5, 0x300c)}, /* Benq DC1016 */
{USB_DEVICE(0x0461, 0x0815)}, /* Micro Innovation IC200 */
{USB_DEVICE(0x046d, 0x0890)}, /* Logitech QuickCam traveler */
{USB_DEVICE(0x10fd, 0x7e50)}, /* FlyCam Usb 100 */
{USB_DEVICE(0x06e1, 0xa190)}, /* ADS Instant VCD */
{USB_DEVICE(0x055f, 0xc220)}, /* Gsmart Mini */
{USB_DEVICE(0x0733, 0x2211)}, /* Jenoptik jdc 21 LCD */
{USB_DEVICE(0x046d, 0x0900)}, /* Logitech Inc. ClickSmart 310 */
{USB_DEVICE(0x055f, 0xc360)}, /* Mustek DV4000 Mpeg4 */
{USB_DEVICE(0x08ca, 0x2024)}, /* Aiptek DV3500 Mpeg4 */
{USB_DEVICE(0x046d, 0x0905)}, /* Logitech ClickSmart820 */
{USB_DEVICE(0x05da, 0x1018)}, /* Digital Dream Enigma 1.3 */
{USB_DEVICE(0x0c45, 0x6025)}, /* Xcam Shanga */
{USB_DEVICE(0x0733, 0x1311)}, /* Digital Dream Epsilon 1.3 */
{USB_DEVICE(0x041e, 0x401d)}, /* Creative Webcam NX ULTRA */
{USB_DEVICE(0x08ca, 0x2016)}, /* Aiptek PocketCam 2 Mega */
{USB_DEVICE(0x0734, 0x043b)}, /* 3DeMon USB Capture aka */
{USB_DEVICE(0x041E, 0x4018)}, /* Creative Webcam Vista (PD1100) */
{USB_DEVICE(0x0546, 0x3273)}, /* Polaroid PDC2030 */
{USB_DEVICE(0x041e, 0x401f)}, /* Creative Webcam Notebook PD1171 */
{USB_DEVICE(0x041e, 0x4017)}, /* Creative Webcam Mobile PD1090 */
{USB_DEVICE(0x046d, 0x08a2)}, /* Labtec Webcam Pro */
{USB_DEVICE(0x055f, 0xd003)}, /* Mustek WCam300A */
{USB_DEVICE(0x0458, 0x7007)}, /* Genius VideoCam V2 */
{USB_DEVICE(0x0458, 0x700c)}, /* Genius VideoCam V3 */
{USB_DEVICE(0x0458, 0x700f)}, /* Genius VideoCam Web V2 */
{USB_DEVICE(0x041e, 0x401e)}, /* Creative Nx Pro */
{USB_DEVICE(0x0c45, 0x6029)}, /* spcaCam@150 */
{USB_DEVICE(0x0c45, 0x6009)}, /* spcaCam@120 */
{USB_DEVICE(0x0c45, 0x600d)}, /* spcaCam@120 */
{USB_DEVICE(0x04fc, 0x5330)}, /* Digitrex 2110 */
{USB_DEVICE(0x055f, 0xc540)}, /* Gsmart D30 */
{USB_DEVICE(0x0ac8, 0x301b)}, /* Asam Vimicro */
{USB_DEVICE(0x041e, 0x403a)}, /* Creative Nx Pro 2 */
{USB_DEVICE(0x055f, 0xc211)}, /* Kowa Bs888e Microcamera */
{USB_DEVICE(0x0ac8, 0x0302)}, /* Z-star Vimicro zc0302 */
{USB_DEVICE(0x0572, 0x0041)}, /* Creative Notebook cx11646 */
{USB_DEVICE(0x08ca, 0x2022)}, /* Aiptek Slim 3200 */
{USB_DEVICE(0x046d, 0x0921)}, /* Labtec Webcam */
{USB_DEVICE(0x046d, 0x0920)}, /* QC Express */
{USB_DEVICE(0x0923, 0x010f)}, /* ICM532 cams */
{USB_DEVICE(0x055f, 0xc200)}, /* Mustek Gsmart 300 */
{USB_DEVICE(0x0733, 0x2221)}, /* Mercury Digital Pro 3.1p */
{USB_DEVICE(0x041e, 0x4036)}, /* Creative Live ! */
{USB_DEVICE(0x055f, 0xc005)}, /* Mustek Wcam300A */
{USB_DEVICE(0x041E, 0x403b)}, /* Creative Webcam Vista (VF0010) */
{USB_DEVICE(0x0545, 0x8333)}, /* Veo Stingray */
{USB_DEVICE(0x0545, 0x808b)}, /* Veo Stingray */
{USB_DEVICE(0x10fd, 0x8050)}, /* Typhoon Webshot II USB 300k */
{USB_DEVICE(0x0546, 0x3155)}, /* Polaroid PDC3070 */
{USB_DEVICE(0x046d, 0x0928)}, /* Logitech QC Express Etch2 */
{USB_DEVICE(0x046d, 0x092a)}, /* Logitech QC for Notebook */
{USB_DEVICE(0x046d, 0x08a0)}, /* Logitech QC IM */
{USB_DEVICE(0x0461, 0x0a00)}, /* MicroInnovation WebCam320 */
{USB_DEVICE(0x08ca, 0x2028)}, /* Aiptek PocketCam4M */
{USB_DEVICE(0x08ca, 0x2042)}, /* Aiptek PocketDV5100 */
{USB_DEVICE(0x08ca, 0x2060)}, /* Aiptek PocketDV5300 */
{USB_DEVICE(0x04fc, 0x5360)}, /* Sunplus Generic */
{USB_DEVICE(0x046d, 0x08a1)}, /* Logitech QC IM 0x08A1 +sound */
{USB_DEVICE(0x046d, 0x08a3)}, /* Logitech QC Chat */
{USB_DEVICE(0x046d, 0x08b9)}, /* Logitech QC IM ??? */
{USB_DEVICE(0x046d, 0x0929)}, /* Labtec Webcam Elch2 */
{USB_DEVICE(0x10fd, 0x0128)}, /* Typhoon Webshot II USB 300k 0x0128 */
{USB_DEVICE(0x102c, 0x6151)}, /* Qcam Sangha CIF */
{USB_DEVICE(0x102c, 0x6251)}, /* Qcam xxxxxx VGA */
{USB_DEVICE(0x04fc, 0x7333)}, /* PalmPixDC85 */
{USB_DEVICE(0x06be, 0x0800)}, /* Optimedia */
{USB_DEVICE(0x2899, 0x012c)}, /* Toptro Industrial */
{USB_DEVICE(0x06bd, 0x0404)}, /* Agfa CL20 */
{USB_DEVICE(0x046d, 0x092c)}, /* Logitech QC chat Elch2 */
{USB_DEVICE(0x0c45, 0x607c)}, /* Sonix sn9c102p Hv7131R */
{USB_DEVICE(0x0733, 0x3261)}, /* Concord 3045 spca536a */
{USB_DEVICE(0x0733, 0x1314)}, /* Mercury 2.1MEG Deluxe Classic Cam */
{USB_DEVICE(0x041e, 0x401c)}, /* Creative NX */
{USB_DEVICE(0x041e, 0x4034)}, /* Creative Instant P0620 */
{USB_DEVICE(0x041e, 0x4035)}, /* Creative Instant P0620D */
{USB_DEVICE(0x046d, 0x08ae)}, /* Logitech QuickCam for Notebooks */
{USB_DEVICE(0x055f, 0xd004)}, /* Mustek WCam300 AN */
{USB_DEVICE(0x046d, 0x092b)}, /* Labtec Webcam Plus */
{USB_DEVICE(0x0c45, 0x602e)}, /* Genius VideoCam Messenger */
{USB_DEVICE(0x0c45, 0x602c)}, /* Generic Sonix OV7630 */
{USB_DEVICE(0x093A, 0x050F)}, /* Mars-Semi Pc-Camera */
{USB_DEVICE(0x0458, 0x7006)}, /* Genius Dsc 1.3 Smart */
{USB_DEVICE(0x055f, 0xc630)}, /* Mustek MDC4000 */
{USB_DEVICE(0x046d, 0x08ad)}, /* Logitech QCCommunicate STX */
{USB_DEVICE(0x0c45, 0x602d)}, /* LIC-200 LG */
{USB_DEVICE(0x0c45, 0x6005)}, /* Sweex Tas5110 */
{USB_DEVICE(0x0c45, 0x613c)}, /* Sonix Pccam168 */
{USB_DEVICE(0x0c45, 0x6130)}, /* Sonix Pccam */
{USB_DEVICE(0x0c45, 0x60c0)}, /* Sangha Sn535 */
{USB_DEVICE(0x0c45, 0x60fc)}, /* LG-LIC300 */
{USB_DEVICE(0x0546, 0x3191)}, /* Polaroid Ion 80 */
{USB_DEVICE(0x0ac8, 0x305b)}, /* Z-star Vimicro zc0305b */
{USB_DEVICE(0x0c45, 0x6028)}, /* Sonix Btc Pc380 */
{USB_DEVICE(0x046d, 0x08a9)}, /* Logitech Notebook Deluxe */
{USB_DEVICE(0x046d, 0x08aa)}, /* Labtec Webcam Notebook */
{USB_DEVICE(0x04f1, 0x1001)}, /* JVC GC A50 */
{USB_DEVICE(0x0497, 0xc001)}, /* Smile International */
{USB_DEVICE(0x041e, 0x4012)}, /* PC-Cam350 */
{USB_DEVICE(0x0ac8, 0x303b)}, /* Vimicro 0x303b */
{USB_DEVICE(0x093a, 0x2468)}, /* PAC207 */
{USB_DEVICE(0x093a, 0x2471)}, /* PAC207 Genius VideoCam ge111 */
{USB_DEVICE(0x093a, 0x2460)}, /* PAC207 Qtec Webcam 100 */
{USB_DEVICE(0x0733, 0x3281)}, /* Cyberpix S550V */
{USB_DEVICE(0x093a, 0x2470)}, /* Genius GF112 */
{USB_DEVICE(0x046d, 0x08a6)}, /* Logitech QCim */
{USB_DEVICE(0x08ca, 0x2020)}, /* Aiptek Slim 3000F */
{USB_DEVICE(0x0698, 0x2003)}, /* CTX M730V built in */
{USB_DEVICE(0x0c45, 0x6001)}, /* Genius VideoCAM NB */
{USB_DEVICE(0x041E, 0x4028)}, /* Creative Webcam Vista Plus */
{USB_DEVICE(0x0471, 0x0325)}, /* Philips SPC 200 NC */
{USB_DEVICE(0x0471, 0x0328)}, /* Philips SPC 700 NC */
{USB_DEVICE(0x0c45, 0x6040)}, /* Speed NVC 350K */
{USB_DEVICE(0x055f, 0xc230)}, /* Mustek Digicam 330K */
{USB_DEVICE(0x0c45, 0x6007)}, /* Sonix sn9c101 + Tas5110D */
{USB_DEVICE(0x0471, 0x0327)}, /* Philips SPC 600 NC */
{USB_DEVICE(0x0471, 0x0326)}, /* Philips SPC 300 NC */
{USB_DEVICE(0x0c45, 0x6019)}, /* Generic Sonix OV7630 */
{USB_DEVICE(0x0c45, 0x6024)}, /* Generic Sonix Tas5130c */
{USB_DEVICE(0x046d, 0x08a7)}, /* Logitech QuickCam Image */
{USB_DEVICE(0x04fc, 0x500c)}, /* Sunplus CA500C */
{USB_DEVICE(0x055f, 0xc232)}, /* Mustek MDC3500 */
{USB_DEVICE(0x046d, 0x08ac)}, /* Logitech QuickCam Cool*/
{USB_DEVICE(0x046d, 0x08d9)}, /* Logitech QuickCam IM/Connect */
{USB_DEVICE(0x046d, 0x08da)}, /* Logitech QuickCam Messenger */
{USB_DEVICE(0x0000, 0x0000)}, /* MystFromOri Unknow Camera */
For more information, see:
http://packages.debian.org/search?searc ... ords=gspca - benofishalAspirantHi,
Can you clarify what this addon does please.
Does it allow a web cam attached to the ReadyNAS to be accessed from a web browser to display a live image?
If thats the case thats amazing!
Thanks. - geoff_simAspirantYes, thats right :-)
It does not support all webcams, but quite a lot as you can see.
The GSPCA add-in will create a /dev/video device that can be used by most camera applications, still or motion.
When you plug in your webcam, the add-on will show if it has recognised the camera.
The Webcam add-in is a simple add-in that has been set-up to capture an image every 5 seconds, and I have created a simple web page in /c/media/webcam to display the image.
You can modify the html as you see fit, and the webpage will be accesible via the address <your-ip-address>/webcam.
I use a dyndns account that redirects to my router (supports dyndns) .
My router then redirects a specified port to my readynas, and this allows me to view the page from, say, work.
I am thinking about creating a plugin for "motion", but that requires quite a lot of extra apps to be installed. - JohnNultyApprenticeSounds like a good idea, so I downloaded and installed, in accordance with your instructions. I have a Logitech Quickcam Pro 5000, which isn't on the list, but I thought I'd try it anyway. Apps loaded OK, but cam not recognised. Any chance of producing a 'driver' for the Pro? Is it possible to set the cam to provide a feed during a certain time period, rather than on all the time - that would be truly useful.
Cheers - geoff_simAspirantSorry, but only the cams mentioned will work :-(
Its not my work, but that of another. You can google "GSPCA" for more info. I just got it all working and packaged up on the DUO.
Once you have a camera recognised, then you can do almost anything. I am looking at getting "motion" packaged up as an add-in.
It would not be difficult to specify a capture time period, just some sort of cron job (or something like that) to start/stop the webcam app.
Sorry, no can do with the Pro as I don't have one (yet).
Related Content
NETGEAR Academy

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