|Keep It Simple, Stupid|
Re: Time for Some Movie Magickby elwarren (Curate)
|on Oct 19, 2004 at 20:22 UTC||Need Help??|
Very nice. The movie is cool too, better than anything I've seen on tv so far :-)
I have been working on a similar project and just have a few thoughts to share regarding some problems I've run into.
I grab an image once every 30 seconds via wget called from cron. A nightly job moves these images out of the download directory and into directories sorted by date. With that many images I started exceeding the command line arg limits. Now I sort images into subdirs broken down to /cam/year/month/day/hour/
The cool part about this is that I can easily generate a movie of, say, every sunrise in the month of July with a command like: jpegtoavi -f 6 320 240 /cam/2004/07/*/05/*.jpg I'm an oracle guy but this works so well I haven't gotten around to building the db portion.
I build my movies as MotionJPEG videos using the jpegtoavi tool. It is much faster than building mpegs with convert and there is no loss of detail or artifacting like you sometimes get with mpegs. Your video is actually very clear, I'm going to have to revisit the way I build my mpegs for dvd burning.
I use a tool called fdupes to get rid of duplicate images. The cam I monitor starts at 7:00am and shuts off at 10:00pm, but I grab images for 2 hours before and after, to accomodate for the server clocks being out of sync and clock changes in spring/fall. This was faster than the solution I had written in perl :-(
Again, cool project. Glad I'm not the only crazy guy watching some cam that doesn't do much unless you look at it a day at a time :-0