Time Lapse Video
Lately my three month old (time flies, should have posted this long ago) has been at the center of a mystery. Every other night I wake up to find that he has some how rotated himself 180 degrees. I found that kind of odd because he isn’t yet able to move like this while he is awake. He can’t yet roll over, and I’ve never seen him turn himself on his back. Yet somehow he is able to do this while he sleeps. So I’ve set up my IP camera to work like a time lapse video camera. The idea is to take one snapshot a minute and see what’s going on.
I’ve set up a cron job to run the following command ever minute.
wget http://user:pass@192.168.31.243/axis-cgi/jpg/image.cgi?resolution=640x480 -O /home/user1/timeLapse/`date +%s`.jpg
I put the baby to bed and let cron do all the hard work. The next morning coverter the images into a video with the following command:
mencoder "mf://*.jpg" -mf fps=10 -o test.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=800
The resulting video is interesting to watch. He moves small bits at a time, mostly by moving his arms.
About this entry
You’re currently reading “Time Lapse Video,” an entry on J@§¤ñ’s Stack Trace
- Published:
- 08.22.07 / 6pm
- Category:
- Random
No comments
Jump to comment form | comments rss [?] | trackback uri [?]