-
Notifications
You must be signed in to change notification settings - Fork 102
How to Make a Timelapse Video from Images
makevideo.sh uses avconv to create timelapse videos from images
- How to Make a Video from Images
- Edit video.conf Settings
- How to Run makevideo.sh
- Copy Archive Video to a Network Share
- How to Automate makevideo.sh
makevideo.sh script creates a timelapse video from motion or timelapse images. avconv is used to create an mp4 or avi timelapse video from the source jpg files in source folder (default is /home/pi/pi-timolo/timelapse). A temporary working folder is created since avconv requires consecutively numbered filenames. I often cull small images (very black or very white) so there will be gaps in the numbering. The soft links created in the working folder are created with consecutive numbering thus eliminating the need for the source folder files to have consecutive numbering.
See How to Run and Edit Settings
Use nano editor to change the makevideo.sh script variables per code comments.
cd ~/pi-timolo
nano video.conf
Edit video.conf Settings
ctrl-x y to save changes and exit nano editor
IMPORTANT - The variable tl_delete_source_files=true will delete source files (except the most recent) after encoding. Per code comments use this option with Caution.
For Details see GitHub Code here makevideo.sh
To run makevideo.sh
cd ~/pi-timolo.py
./makevideo.sh
This will use avconv to create a video from the images in the designated source folder. default is media/timelapse.
To manage local device storage space, makevideo.sh has an option to copy/move the encoded video to a network share mount folder or alternatively a locally attached USB storage device eg thumb drive or external disk. The specified folder must already exist. If it is a network share in must be mounted with read/write permissions per example below for window share setup with read/write permissions.
cd ~/pi-timolo
mkdir mnt
sudo mount -t cifs -o username=loginname,password=password,uid=pi,gid=pi //serverIP/sharename ./mnt
Add an /etc/fstab entry to connect share at boot time.
See detailed wiki instructions regarding creating network and device mounts here
You can run makevideo.sh in a crontab
sudo crontab -e
Then add a crontab entry per example below to run makevideo.sh as pi user every day at 10 pm. ctrl-x y to exit and save changes
0 22 * * * su pi -c "/home/pi/pi-timolo/makevideo.sh > /dev/null"
# Optional start of sync.sh and convid.sh
# */5 * * * * su pi -c "/home/pi/pi-timolo/sync.sh > /dev/null"
# */1 * * * * su pi -c "/home/pi/pi-timolo/convid.sh > /dev/null"
ctrl-x y to exit nano and save changes
For Details see Github code here makevideo.sh
- Wiki Home
- Introduction
- Prerequisites
- Install or Upgrade
- Run pi-timolo from a drive mnt
- Customize config.py
- Panoramic Images
- user_motion_code.py
- Align Camera Motion Area
- Schedule StartAt
- Basic Troubleshooting
- Tuning Variable Settings
- menubox.sh
- Web Server View Files
- Make Timelapse Video
- Join or Convert h264 to MP4
- Run on Boot
- Setup & Run shutdown.py
- Rclone Media Sync
- watch-app.sh Usage
- Plugins Usage
- Mount USB Storage
- Mount Network Share
- Auto SubFolder Creation
- Manage Disk Space
- Utilities Summary
- GitHub Repo
gdrive is no longer default.