I have had a webcam operating for several months. It takes photos every 30 minutes and sends them to this site. I also store the original photos on my local desktop. I now have serveral thousand images so it seems like a natural next step would be to make them into a movie.
Here is my first attempt. It shows daily life on the farm from February to April 2016.
This is how I made the movie:
The following steps assume:
that you have a set of images that are named so they can be sorted in chronological order. If you use ISO 8601 date format then you’ve got no problems;
imagemagickinstalled on a linux operating system.
I used the instructions on this page (but fixed a small error or two).
Copy (rather than move) the files to a temporary directory. Do this because the filenames and filesizes will be changed. The code below assumes you have done this already.
Rename the files into ascending numerical order.
Resize the photos to avoid creating the world’s biggest video file.
(optional) Add transitional frames to soften the changes in scene from frame to frame. I tried to do this but when I used more than a few frames, the process took up too much memory and the OS killed it. It produced nice effects for my shorter test run, so I’ll try to work out how to fix this.
Stitch the frames together and name the output file.
Here is the code to carry out these steps:
If the movie works, copy the .mp4 file to a permanent local and delete your temporary directory. Make sure you haven’t accidentally moved your originals instead of copying them (See step 1).
In the movie, the red dot that is visble in the darker frames is caused by the camera’s indicator LED reflecting from the glass window. I have since turned this option off.
Did you see the bird fly past?