## raspistill timelapse - max time

ByteYourLife
Posts: 75
Joined: Wed Jul 23, 2014 3:04 am
Location: Germany
Contact: Website

### raspistill timelapse - max time

Hi everyone,
I have written a small Python program to use raspistill to create time-lapse videos.

If I try to create a time-lapse video longer then 10 hours it does not work.

Is there a max value for the parameter -tl in raspistill?

Example:
10h * 60m *1 000ms = 600 000ms

Command:
raspistill -t 600000 -tl 15000-o image%06d.jpg

This is one of my latest videos from the weekend: https://www.youtube.com/watch?v=TgicrXGbNvw

Thank you all for you help,

ByteYourLife
My project I am working on: An autonomous driving car with the Raspberry Pi and a lot of sensors.

buio
Posts: 1
Joined: Thu Jun 21, 2018 5:54 am

### Re: raspistill timelapse - max time

Hi Byte,

today I am trying my first longer-than-10-hours timelapse, so i could report with experience this evening.

I don't know what the maximum for the -tl parameter of raspistill is.
However, -tl indicates "the time interval between shoots in milliseconds" as seen in the official page: https://www.raspberrypi.org/documentati ... melapse.md

But it looks like you understood this,

as you are reporting this calculation:
"10h * 60m *1 000ms = 600 000ms"
and using it in -t:
"raspistill -t 600000 -tl 15000-o image%06d.jpg"

Then, I think the slip here was in the calculations for -t

"10h * 60m *1 000ms = 600 000ms"

as -t accepts milliseconds, and this is in fact in seconds.

The simplest and better way I see for writing this is to add the full unit of measure for every number:

you should do: 10h = 10h * 60m/h * 60s/m *1000ms/s = 36 000 000ms

These then rule out, so you see at glance if you are missing something and can be sure of the unit conversion.

Just trying to bring my bookish answer to a simple calculation error post, so to have something to grasp on the next time a physics count is made.

Cheers
buio