billw2 / pikrellcam

Raspberry Pi motion vector detection program with OSD web interface.
GNU General Public License v3.0
261 stars 70 forks source link

Still image motion detect #14

Open Harrie1966 opened 8 years ago

Harrie1966 commented 8 years ago

I have a question I would like to use the Function timelapse but only when there is motion detected. Is this possible and I can customize this turn or a script. I'm very satisfied with this program works very well. only timelapse takes up too much space on an SD card. I hope you can help me.

Egregius commented 8 years ago

What about this? on_motion_begin echo "tl_start 300" > ~/pikrellcam/www/FIFO

Haven't tested, don't know if the video file will also be created.

linktohack commented 8 years ago

Hello, thank you for the awesome project. I'm having the same question as @Harrie1966. Actually I came to the same solution as @Egregius , but I want to have same ability as motion video, e.g. be able to capture with a pre event duration... Is there a way to achieve this?

Egregius commented 8 years ago

That's something for a real programmer I guess... Or try to go advanced scripting and store snapshots every second in memory and remove them is no motion is detected. If motion is detected copy them to disk and combine them to a timelapse. Will not be that simple I guess.

Siddyboy commented 6 years ago

Hi, I would also like to do as the OP mentioned - take stills (or a time lapse sequence of stills), but only on motion detect. Did anyone ever get anywhere with this? Did anyone try Egregius idea?