Zeile 1: |
Zeile 1: |
| {{TOCRight}} | | {{TOCRight}} |
− |
| |
− | Dies ist eine Anleitung, wie man aus Freifunk Geräten eine mobile Webcam bastelt. Diese Anleitung ist aktueller als [http://wiki.leipzig.freifunk.net/Asus_WL-HDD2.5 die aus Leipzig]
| |
| == Benoetigte Pakete == | | == Benoetigte Pakete == |
| | | |
Zeile 113: |
Zeile 111: |
| | | |
| === pwc/pwcx === | | === pwc/pwcx === |
| + | |
| <pre> | | <pre> |
| ipkg install http://141.54.160.25/dave/philips-webcam_0.2_mipsel.ipk | | ipkg install http://141.54.160.25/dave/philips-webcam_0.2_mipsel.ipk |
Zeile 142: |
Zeile 141: |
| camsrv -D /dev/v4l/video0 -r VGA -c 0 -F 5 & | | camsrv -D /dev/v4l/video0 -r VGA -c 0 -F 5 & |
| </pre> | | </pre> |
− |
| |
| | | |
| ==== setpwc ==== | | ==== setpwc ==== |
Zeile 183: |
Zeile 181: |
| ** [http://www.saillard.org/linux/pwc/ http://www.saillard.org/linux/pwc/] | | ** [http://www.saillard.org/linux/pwc/ http://www.saillard.org/linux/pwc/] |
| ** [http://www.smcc.demon.nl/webcam/ http://www.smcc.demon.nl/webcam/] | | ** [http://www.smcc.demon.nl/webcam/ http://www.smcc.demon.nl/webcam/] |
− | ** [http://www.vanheusden.com/setpwc/ http://www.vanheusden.com/setpwc/]
| |
− |
| |
| | | |
| === ov511 / ov51x === | | === ov511 / ov51x === |
Zeile 197: |
Zeile 193: |
| * Projektseite: | | * Projektseite: |
| ** [http://ovcam.org/ov511/ http://ovcam.org/ov511/] | | ** [http://ovcam.org/ov511/ http://ovcam.org/ov511/] |
− |
| |
| | | |
| === Quickcam Messenger === | | === Quickcam Messenger === |
Zeile 206: |
Zeile 201: |
| ** [http://home.mag.cx/messenger/ http://home.mag.cx/messenger/] | | ** [http://home.mag.cx/messenger/ http://home.mag.cx/messenger/] |
| | | |
| + | == Programme == |
| | | |
− | == Programme ==
| |
| | | |
| === SpcaCat === | | === SpcaCat === |
Zeile 276: |
Zeile 271: |
| ln -s /dev/v4l/video0 /dev/video0 | | ln -s /dev/v4l/video0 /dev/video0 |
| | | |
− | # SpcaCat starten
| + | while true |
− | spcacat -d /dev/video0 -g -f jpg -s 320x240 -p 10000 -o > /dev/null & | + | do |
| + | spcacat -d /dev/video0 -g -f jpg -s 320x240 -p 1000 -o > /dev/null & |
| + | sleep 2 |
| + | killall spcacat |
| + | killall -9 spcacat |
| + | sleep 1 |
| + | mv $TEMP $REAL |
| + | sleep 15 |
| + | done & |
| </pre> | | </pre> |
| | | |
Zeile 288: |
Zeile 291: |
| * Projektseite: | | * Projektseite: |
| ** [http://mxhaard.free.fr/index.html http://mxhaard.free.fr/index.html] - spca5xx Driver und Viewer | | ** [http://mxhaard.free.fr/index.html http://mxhaard.free.fr/index.html] - spca5xx Driver und Viewer |
− |
| |
| | | |
| === Motion === | | === Motion === |
Zeile 315: |
Zeile 317: |
| height 240 | | height 240 |
| | | |
− | quality 70 | + | quality 60 |
− | framerate 2 | + | framerate 1 |
| auto_brightness on | | auto_brightness on |
| | | |
Zeile 325: |
Zeile 327: |
| saturation 0 | | saturation 0 |
| hue 0 | | hue 0 |
− |
| |
− | # ploetzlichen Lichteinfall daempfen
| |
− | lightswitch 30
| |
| | | |
| # Target base directory for pictures and films | | # Target base directory for pictures and films |
Zeile 333: |
Zeile 332: |
| target_dir /tmp | | target_dir /tmp |
| jpeg_filename bild | | jpeg_filename bild |
− |
| |
− | # Speicherpause um das Geraet zu schonen
| |
− | minimum_gap 30
| |
− |
| |
− | # min. Bewegungen bis motion ausloest
| |
− | minimum_motion_frames 10
| |
| | | |
| # Define a port number (e.g. 8000) to enable the mini-http server | | # Define a port number (e.g. 8000) to enable the mini-http server |
Zeile 349: |
Zeile 342: |
| | | |
| webcam_quality 40 | | webcam_quality 40 |
− | webcam_maxrate 1 | + | webcam_maxrate 2 |
| | | |
| # User defined text overlayed on each in the lower left corner | | # User defined text overlayed on each in the lower left corner |
Zeile 379: |
Zeile 372: |
| ln -s /tmp/bild.jpg /www/bild.jpg | | ln -s /tmp/bild.jpg /www/bild.jpg |
| | | |
− | # motion starten | + | # motion starten |
− | motion | + | while true |
| + | do |
| + | motion |
| + | sleep 900 |
| + | killall motion |
| + | killall -9 motion |
| + | sleep 2 |
| + | done & |
| </pre> | | </pre> |
| | | |
Zeile 391: |
Zeile 391: |
| * Projektseite: | | * Projektseite: |
| ** [http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome] - Motion Wiki | | ** [http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome] - Motion Wiki |
− |
| |
| | | |
| === Camsrv === | | === Camsrv === |
Zeile 450: |
Zeile 449: |
| </pre> | | </pre> |
| | | |
| + | === Mvc === |
| | | |
− | === Mvc ===
| |
| einfaches motion capture Programm | | einfaches motion capture Programm |
| | | |
Zeile 481: |
Zeile 480: |
| -v increase verbose level for more details, can multiple applied. | | -v increase verbose level for more details, can multiple applied. |
| </pre> | | </pre> |
− |
| |
− |
| |
− | == Automation ==
| |
− | Cronjob einrichten: (z.B. aller 5min. Neustarten)
| |
− |
| |
− | <pre>
| |
− | vi /etc/init.d/S51crond
| |
− |
| |
− | 0-59/5 * * * * /usr/sbin/cron.5minutely
| |
− | </pre>
| |
− |
| |
− | einfügen.
| |
− |
| |
− | <pre>
| |
− | vi /usr/sbin/cron.5minutely
| |
− |
| |
− | #!/bin/sh
| |
− | killall -9 motion
| |
− | logger "motion gekilld"
| |
− | sleep 5
| |
− | /usr/bin/motion -c /etc/motion.conf
| |
− | </pre>
| |
− |
| |
− | berechtigungen noch setzen mit
| |
− |
| |
− | <pre>
| |
− | chmod 0777 /usr/sbin/cron.5minutely
| |
− | </pre>
| |
− |
| |
| | | |
| == Anzeigen auf dem Router == | | == Anzeigen auf dem Router == |
Zeile 521: |
Zeile 491: |
| | | |
| <pre> | | <pre> |
− | <TR><TD> | + | <TR><TD>^M |
− | <DIV CLASS="plugin"><A CLASS="plugin" HREF="cgi-bin-webcam.html">Webcam</A></DIV></TD>
| + | <DIV CLASS="plugin"><A CLASS="plugin" HREF="cgi-bin-webcam.html">Webcam</A></DIV></TD>^M |
− | </TR> | + | </TR>^M |
| </pre> | | </pre> |
− |
| |
| Dann noch die Site anlegen | | Dann noch die Site anlegen |
− |
| |
| <pre> | | <pre> |
| cd /www | | cd /www |
Zeile 535: |
Zeile 503: |
| und Text einfügen: | | und Text einfügen: |
| | | |
| + | === als Bild === |
| | | |
− | === als Bild ===
| |
| <pre> | | <pre> |
| #!/bin/sh | | #!/bin/sh |
Zeile 562: |
Zeile 530: |
| </pre> | | </pre> |
| | | |
| + | === Mit Java Applet === |
| | | |
− | === Mit Java Applet ===
| |
| <pre> | | <pre> |
| #!/bin/sh | | #!/bin/sh |
Zeile 586: |
Zeile 554: |
| </pre> | | </pre> |
| | | |
− | * das Applet --> [http://www.charliemouse.com/code/cambozola/index.html Cambozola-Viewer + Server] | + | *das Applet --> [http://www.charliemouse.com/code/cambozola/index.html Cambozola-Viewer + Server] |
− | * das offline.jpg ist automatisch dabei wenn ihr das PWC-Modul installiert habt | + | *das offline.jpg ist automatisch dabei wenn ihr das PWC-Modul installiert habt |
| | | |
| | | |
| == Geräte die getestet wurden == | | == Geräte die getestet wurden == |
| + | |
| {| {{Prettytable}} | | {| {{Prettytable}} |
| !Fabrikat | | !Fabrikat |
Zeile 621: |
Zeile 590: |
| |------ | | |------ |
| |Philips ToUcam Pro II PCVC 840 | | |Philips ToUcam Pro II PCVC 840 |
− | |0x471/0x311 | + | | |
| |pwc | | |pwc |
| |motion, camsrv, mvc | | |motion, camsrv, mvc |