Writing frames to file: bulk or individual?

asked 2014-06-19 15:03:24 -0500

bw4sz gravatar image

Hi all,

I have a motion detection approach using accumulated averaging. When motion sensing is triggered, the frame is written to file. My question, would it be faster for me to store all 'triggered' frames in a list, then print the entire list to file at the end? Any reason to think there would be a difference?

The downside would be checkpointing, the video would only return data once its 100% done.

Any python code on writing in a list loop would appreciated.

Thanks

edit retag flag offensive close merge delete