GMawston
Posts: 19
Joined: Mon Jul 02, 2012 7:11 pm

Year long Timelaspse

Sun Feb 09, 2014 9:29 pm

I am not sure if this will be the right area to be in but here goes.

I have two raspberry pi's and I would like to take a year long timelapse video of the seasons. My thoughts are to have one Rpi to take the images and then send them to the other for 'processing' to avi so I can then put them together each day on say a cron job and upload to youtube.

If anyone has done anything like this already please let me know as this will take a fair bit of planning as I will also have to build in power protection etc etc to make sure I don't miss anything.

scotty101
Posts: 3810
Joined: Fri Jun 08, 2012 6:03 pm

Re: Year long Timelaspse

Mon Feb 10, 2014 10:49 am

There is no need to have two raspberry pi's. One will be more that powerful to take a photo and combine the images.

You will however need an external hard drive to store the images on.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

User avatar
Richard-TX
Posts: 1549
Joined: Tue May 28, 2013 3:24 pm
Location: North Texas

Re: Year long Timelaspse

Mon Feb 10, 2014 12:11 pm

I am not sure why you would need an external hard drive to store the images. There will only be 365 of them.

The biggest problem is getting the same position of the sun in each shot.
Richard
Doing Unix since 1985.
The 9-25-2013 image of Wheezy can be found at:
http://downloads.raspberrypi.org/raspbian/images/raspbian-2013-09-27/2013-09-25-wheezy-raspbian.zip

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 25047
Joined: Sat Jul 30, 2011 7:41 pm

Re: Year long Timelaspse

Mon Feb 10, 2014 12:44 pm

Surely that depends on whether you intend taking more than one shot per day - that's not yet clear.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

Ravenous
Posts: 1956
Joined: Fri Feb 24, 2012 1:01 pm
Location: UK

Re: Year long Timelaspse

Mon Feb 10, 2014 1:28 pm

I remember another thread about this a long time ago...
http://www.raspberrypi.org/phpBB3/viewtopic.php?t=53195

- never had a solution, but there are a few more ideas in there.

Of course there will be so much flickering of any non-rigid item in the field of view, and the light variations may or may not be possible to balance, but worth a go anyway.

scotty101
Posts: 3810
Joined: Fri Jun 08, 2012 6:03 pm

Re: Year long Timelaspse

Mon Feb 10, 2014 1:54 pm

Richard-TX wrote: I am not sure why you would need an external hard drive to store the images. There will only be 365 of them.
My thoughts were:
1. Potentially large images and video files
2. You may want more more that 365 images. Assuming 20 frames per second your video would only be 18 seconds long.
3. Potential for SD card corruption over a year depending on quality of the card, power supply etc.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

TrevorAppleton
Posts: 74
Joined: Wed May 30, 2012 7:26 pm
Contact: Website

Re: Year long Timelaspse

Tue Feb 11, 2014 1:19 pm

My blog post explaining how to create a timelapse would help you create the images and turn them into a film. It would not take much modification for it to create the film each day. You would not need much storage for the images.

http://www.trevorappleton.blogspot.co.u ... -with.html
Check out my blog post for Raspberry Pi and Python tutorials.

http://trevorappleton.blogspot.co.uk/

drhastings
Posts: 113
Joined: Wed Feb 06, 2013 11:38 pm

Re: Year long Timelaspse

Fri Feb 14, 2014 8:43 pm

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.
http://www.dansrobotprojects.com/

Return to “Graphics, sound and multimedia”