USB Webcam support package

The discussion lounge for third-party packages.
Forum rules
Please note the Disclaimer before modifying your Synology Product.

Re: USB Webcam support package

Postby Nikolausi » Sun Apr 15, 2012 10:37 am

Max_nl wrote:
but I may eventually add it to the webcam test application


..this lets me hope again :D
Nikolausi
I'm New!
I'm New!
 
Posts: 5
Joined: Fri Apr 06, 2012 5:43 pm

Re: USB Webcam support package

Postby dangerbock » Thu Apr 19, 2012 3:29 pm

just tested with xbox 360 webcam and works all fine on Synology 411 :)

now maybe PTZ with one arduino and two servos :)
dangerbock
I'm New!
I'm New!
 
Posts: 1
Joined: Thu Apr 19, 2012 3:00 pm

Re: USB Webcam support package

Postby arenillas » Sat Apr 28, 2012 5:33 pm

Any packet for Intel??
arenillas
I'm New!
I'm New!
 
Posts: 7
Joined: Wed Nov 25, 2009 9:40 pm

Re: USB Webcam support package

Postby Vulcan » Sun Apr 29, 2012 5:11 am

Another vote for a version that supports the Intel based Synology devices.

PLEASE PLEASE PLEASE????? :D
Vulcan
I'm New!
I'm New!
 
Posts: 3
Joined: Thu Apr 12, 2012 7:34 pm

Re: USB Webcam support package

Postby cfuttrup » Sun Apr 29, 2012 9:34 pm

Hi Max_nl

Thanks for providing a package to support USB Cams. This is the way to move forward. Very nice to see.

/Claus
cfuttrup
Enlightened
Enlightened
 
Posts: 477
Joined: Fri May 09, 2008 8:01 pm
Location: Denmark

Re: USB Webcam support package

Postby benjibarnicals » Thu May 03, 2012 1:04 am

Great package Max,

This is something Synology really should introduce officially :)

One question, can you run multiple cams? Do they require different SS settings per cam? (or could this be a future feature).


Many thanks,

Ben
benjibarnicals
Sharp
Sharp
 
Posts: 153
Joined: Sun Mar 18, 2007 10:49 pm

Re: USB Webcam support package

Postby Max_nl » Fri May 04, 2012 12:13 pm

Don't plan to release a package for Intel.
As I mentioned before: I do not have an Intel device, and I prefer not to release packages I cannot test myself, especially if they contain kernel modules.

==

benjibarnicals wrote:One question, can you run multiple cams? Do they require different SS settings per cam? (or could this be a future feature).


Maybe in a future release.
Is currently hardcoded to the first device (video0).

Not sure if there is much demand, because Surveillance station only supports 1 cam free of charge.
Max_nl
Novice
Novice
 
Posts: 59
Joined: Tue Mar 20, 2012 4:45 pm

Re: USB Webcam support package

Postby j_gry2003 » Mon May 07, 2012 2:21 pm

Hey, good work here with the usb webcam support.

I know you said it isnt something that you would do but I really wish someone could work alongside you (possibly even synology themselves) to develop this for the intel version of the disckstation

Anyway, I wont hold my breath but would be very good.
j_gry2003
Beginner
Beginner
 
Posts: 26
Joined: Mon Nov 28, 2011 12:02 pm

Re: USB Webcam support package

Postby remylpat » Wed May 09, 2012 10:57 am

Working Well on my DS109 with a PrecisionHD Tandberg Camera
remylpat
I'm New!
I'm New!
 
Posts: 8
Joined: Mon Nov 23, 2009 5:17 pm

Re: USB Webcam support package

Postby allen727hk » Mon May 14, 2012 4:40 pm

Max_nl wrote:Two things need to be compiled:

webcam.cgi

Nothing special needed

Code: Select all
path-to-cross-compiler-gcc -O2 -o webcam.cgi webcam.c



Kernel modules

For video you need uvcvideo.ko and videodev.ko

In Linux kernel menuconfig under "device drivers" -> "multimedia support":

