/avconv-photo-timelapse

Use avconv to take photos and create timelapse videos

Primary LanguageShell

Use avconv (ffmpeg) to take photos and assamble timelapse videos

A set of sample bash scripts to take photos with a webcam using avconv (ffempeg) during a specific period every day and assamble them in a daily timelapse that is uploaded to YouTube.

Requirements

  • avconv or ffmpeg for capturing photos and assambling the timelapse.
  • rsync for sending photos to a backup server on hourly basis.
  • youtube-upload for uploading daily timelapse to YouTube

Sample video

OSCar eO Build was created using a similar approach.

Crontab Examples

Use crontab -e to edit the Cronjob file for your user.

# Take a photo every minute
*/1 * * * * /home/kaspars/take-photo-cron.sh

# Take a photo every 5 minutes
*/5 * * * * /home/kaspars/take-photo-cron.sh

# Make a short video every day at 11:30
30 11 * * * /home/kaspars/make-video-cron.sh

# Rsync files every hour at minute 5
5 * * * *   /home/kaspars/rsync-cron.sh