how about
insmod videodev
insmod pwc
insmod pwcx
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
how about
insmod videodev
insmod pwc
insmod pwcx
ah thanks
how do you know these insmods anyway?
or do you just guess
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
any idea?
Oh, I have the right video device now...
but, next problem:
so, I've tried out some palletes... didn't quite workJun 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
anyone?
I have never used motion -maybe parameter issue in motion.conf file?- have you tried mvc application alternatively? Cheers
pwc/pwcx - Driver
# pwc-Paket (Driver, setpwc, Mvc, Camsrv, JavaApplet, Startscript ...)
ipkg install http://weimarnetz.de/ipkg/packages/p...0.2_mipsel.ipk
motion seems to have problems with logitech drivers after some searching
this is the output when I try to do your thing:
I don't think this is rightipkg install http://weimarnetz.de/ipkg/packages/p...0.2_mipsel.ipk
Downloading http://weimarnetz.de/ipkg/packages/p...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.
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
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
I tried:
/sbin/mvc
/bin/mvc
mvc
nothing
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
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
as long as it can't write, I can't load the program
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
Hi
please try following link for mvc:
http://tom.stoeveken.com/programme/p...0.1_mipsel.ipk
[admin@router mnt]$ wget http://tom.stoeveken.com/programme/p...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
Last edited by dyonisos; 29-06-2008 at 23:23. Reason: addendum
that worked better
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/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 palantir also works a bit, I got it compiled...
but it kinda fails at starting:
can't get it started so far, it looks more promising to me toughpalantir -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
edit:
the log replied with this:
that means the mvc uses a decompressor module?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.
Last edited by wpte; 30-06-2008 at 12:18.