| Zeile 454: |
Zeile 454: |
| | </pre> | | </pre> |
| | | | |
| − | ähnlich wie motion auch sound-streaming möglich.
| + | Nun noch die Config-Datei von palantir einstellen. |
| | + | |
| | + | <pre> |
| | + | vi /etc/palantir.conf |
| | + | |
| | + | ## |
| | + | ## Global options |
| | + | ## |
| | + | |
| | + | VideoDevice /dev/v4l/video0 |
| | + | |
| | + | FrameSize 640x480 |
| | + | |
| | + | FrameRate 5 |
| | + | |
| | + | JpegQuality 70 |
| | + | |
| | + | Audio Off |
| | + | |
| | + | TCPPort 8000 |
| | + | |
| | + | ControlTimeout 30 |
| | + | |
| | + | ClientTimeout 300 |
| | + | |
| | + | MaxStreamingClients 3 |
| | + | |
| | + | # Nimm die folgende Auskommentierung weg, willst du eine pan/tilt Kamera wie |
| | + | # z.b. Logitech Sphere betreiben: |
| | + | # |
| | + | #Device { |
| | + | # Carrier Internal 5 |
| | + | # Direction readwrite |
| | + | # Name "Pan" |
| | + | # Hint "Camera pan" |
| | + | # Range -7000 7000 |
| | + | # Notifier client |
| | + | # Visual Slider_X |
| | + | # } # |
| | + | #Device { |
| | + | # Carrier Internal 6 |
| | + | # Direction readwrite |
| | + | # Name "Tilt" |
| | + | # Hint "Camera tilt" |
| | + | # Range -3000 2500 |
| | + | # Notifier client |
| | + | # Visual Slider_Y |
| | + | # } |
| | + | </pre> |
| | + | |
| | + | dann starten mit |
| | + | |
| | + | <pre> |
| | + | palantir -C /etc/palantir.conf >/dev/null& |
| | + | </pre> |
| | + | |
| | + | Jetzt den Stream mit speziellen JavaApplet (pclient.jar) in einer Website ansehen: |
| | + | |
| | + | <pre> |
| | + | cd /www |
| | + | wget http://141.54.160.25/dave/http-java-applet/pclient.jar |
| | + | |
| | + | vi cgi-bin-stream.html |
| | + | |
| | + | #!/bin/sh |
| | + | |
| | + | export DATE="18.11.2006";SCRIPT=${0#/rom} |
| | + | export TITLE="Webcam" |
| | + | . ${SCRIPT%/*}/cgi-bin-pre.sh |
| | + | |
| | + | cat<<EOF |
| | + | <center> |
| | + | <H1>LiveCam</H1> |
| | + | <applet code="pclient.class" archive="pclient.jar" width="750" height="580" > |
| | + | <param name="server" value="127.0.0.1"> |
| | + | <param name="port" value="8000"> |
| | + | <param name="autostart" value="1"> |
| | + | <strong>You need to download Java.<br> |
| | + | Click <a href="http://www.java.com/en/download/manual.jsp">here:http://www.java.com/en/download/manual.jsp</a></strong><br> |
| | + | </applet> |
| | + | </center> |
| | + | EOF |
| | + | |
| | + | . ${SCRIPT%/*}/cgi-bin-post.sh |
| | + | </pre> |
| | | | |
| | * Projektseite: | | * Projektseite: |