Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
webcam:mjpeg [2008/10/28 12:33] – gerald | webcam:mjpeg [2024/02/29 13:36] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | MJPEG Webcam | + | ====== |
- | + | ||
- | Chinesische Billigwebcam mit WLAN | + | |
- | Firmware v1.28 (Sep 14 2007 10:09:45) | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | [[http:// | + | |
- | + | ||
- | IP Address : 192.168.122.223 | + | |
- | + | ||
- | Subnet Mask : 255.255.255.0 | + | |
- | + | ||
- | Gateway : 192.168.123.1 | + | |
- | + | ||
- | DNS Server : 192.168.123.1 | + | |
- | + | ||
- | MAC Address : 00: | + | |
- | + | ||
- | Video Port : 4321 | + | |
- | + | ||
- | HTTP Port : 80 | + | |
- | + | ||
- | + | ||
- | ===== Ziel: mjpeg auf dem Browser ===== | + | |
- | + | ||
- | Problem: Keine Dokumentation. Webinterface soll das zwar können, aber JAvaScript zu schlecht. | + | |
- | + | ||
- | < | + | |
- | + | ||
- | mplayer http:// | + | |
- | + | ||
- | + | ||
- | Webinterface ruft folgendes JavaScript auf: | + | |
- | + | ||
- | http:// | + | |
- | < | + | |
- | document.write('< | + | |
- | document.write('< | + | |
- | document.write('< | + | |
- | document.write('< | + | |
- | document.write('< | + | |
- | document.write('< | + | |
- | document.write('</ | + | |
- | + | ||
- | Das Plugin kann man mit < | + | |
- | wget http:// | + | |
- | </ | + | |
- | + | ||
- | Das Plugin ist von der Firma ' | + | |
- | + | ||
- | Ruby-Skript, | + | |
- | <code ruby> | + | |
- | # | + | |
- | + | ||
- | # Script to extract images from the Hawking HNC230G | + | |
- | # | + | |
- | # Copyright (C) Tim Haynes | + | |
- | # HNC230G{at}stirfried.vegetable.org.uk | + | |
- | # | + | |
- | # Redistributable under the terms of the GNU Public License: see | + | |
- | # < | + | |
- | # | + | |
- | # Requires ruby, imagemagick | + | |
- | # | + | |
- | + | ||
- | nopics=ARGV[1] || " | + | |
- | nopics=nopics.to_i | + | |
- | + | ||
- | require ' | + | |
- | require ' | + | |
- | + | ||
- | xsize,ysize=640,480 | + | |
- | + | ||
- | puts " | + | |
- | + | ||
- | s=TCPSocket.new(' | + | |
- | + | ||
- | nopics.times { |n| | + | |
- | + | ||
- | puts " | + | |
- | s.puts(" | + | |
- | + | ||
- | len=s.read(2).reverse.unpack(" | + | |
- | 2.times {s.getc } | + | |
- | + | ||
- | puts "Len: # | + | |
- | jpeg=s.read(len) | + | |
- | + | ||
- | puts " | + | |
- | + | ||
- | img=Magick:: | + | |
- | + | ||
- | puts " | + | |
- | img.write(" | + | |
- | + | ||
- | } | + | |
- | </ | + | |
+ | [[webcam: |