- select "video for Linux" (optional compatibility stuff not necessary)
- select "video capture adapters" -> "V4L USB devices" -> "USB Video Class (UVC)"


If you also want audio at some point (not supported by Surveillance station, but I may eventually add it to the webcam test application), you may compile USB sound card support as well, while you are at it.

That's under "device drivers" "sound card support"
Just check "OSS" "ASLA" "OSS PCM" "USB Audio/Midi driver"

Files you need to copy: snd-hwdep.ko snd-page-alloc.ko snd-pcm-oss.ko snd-pcm.ko snd-rawmidi.ko snd-timer.ko snd-usb-audio.ko snd-usb-lib.ko snd.ko sound_firmware.ko soundcore.ko


Sorry for my language and newbie.

I unable to install the spk, after the installation, the 3rdparty folder does not contain webcam folder.
Finally, I copy the folder and change permission by chmod manually.
But when I plug my webcam, it say "Error opening device. Webcam not connected or does not support video USB class?"
Do I need copy the other files, such as *.so ???
If needed, copy them to where??

Thanks.
allen727hk
I'm New!
I'm New!
 
Posts: 5
Joined: Mon May 14, 2012 4:35 pm

Re: USB Webcam support package

Postby Max_nl » Mon May 14, 2012 5:18 pm

You need to have the two .ko kernel modules, and a device file named video0 in the directory /var/packages/webcam/target.

mknod video0 c 81 0
Max_nl
Novice
Novice
 
Posts: 59
Joined: Tue Mar 20, 2012 4:45 pm

Re: USB Webcam support package

Postby allen727hk » Mon May 14, 2012 6:50 pm

Max_nl wrote:You need to have the two .ko kernel modules, and a device file named video0 in the directory /var/packages/webcam/target.

mknod video0 c 81 0


Thanks for your reply.

I have updated the DSM version to 4.0.
Now the package can normally start/stop/run.
I also run the code in putty "mknod video0 c 81 0".
The page still return the same result.
It is means my webcam does not support USB Video Class??

Here is my print screen
Image
http://dm009.t15.org/upload/lOjk1c8YJ.png

Thanks.
allen727hk
I'm New!
I'm New!
 
Posts: 5
Joined: Mon May 14, 2012 4:35 pm

Re: USB Webcam support package

Postby Max_nl » Mon May 14, 2012 7:08 pm

allen727hk wrote:The page still return the same result.
It is means my webcam does not support USB Video Class??


Correct.
Camera is too old.

There is another Linux kernel module that may work ("N9C20X USB Camera Driver"), but you will have to compile that manually if you want to test that.
Max_nl
Novice
Novice
 
Posts: 59
Joined: Tue Mar 20, 2012 4:45 pm

Re: USB Webcam support package

Postby allen727hk » Mon May 14, 2012 7:13 pm

Max_nl wrote:
allen727hk wrote:The page still return the same result.
It is means my webcam does not support USB Video Class??


Correct.
Camera is too old.

There is another Linux kernel module that may work ("N9C20X USB Camera Driver"), but you will have to compile that manually if you want to test that.


Thanks, this sounds great for a chance.

I want to test the kernel, but I don't know how to compile, could you mind teach me?

Allen
allen727hk
I'm New!
I'm New!
 
Posts: 5
Joined: Mon May 14, 2012 4:35 pm

Re: USB Webcam support package

Postby Max_nl » Mon May 14, 2012 7:23 pm

allen727hk wrote:I want to test the kernel, but I don't know how to compile, could you mind teach me?


http://download.synology.com/download/d ... _Guide.pdf contains instructions on compiling kernel modules.
This does require you have access to a normal computer running Linux, and requires that you have some technical knowledge.
If you are a Windows user, it might be easier to get a new webcam.
Max_nl
Novice
Novice
 
Posts: 59
Joined: Tue Mar 20, 2012 4:45 pm

PreviousNext

Return to Third-party Packages

Who is online

Users browsing this forum: No registered users and 4 guests