Add error handling for missing frames
If we fail to retrieve a frame and obtain a zero-byte file or invalid image, ffmpeg
may error out and fail to produce a video. Incorporate checks to verify that the video we produce is reasonable:
- remove zero-byte files
- count the number of frames in the timelapse video