Here is how I've been making time lapse movies.
http://www.raspberrypi.org/phpBB3/viewt ... 70&t=56964
This thread links to the source code for some demo openmax programs. Download the source and build them, you want the one called rpi-encode-yuv.
Then just run raspiyuv in timelapse mode piping the ouput to rpi-encode-yuv:
Code: Select all
raspiyuv -tl 10000 -t 86400000 -o - | rpi-encode-yuv > output.h264
This command line should save a video covering a day long period adding one frame every ten seconds. As each frame is saved from the sensor it gets sent to the encoder hardware and the video file grows frame by frame.
This way you don't need to save all your frames and then process at the end which saves on storage space.
If you want more control over when the frames are taken you could set up a named pipe and leave the encoder process reading one end and have new frames feed in at the appropriate times, perhaps using cron or something, although then you wouldn't be talking a one liner anymore.
Just an idea that might help.