short update today, been making some headway.
pretty much sorted out how this one is happening now ;
2)encoding a bunch of images into a timelapse vid
This will take a while on the Pi, but its going to be on full time so it can turn the shots into timelapse vids as it goes, in the background. ie at the end of each day it can grab the daily images and pull them together into a daily avi file.
so it will be a case of checking the NAS drive that the Pi has put up, and waiting for the next update to magically appear, then we can see the last days progress.
Made a few tests, encoding 100 frames of highest res from the Pi-Cam to 1080p HD avi file took about 7 mins to do, and looks fantastic - the pi cam really is much better than these average webcams.
to encode the file its necc to download and install mencoder ;
sudo apt-get install mencoder
you also need a bunch of stills, all in a folder. run the following cmd to create a text file with a list of them ;
$ls *.jpg > stills.txt
Now mencoder can join them up for you into an .avi file ;
$mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=16/9:vbitrate=8000000 -vf scale=1920:1080 -o test.avi -mf type=jpeg:fps=24 mf://@stills.txt
With that lot proven time to scrap all these functions together into something which starts to work how we need. I've consolidated to having 2 scripts at the moment, one fires very regularly and monitors stuff, sets the lighting in the correct state, the second will handle the capture.
Just finished getting the monitoring script working well tonite, and a locking system so it wont clash when the capture script is running. getting there!
pretty much sorted out how this one is happening now ;
2)encoding a bunch of images into a timelapse vid
This will take a while on the Pi, but its going to be on full time so it can turn the shots into timelapse vids as it goes, in the background. ie at the end of each day it can grab the daily images and pull them together into a daily avi file.
so it will be a case of checking the NAS drive that the Pi has put up, and waiting for the next update to magically appear, then we can see the last days progress.
Made a few tests, encoding 100 frames of highest res from the Pi-Cam to 1080p HD avi file took about 7 mins to do, and looks fantastic - the pi cam really is much better than these average webcams.
to encode the file its necc to download and install mencoder ;
sudo apt-get install mencoder
you also need a bunch of stills, all in a folder. run the following cmd to create a text file with a list of them ;
$ls *.jpg > stills.txt
Now mencoder can join them up for you into an .avi file ;
$mencoder -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=16/9:vbitrate=8000000 -vf scale=1920:1080 -o test.avi -mf type=jpeg:fps=24 mf://@stills.txt
With that lot proven time to scrap all these functions together into something which starts to work how we need. I've consolidated to having 2 scripts at the moment, one fires very regularly and monitors stuff, sets the lighting in the correct state, the second will handle the capture.
Just finished getting the monitoring script working well tonite, and a locking system so it wont clash when the capture script is running. getting there!