Log in

Bekijk de volledige versie : logitech quickcam pro 4000



wpte
26-06-2008, 01:14
hello guys,

after a long time searching and bidding on ebay i finally found one of these working webcams.
basicly it works fine with oleg firmare, but it does take nearly 100% of the cpu even when you're not watching or setting it to a lower resolution :(
now i had this idea to disable to cam and hope the drivers would load up, but the heavy proces would stay away so "motion" could do the job.
unfortunately, the cam didnt appeared on /dev/video0 anymore.
i couldnt find any working drivers on ipkgfind, so is there an insimod for this or something?
it is the pwc driver :)
at least... that is what the router said.
thanks

dyonisos
26-06-2008, 20:53
how about
insmod videodev
insmod pwc
insmod pwcx

wpte
26-06-2008, 23:14
ah thanks :)
how do you know these insmods anyway?
or do you just guess:confused:

I still have problems loading the webcam tough...
I get a response on /dev/video0
while it's really in /dev/v41/video0
but then it says it doesnt exist
but on the /dev/video0 I can't view any video while it's properly loaded up in the log:confused:
any idea?

wpte
26-06-2008, 23:34
Oh, I have the right video device now...
but, next problem:


Jun 26 23:30:09 syslog: [0] Processing thread 0 - config file /opt/etc/motion.conf
Jun 26 23:30:09 syslog: [0] Unknown config option "minimum_gap"
Jun 26 23:30:09 syslog: [0] Unknown config option "sql_log_image"
Jun 26 23:30:09 syslog: [0] Unknown config option "sql_log_snapshot"
Jun 26 23:30:09 syslog: [0] Unknown config option "sql_log_mpeg"
Jun 26 23:30:09 syslog: [0] Unknown config option "sql_log_timelapse"
Jun 26 23:30:09 syslog: [0] Unknown config option "sql_query"
Jun 26 23:30:09 syslog: [0] Motion 3.2.9 Started
Jun 26 23:30:09 syslog: [0] Motion running as daemon process
Jun 26 23:30:09 syslog: [0] ffmpeg LIBAVCODEC_BUILD 3356160 LIBAVFORMAT_BUILD 3411200
Jun 26 23:30:09 syslog: [0] Thread 1 is from /opt/etc/motion.conf
Jun 26 23:30:09 syslog: [1] Failed with all supported palettes - giving up: Invalid argument
Jun 26 23:30:09 syslog: [1] Capture error calling vid_start

