webcam integration

Re: webcam integration

Postby fvdw » Sun Aug 11, 2013 9:24 pm

I think it is already in this post

viewtopic.php?f=4&p=10174#p9017

The modules in that post are for a 2.6.39.4 kernel running on nwsp2 but I think they could fine as well for a isp1 (same kernel version if you run fvdw-sl-14-0) although the fact that the isp is based on orion platform and nwsp2 on kirkwood platform could mean that modules for nwsp2 don't work. You try them, if they don't work let me know and I will compile them for the isp1 kernel and orion platform
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: webcam integration

Postby ardescos » Mon Aug 12, 2013 4:21 am

Thanks for your help.

The Cam is still not recognized, but i could have done something the wrong way?
I copied the gspca_main and gspca_spca561 to the isp1, then i connected per SSH and run:
Code: Select all
root@xxxx:/ # modprobe gspca_main
root@xxxx:/ # modprobe gspca_spca561

Lsmod gives me that output, so the kernel modules are loaded i think.
Code: Select all
root@xxxx:/ # lsmod
gspca_spca561 8058 0 - Live 0xbf1f2000
gspca_main 20375 1 gspca_spca561, Live 0xbf1e7000
uvcvideo 55656 0 - Live 0xbf1d2000
v4l2_common 4868 0 - Live 0xbf1cb000
v4l2_int_device 1986 0 - Live 0xbf1c5000
videodev 65354 3 gspca_main,uvcvideo,v4l2_common, Live 0xbf1ac000
iscsi_tcp 7641 0 - Live 0xbf1a4000
libiscsi_tcp 10779 1 iscsi_tcp, Live 0xbf19b000
libiscsi 31551 2 iscsi_tcp,libiscsi_tcp, Live 0xbf18b000
scsi_transport_iscsi 26788 2 iscsi_tcp,libiscsi, Live 0xbf17c000
iscsi_trgt 90727 0 - Live 0xbf15c000
nfsd 88097 0 - Live 0xbf13c000
nfs 149031 0 - Live 0xbf108000
lockd 67464 2 nfsd,nfs, Live 0xbf0ed000
sunrpc 174730 4 nfsd,nfs,lockd, Live 0xbf0af000
usblp 9896 0 - Live 0xbf0a6000
fuse 59962 0 - Live 0xbf08d000
ntfs 208585 0 - Live 0xbf051000
isofs 23061 0 - Live 0xbf045000
cifs 229639 0 - Live 0xbf000000

I then connected the cam direct to the USB Port of the ISP1 and my USB-Device gives me this information:

Code: Select all
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=02.06
S:  Manufacturer=Linux 2.6.39.4 ehci_hcd
S:  Product=Marvell Orion EHCI
S:  SerialNumber=orion-ehci.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=ff Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=046d ProdID=092e Rev=00.00
S:  Manufacturer=       
S:  Product=Camera
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca561
I:  If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=spca561


I still got the "Unable to open video device" Screen.
ardescos
 
Posts: 5
Joined: Tue Dec 11, 2012 7:44 pm

Re: webcam integration

Postby fvdw » Mon Aug 12, 2013 3:26 pm

:scratch
driver is loaded so you would expect that it would work

where do you get this error message ? "Unable to open video device" Screen
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: webcam integration

Postby ardescos » Mon Aug 12, 2013 4:00 pm

From the /webcam/stream_motion.php site.

Seems all fine so far :?
Code: Select all
# ls /dev/video*
/dev/video0
# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 046d:092e Logitech, Inc. QuickCam Chat
You do not have the required permissions to view the files attached to this post.
ardescos
 
Posts: 5
Joined: Tue Dec 11, 2012 7:44 pm

Re: webcam integration

Postby fvdw » Mon Aug 12, 2013 7:08 pm

which browser do you use ?

IE gives problems with videostreams, firefox seems to work ok. But looking to the picture it seems motion is not able to open the video device. The picture shown is from the motion software
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: webcam integration

Postby fvdw » Mon Aug 12, 2013 7:27 pm

if you are familar with Putty (ssh access) you can run motion from the command line and see what it does and which problems it encounters
(the -n option prevent that it goes to daemon mode)

Code: Select all
 /usr/bin/motion -c /share/1000/motion-webcam/motion.conf -p /var/run/motion.pid -n


also output of
Code: Select all
ls -al /dev/video*

could be useful
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: webcam integration

Postby ardescos » Mon Aug 12, 2013 8:01 pm

I have tried Firefox and Chrome, addons deactivated, JS allowed, etc.
I just realized i did not even tried to use IE :lol:

Here is the output:

Code: Select all
# /usr/bin/motion -c /share/1000/motion-webcam/motion.conf -p /var
/run/motion.pid -n
[0] Processing thread 0 - config file /share/1000/motion-webcam/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3356160 LIBAVFORMAT_BUILD 3411200
[0] Thread 1 is from /share/1000/motion-webcam/motion.conf
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8091
[1] Thread 1 started
[1] cap.driver: "spca561"
[1] cap.card: "Camera"
[1] cap.bus_info: "usb-orion-ehci.0-1"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Config palette index 2 (MJPG) doesn't work.
[1] Supported palettes:
[1] 0: S561 (S561)
[1] 1: GBRG (GBRG)
[1] Unable to find a compatible palette format.
[1] ioctl (VIDIOCGCAP): Invalid argument
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8090
[1] Retrying until successful connection with camera
[1] cap.driver: "spca561"
[1] cap.card: "Camera"
[1] cap.bus_info: "usb-orion-ehci.0-1"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING


Code: Select all
# ls -al /dev/video*
crw-rw----  1 root root 81, 0 2013-08-12 20:37 /dev/video0


Seems like the palette is wrong, i will fiddle around with the v4l2_palette entry in the config file and report back :)

And thank you for putting your time into this problem!!!
ardescos
 
Posts: 5
Joined: Tue Dec 11, 2012 7:44 pm

Re: webcam integration

Postby ardescos » Mon Aug 12, 2013 9:11 pm

Seems the palette is not supported by motion and it needs to preload v4l1compat.so of the v4l-library preloaded to work.

I think that might be the point where i should go and buy some uvc-webcam for the surveillance ;)
But thanks for your help, and thanks a lot for this very cool firmware :)
ardescos
 
Posts: 5
Joined: Tue Dec 11, 2012 7:44 pm

Re: webcam integration

Postby fvdw » Mon Aug 12, 2013 9:18 pm

yes I think that that is the problem you need an uvc based webcam, there are many cheap ones available

and no problem to put time in it,done with pleasure
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: webcam integration

Postby frikzy » Sun Jun 01, 2014 6:28 pm

Hi,
I need some help. I have Lacie Network Space vs2 with fvdw 15.3 firmware. When Logitech HD Webcam C270 (UVC) is connected it is recognized, no problem with driver.
When I open video stream, I have video, but soon when there is some motion on video, it stops with blank screen.
As I remember it is so from 15.1 firmware. I tried diferent web browsers (Chrome, Firefox, IE), always the same behavior. Can you try to replicate this problem, please.

Thank you for your great firmware. With 15.3 my USB-Extras works again.
frikzy
Donator VIP
Donator VIP
 
Posts: 13
Joined: Mon Feb 27, 2012 9:06 pm

PreviousNext

Return to Development

Who is online

Users browsing this forum: No registered users and 6 guests