Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
pub:linux-webcam [2013/07/15 18:20]
Marco Krage
pub:linux-webcam [2014/03/16 22:25] (aktuell)
Marco Krage
Zeile 1: Zeile 1:
 ====== Linux Webcam ====== ====== Linux Webcam ======
-[[http://dyn.my-azur.de/webcam/|{{http://dyn.my-azur.de/webcam/live.jpg}}]]+<del>Live Bild</del>
  
 ===== Live Image ===== ===== Live Image =====
Zeile 6: Zeile 6:
   - motion saves image every 15 seconds to ''/var/www/webcam/lastsnap.jpg''   - motion saves image every 15 seconds to ''/var/www/webcam/lastsnap.jpg''
   - after that ''on_picture_save'' command [[http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigOptionOnPictureSave|from motion.conf]] runs ''webcam-cleanup.sh''   - after that ''on_picture_save'' command [[http://www.lavrsen.dk/foswiki/bin/view/Motion/ConfigOptionOnPictureSave|from motion.conf]] runs ''webcam-cleanup.sh''
-  - this script copys ''lastsnap.jpg'' to ''live.jpg'', writes a timestamp to ''/var/www/webcam/lastsnap.txt'' and sets the rights so the webserver can access ''live.jpg''  +  - this script copies ''lastsnap.jpg'' to ''live.jpg'', writes a timestamp to ''/var/www/webcam/lastsnap.txt'' and sets the rights so the webserver can access ''live.jpg''  
-  - index.html displays the ''live.jpg'' on load and every 15 seconds the ''lastsnap.txt'' is fechted via ajax. If this timestamp changed, the life.jpg is reloaded with [[http://stackoverflow.com/a/1077051|cache breaker]]+  - index.html displays the ''live.jpg'' and every seconds the ''lastsnap.txt'' is fetched via ajax. If this timestamp changed, the ''live.jpg'' is reloaded with [[http://stackoverflow.com/a/1077051|cache breaker]]
  
 ===== Archiving ===== ===== Archiving =====
Zeile 14: Zeile 14:
   - it copys the ''live.jpg'' to the ''archiv/<current-timestamp>.jpg''   - it copys the ''live.jpg'' to the ''archiv/<current-timestamp>.jpg''
  
 +===== Zeitraffer =====
 +<code bash>ffmpeg -r 30 -i input%03d.jpg -codec copy output.mkv</code>
 +Die Framerate gibt ''-r'' an. Bilder müssen fortlaufend und lückenlos im Format ''input000.jpg'' bekannt sein.
 +
 +
 +===== Sourcecode on GitHub =====
 +
 +https://github.com/sinky/raspberrypi-webcam
 <html> <html>
 <div class="repo-file" data-user="sinky" data-repo="raspberrypi-webcam"></div> <div class="repo-file" data-user="sinky" data-repo="raspberrypi-webcam"></div>
 </html> </html>
pub/linux-webcam.1373905256.txt.gz · Zuletzt geändert: 2013/12/06 19:12 (Externe Bearbeitung)