In part to see how it would work, and in part to evaluate the possibilities for some specific applications I have completed a project to create a daily time lapse video that is completely automated using the Axis M1104 web cam, ffmpeg video transcoder, and simple shell scripts.
The process, in a nutshell is simple:
Take a still image jpeg capture from the cam every minute
Stitch these images together into a HD video at the end of the day
Pad this combined video with bumpers (intro and exit)
Include a soundtrack that changes for ever day of the week
The results have been encouraging so far - Even after leaving the system for 2 days to travel to Victoria.
Completed videos are manually posted to YouTube each day (a process I´m looking to automate as well) To view a sampling of these videos visit the eCoustic Media YouTube Channel. The latest video is included below:
For those with a more technical interest the code to complete this process is included below:
The above is executed every minute from 0400h until 2300h triggered by a cron job.
Main Process Script
This script runs at 2302h (just after the last capture and creates the actual video. It is split into several scripts so there is the possibility to execute a preview during the day to check on progress (for the impatient coder)
batch.sh
#!/bin/sh
#*********************************
#
# Process daily timelapse
#
#*********************************
count="1"
#*********************************
#* Process Actual Frames
#*********************************
for filename in $(ls -tr /data/www/images/cam/minute/*.*g | sed ´s/ /__/g´)
do
if [ $count -lt 10 ]; then
pad="000"
elif [ $count -lt 100 ]; then
pad="00"
elif [ $count -lt 1000 ]; then
pad="0"
else
pad=""
fi
The encoding first renders mpeg2 video to facilitate the concatenation of the bumpers. These were created previously in Adobe Premiere but encoded with the exact same settings using ffmpeg to ensure that the streams were of the exact same format.
A Rich Site Summary (RSS) feed is an xml data file that provides a summary of the information contained here.
It is not designed to be viewed in your browser, but instead by rss reader software. If you do not know what this means - you can safely ignore it,
as it is provided for advanced users with rss reader software only.