1

Hi i want to make a program that will continually record a video and on a press of a button, it will save 2 minutes before i pressed the button is it possible to do it somehow ?

  • 1
    To capture a video 2 minutes before you perform an action, wouldn't that require a time machine or mind reader device or both? If you are considering that the device record constantly and capture only the two minutes prior to the button press, it may be advisable to edit your question accordingly. – fred_dot_u May 28 '18 at 9:36
0

Both the third-party Python picamera API and the official raspivid command-line program support this. picamera calls it "circular stream" and the flag for raspivid is -circular .

You really should study the excellent picamera documentation in-depth since it discusses easy and complex applications of circular buffers. One wonders how people not using Python cope, seeing that their Raspberry camera libraries are almost abysmal in comparison.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.