so, I've tried out some palletes... didn't quite work:(
anyone?

dyonisos
26-06-2008, 23:42
I have never used motion -maybe parameter issue in motion.conf file?- have you tried mvc application alternatively? Cheers

wpte
26-06-2008, 23:57
I have never used motion -maybe parameter issue in motion.conf file?- have you tried mvc application alternatively? Cheers

I know, I've been trough the whole config file, there is an option how to set the pallete... it's just on default now.

where can I get this mvc application?
google says nothing and ipkgfind doesnt know:confused:

dyonisos
27-06-2008, 13:57
pwc/pwcx - Driver

# pwc-Paket (Driver, setpwc, Mvc, Camsrv, JavaApplet, Startscript ...)
ipkg install http://weimarnetz.de/ipkg/packages/philips-webcam_0.2_mipsel.ipk

wpte
27-06-2008, 14:02
motion seems to have problems with logitech drivers after some searching:(

this is the output when I try to do your thing:

ipkg install http://weimarnetz.de/ipkg/packages/philips-webcam_0.2_mipsel.ipk
Downloading http://weimarnetz.de/ipkg/packages/philips-webcam_0.2_mipsel.ipk
Installing philips-webcam (0.2) to /opt/...
ipkg: /www/CamClient.class: Read-only file system
ipkg: /www/CamClient.html: Read-only file system
ipkg: /www/CamMonitor.class: Read-only file system
ipkg: /www/CamMonitor.html: Read-only file system
ipkg: /www/offline.jpg: Read-only file system
ipkg: /bin/mvc: Read-only file system
ipkg: /bin/setpwc: Read-only file system
ipkg: /bin/camsrv: Read-only file system
ipkg: extract_archive: /lib/modules/2.4.30/: Read-only file system
ipkg: /lib/modules/2.4.30/pwc.o: No such file or directory
ipkg: /lib/modules/2.4.30/pwcx.o: No such file or directory
ipkg: extract_archive: /CONTROL/: Read-only file system
ipkg: /CONTROL/control: No such file or directory
Configuring philips-webcam
Successfully terminated.


I don't think this is right:p

dyonisos
27-06-2008, 22:12
it says successfully terminated... try /bin/mvc or wherever mvc has been loaded

mvc -h gives the command options

mvc version 0.8.9 - motion detection video capture program

Usage: mvc <options>

-B picture brightness value.
-C picture contrast value.
-D run in daemon mode.
-O Base directory for output images. default is current dir.
-o Don't create sub-directories for output.
-t Print timestamp on image.
-d <device> video device (default:/dev/video0).
-e <program> excute a external program while motion detected.
-f {jpeg|png} set output file format. default is jpeg.
-q <quality> jpeg quality setting.
-h print this help.
-i <channel> which input channel to use, default is 1, or 0 if only 1 input.
-m use mono color (grayscale) for capture.
-n {pal|ntsc|secam|auto} video norm to use, default: PAL
-s XxY size of the output image, example: -s 640x480
-a HxV block division number in Horizantal and Vertical. Ex: -a 16x8
-b <diff_block_limit> threshold of hot block number.
-c <diff_color_limit> threshold of block color difference.
-w delay time for each capture(seconds), example: -w 0.5
-l logfile used in daemon mode. default is null.
-v increase verbose level for more details, can multiple applied.

it works for both Logitech and Philips webcams

dyonisos

wpte
28-06-2008, 00:04
it says "Read-only file system" in the installation, so it can't write.

I can't find the program as it isn't installing to /opt:confused:
I tried:

/sbin/mvc
/bin/mvc
mvc

nothing:rolleyes:

dyonisos
28-06-2008, 16:23
I have mvc installed on /tmp/harddisk/mvc with 2 subdirectories bin and lib.
bin consists of setpwc, mvc and camsrv. lib holds under ./modules/2.4.20 pwc.o and pwcx.o object driver files. That's it.
There is something wrong with your installation.

maybe you try to re-install.... and prior to that do a find / -name mvc as it was loaded somewhere.

dyonisos

wpte
28-06-2008, 18:15
I think this is not an optware package
what kinda parameters does ipkg need to install it to a specific directory?
as far as the ipkg parameter list on my router goes, it doesn't know any.

it's trying to install to root, not to opt:rolleyes:
as long as it can't write, I can't load the program:p

wpte
29-06-2008, 23:55
I have still no good working program for my webcam...
I would like to view it life, and maybe some motion detection that writes to disk:)

anyone have a good program in mind?
I've searched already and try to compile some stuff... no good luck:(

dyonisos
30-06-2008, 00:18
Hi

please try following link for mvc:

http://tom.stoeveken.com/programme/philips-webcam/philips-webcam_0.1_mipsel.ipk

[admin@router mnt]$ wget http://tom.stoeveken.com/programme/philips-webcam/philips-webcam_0.1_mipsel.ipk
Connecting to tom.stoeveken.com[213.203.199.171]:80
philips-webcam_0.1_m 100% |*****************************| 191 KB 00:00 ETA
[admin@router mnt]$ tar zxpvf philips-webcam_0.1_mipsel.ipk
./debian-binary
./data.tar.gz
./control.tar.gz
[admin@router mnt]$ tar zxpvf data.tar.gz
.
./www
./www/CamClient.class
./www/CamClient.html
./www/CamMonitor.class
./www/CamMonitor.html
./www/offline.jpg
./bin
./bin/mvc
./bin/setpwc
./bin/camsrv
./lib
./lib/modules
./lib/modules/2.4.20
./lib/modules/2.4.20/pwc.o
./lib/modules/2.4.20/pwcx.o
[admin@router 1]$ls -la
drwxr-sr-x 5 admin root 1024 May 18 01:06 .
drwxr-xr-x 5 admin root 13312 May 18 01:04 ..
drwxr-sr-x 2 admin root 1024 May 18 01:06 bin
-rw-r--r-- 1 1000 1000 399 Dec 23 21:46 control.tar.gz
-rw-r--r-- 1 1000 1000 195859 Dec 23 21:46 data.tar.gz
-rw-r--r-- 1 1000 1000 4 Dec 23 21:46 debian-binary
drwxr-sr-x 3 admin root 1024 May 18 01:06 lib
-rw-r--r-- 1 admin root 196314 May 18 01:05 philips-webcam_0.1_mipsel.ipk
drwxr-sr-x 2 admin root 1024 May 18 01:06 www
[admin@router mnt]$

For live viewing have you tried palantir? It supports also audio and much more.

Cheers dyonisos

wpte
30-06-2008, 13:11
that worked better:)

