Änderungen

Zur Navigation springen Zur Suche springen
689 Bytes hinzugefügt ,  15:40, 27. Mär. 2007
keine Bearbeitungszusammenfassung
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 111: Zeile 113:     
=== 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 141: Zeile 142:  
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 181: Zeile 183:  
** [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 193: Zeile 197:  
* Projektseite:
 
* Projektseite:
 
** [http://ovcam.org/ov511/ http://ovcam.org/ov511/]
 
** [http://ovcam.org/ov511/ http://ovcam.org/ov511/]
 +
    
=== Quickcam Messenger ===
 
=== Quickcam Messenger ===
Zeile 200: Zeile 205:  
* Projektseite:
 
* Projektseite:
 
** [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 271: Zeile 276:  
ln -s /dev/v4l/video0 /dev/video0
 
ln -s /dev/v4l/video0 /dev/video0
   −
while true
+
# SpcaCat starten
do
+
spcacat -d /dev/video0 -g -f jpg -s 320x240 -p 10000 -o > /dev/null &
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 291: Zeile 288:  
* 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 317: Zeile 315:  
height 240
 
height 240
   −
quality 60
+
quality 70
framerate 1
+
framerate 2
 
auto_brightness on
 
auto_brightness on
   Zeile 327: Zeile 325:  
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 332: Zeile 333:  
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 342: Zeile 349:     
webcam_quality 40
 
webcam_quality 40
webcam_maxrate 2
+
webcam_maxrate 1
    
# User defined text overlayed on each in the lower left corner
 
# User defined text overlayed on each in the lower left corner
Zeile 372: Zeile 379:  
ln -s /tmp/bild.jpg /www/bild.jpg
 
ln -s /tmp/bild.jpg /www/bild.jpg
 
            
 
            
# motion starten
+
# motion starten            
while true
+
motion          
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 448: Zeile 449:  
VGA            640x480
 
VGA            640x480
 
</pre>
 
</pre>
 +
    
=== Mvc ===
 
=== Mvc ===
   
einfaches motion capture Programm
 
einfaches motion capture Programm
   Zeile 480: Zeile 481:  
  -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 491: Zeile 521:     
<pre>
 
<pre>
<TR><TD>^M
+
<TR><TD>
            <DIV CLASS="plugin"><A CLASS="plugin" HREF="cgi-bin-webcam.html">Webcam</A></DIV></TD>^M
+
        <DIV CLASS="plugin"><A CLASS="plugin" HREF="cgi-bin-webcam.html">Webcam</A></DIV></TD>
          </TR>^M
+
</TR>
 
</pre>
 
</pre>
 +
 
Dann noch die Site anlegen
 
Dann noch die Site anlegen
 +
 
<pre>
 
<pre>
 
cd /www
 
cd /www
Zeile 502: Zeile 534:     
und Text einfügen:
 
und Text einfügen:
 +
    
=== als Bild ===
 
=== als Bild ===
   
<pre>
 
<pre>
 
#!/bin/sh
 
#!/bin/sh
Zeile 529: Zeile 561:  
. ${SCRIPT%/*}/cgi-bin-post.sh
 
. ${SCRIPT%/*}/cgi-bin-post.sh
 
</pre>
 
</pre>
 +
    
=== Mit Java Applet ===
 
=== Mit Java Applet ===
   
<pre>
 
<pre>
 
#!/bin/sh
 
#!/bin/sh
Zeile 554: Zeile 586:  
</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 590: Zeile 621:  
|------
 
|------
 
|Philips ToUcam Pro II PCVC 840
 
|Philips ToUcam Pro II PCVC 840
|
+
|0x471/0x311
 
|pwc
 
|pwc
 
|motion, camsrv, mvc
 
|motion, camsrv, mvc

Navigationsmenü