====== Linux Timelapse ====== mit Motion ===== Config ===== start_motion_daemon=yes videodevice /dev/video1 width 1280 height 720 quality 90 snapshot_interval 5 target_dir /tmp/motion snapshot_filename %s webcam_port 0 control_port 0 ===== Create Timelapse Video ===== Das Paket ffmpeg ist jetzt unter ''libav-tools'' zu finden apt-get install libav-tools # change to motion storage cd /tmp/motion # create temp dir if not exists if [ ! -d "./tmp/" ]; then mkdir ./tmp/ fi # clear temp dir rm ./tmp/* # copy all captured images to temp dir, an rename it to 00000.jpg x=1; for i in *.jpg; do counter=$(printf %06d $x); cp "$i" ./tmp/img"$counter".jpg; x=$(($x+1)); done # acvonv=ffmpeg avconv -r 30 -i ./tmp/img%06d.jpg -s hd720 -vcodec libx264 time-lapse.mp4 # clear temp dir rm ./tmp/* ===== Live Image in Browser ===== Läd einmal pro Sekunde das angegebende Bild neu.