/opt/mvc/bin/camsrv -r QSIF -d 1 -v --device /dev/v4l/video0 -q 100
Video device: /dev/v4l/video0
Streaming capture delay: 1s
No Philips webcam detected.
Requested dimensions: 160 120
Actual dimensions: 160 120
Initialising server
Listening for connections on port 4940
Got connection from 192.168.2.100


the only problem is, small image output (can't get it higher than 160x120, just doesnt allow me) and 60% cpu even when I choose for a lower framerate:(


the palantir also works a bit, I got it compiled...
but it kinda fails at starting:

palantir -d /dev/v4l/video0 -s 352x288 -j 100
Jun 30 13:08:33 [main] -- palantir 2.7 starting --
Jun 30 13:08:33 [main] Definitions for 7 devices found
Jun 30 13:08:33 [main] No serial port specified
Jun 30 13:08:33 [main] No named pipe specified
Jun 30 13:08:33 [video] Card: Logitech QuickCam Pro 4000 (/dev/v4l/video0)
Jun 30 13:08:33 [video] Capabilities: 1 (capture )
Jun 30 13:08:33 [video] Size: (160x120)-(352x288)
Jun 30 13:08:33 [video] Channel no. 0 ('Webcam') tuners: 0, flags: 0, type: 2, norm: 10927
Jun 30 13:08:34 [video] Unmuted audio input 0
Jun 30 13:08:34 [video] Audio input 0 does not support volume control
Jun 30 13:08:34 [video] RGB palette unavailable.
Jun 30 13:08:34 [video] trying YUV420P...
Jun 30 13:08:34 [video] brightness: 32768 hue: 65535 colour: 32768
Jun 30 13:08:34 [video] contrast: 32768 whiteness: 32768
Jun 30 13:08:34 [video] depth: (24) palette: 15
Jun 30 13:08:34 [video] ** Fatal error: SWIN: No such file or directory
can't get it started so far, it looks more promising to me tough:p


edit:
the log replied with this:

Jun 30 13:01:48 kernel: pwc Video mode SIF@15 fps is only supported with the decompressor module (pwcx).
Jun 30 13:02:36 kernel: pwc Video mode SIF@10 fps is only supported with the decompressor module (pwcx).
Jun 30 13:02:42 kernel: pwc Closing video device: 48 frames received, dumped 0 frames, 0 frames with errors.

that means the mvc uses a decompressor module?

wpte
30-06-2008, 14:40
ok, the solution:
turn on the webcam in the admin interface.

do this:

vi /usr/local/sbin/post-boot

and paste:

#stop the rcamd process
kill 'cat /tmp/var/run/rcamd.pid
#start the proper rcamd
rcamd -s 1 -f 640x480 -p 7777

save it and reboot with:

flashfs save && flashfs commit && flashfs enable && reboot

now rcamd -s 1 will only output 1fps, wich lowers the cpu-usage to about 20%
unfortunately................
the kill 'cat is not working properly:rolleyes:
uhm.. does anyone know how to end it via the pid file?:)

newbiefan
30-06-2008, 22:49
kill `pidof rcamd`
have fun....

wpte
01-07-2008, 00:15
thank you man :)
it workzzz:D

I had to place the commands in /opt/etc/init.d tough
somehow it wouldn't work in the post and pre files:confused: