Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sun Nov 19, 2017 6:55 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Fri Mar 13, 2009 1:02 pm 
Offline
Regular Member

Joined: Tue Sep 09, 2008 10:28 pm
Posts: 201
this week I spend some time in trying to add webcam support to a spd820

In the meantime I managed to get a wbcam+server running an giving a picture in firefox on another pc.
Is there intereste for integrating this application ?


Last edited by fvdw on Sat Mar 14, 2009 10:57 am, edited 1 time in total.

Top
   
 Post subject: Re: webcam support
PostPosted: Fri Mar 13, 2009 11:39 pm 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Yes, these capabilities are interesting and useful... Several apps allow you do do quite a lot with this sort of thing...

motion detection and surveillance:
motion
zoneminder
webcam-server
w3cam

for sound detection:
SoX

As long as your kernel and the app support your camera you are good to go ... the more common types are gspca and uvc. The pwc driver seems to be used much less, but is still an option.

http://buffalo.nas-central.org/wiki/Sekuro-box
http://buffalo.nas-central.org/wiki/OsKuroBox

You have just 16MB RAM in the EX? I don't know how much memory they all require.

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
 Post subject: Re: webcam support
PostPosted: Sat Mar 14, 2009 1:21 am 
Offline
Regular Member

Joined: Tue Sep 09, 2008 10:28 pm
Posts: 201
thanks for the reply davy

I made the trial with pwc as I have a philips webcam, I will look in the other drivers as well and links, the sound seems to be the most difficult one

ps which webcam driver is the most universal one ? (I mean accept most webcam chipsets)

Despite the 16 MB memory it seems to work fine, I tried it with camserv and it gives a reasonable motion picture in firefox. This while at same time having putty open, winscp connected and downloading a file from the nas.


Top
   
 Post subject: Re: webcam support
PostPosted: Sat Mar 14, 2009 2:13 am 
Offline
Site Admin
User avatar

Joined: Mon Aug 28, 2006 1:15 am
Posts: 2606
Well, gspca seems to becoming less used w/ new cameras, though it boasts support for hundreds of cameras (I have 4 very cheap ones that I've bought for experimenting w/, and all were supported by gspca). I think many have moved or are moving to uvc. The newer high quality webcam I bought is uvc. I fhink if you have all three modules in your kernel/module package, you'd be able to support just about anything/at least the vast majority.

_________________
LS1 (foonas, nfs, Tranmission & p910nd print server, Firefly for my Roku)
LS-HG500 (Lenny)
Various LS-Pros v1,v2 (unbricked w/ serial & jtag)
KuroPro, LS2 & KuroHG (foonas)
Working on davysweather.dyndns.org lately...

=> wooohooo!
wooohooo!
Unknown command 'wooohooo!' - try 'help'


Top
   
PostPosted: Wed May 13, 2009 6:52 am 
Offline
Newbie

Joined: Wed May 06, 2009 2:32 am
Posts: 32
How would you know if the kernel supports the webcam?

I have a GSPCA supported webcam and I do see a /dev/video and /dev/video0 entry on it. Other than say installing Motion with ipkg, what else would I need to install perhaps drivers?


Top
   
PostPosted: Wed May 13, 2009 7:52 pm 
Offline
Regular Member

Joined: Tue Sep 09, 2008 10:28 pm
Posts: 201
if /dev/video and video) are there then probably its compiled with he kernel.
Unless you defined these devices yourself. If video for linux drivers are not compiled with the kernel or loaded as modules then still it won't work. Furthermore you will need to install a driver for GSPCA webcams.
The easist way is just to try it, install a a program like monitor and hook the webcam up and see what happens


Top
   
PostPosted: Wed May 13, 2009 8:56 pm 
Offline
Newbie

Joined: Wed May 06, 2009 2:32 am
Posts: 32
I tried installing Motion and it gave an error about video and video0 (tried both forgot the exact error)

Is there a ipkg I can find to install the gspca or something?


Top
   
PostPosted: Wed May 13, 2009 9:14 pm 
Offline
Regular Member

Joined: Tue Sep 09, 2008 10:28 pm
Posts: 201
if usbutils are on your nas linux system, you could hook up your webcam and type the command lsusb on the command line to see if the device is recognized and if any driver is loaded

You could use the command dmesg | grep usb to see the output of the kernel as result of attaching the usb device such a missing drivers or drivers that fail to load


Top
   
PostPosted: Thu May 14, 2009 4:25 am 
Offline
Newbie

Joined: Wed May 06, 2009 2:32 am
Posts: 32
root@LINKSTATION:~# lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 046d:092e Logitech, Inc.
Bus 001 Device 001: ID 0000:0000

root@LINKSTATION:~# dmesg | grep usb
usbcore: registered new driver usbfs
usbcore: registered new driver hub
usb usb1: configuration #1 chosen from 1 choice
usb usb2: configuration #1 chosen from 1 choice
usbcore: registered new driver usb-storage
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usb 1-1: new full speed USB device using ehci_platform and address 2
usb 1-1: configuration #1 chosen from 1 choice

I get this error with motion
root@LINKSTATION:~# /opt/etc/init.d/S99motion
[0] Processing thread 0 - config file /opt/etc/motion.conf
[0] Unknown config option "minimum_gap"
[0] Unknown config option "sql_log_image"
[0] Unknown config option "sql_log_snapshot"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[0] Unknown config option "sql_query"
[0] Motion 3.2.9 Started
[0] ffmpeg LIBAVCODEC_BUILD 3356160 LIBAVFORMAT_BUILD 3411200
[0] Motion running in setup mode.
[0] Thread 1 is from /opt/etc/motion.conf
[0] Thread 1 is device: /dev/video0 input 8
[1] Thread 1 started
[0] motion-httpd/3.2.9 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8082
[1] Failed to open video device /dev/video0: No such device or address
[1] Capture error calling vid_start
[1] Thread finishing...

I went to ls -l in /dev/
lrwxrwxrwx 1 root root 6 May 8 02:01 video -> video0
crwxr-xr-x 1 root root 81, 0 Jun 17 2004 video0

guess it doesn't exist


Top
   
PostPosted: Fri May 15, 2009 11:06 pm 
Offline
Regular Member

Joined: Tue Sep 09, 2008 10:28 pm
Posts: 201
the fact that the folder /dev/video0 exist doesn't mean that the drivers are really loaded

from the output given by you I concluded that the device is recognized but no drivers are loaded, as most pobably they are not present


Top
   
PostPosted: Thu May 28, 2009 8:47 am 
Offline
Newbie

Joined: Wed May 06, 2009 2:32 am
Posts: 32
You're right, I figured out I need to get the gspca drivers built and installed. The kernel I have is pre UVC and GSPCA driver. Its a pity that doesn't exist in the ipkg because I don't seem to have all the things needed in order to build it. I think this is the source for gspca drivers http://mxhaard.free.fr/download.html I don't know if they have UVC drivers built for the linkstation, if they do might be fun to buy one to try.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited