ofVideoGrabber with delay


I want to display a webcam feed with a 5 seconds lag, so anything captured by the camera would take 5 seconds to be displayed on the screen.

How do I “record” the camera feed data in a kind of buffer, so I can play it only after a defined interval?
Any ideas in how to do this in a efficient way?


scope out the Tracer Pix app in this thread: http://forum.openframeworks.cc/t/tracer-pix/3155/0

It does that kind of thing… caches previous frames and then redraws them on top of each other.

Cool plong0, tracerPix gave me the light i needed :slight_smile:
I ended up using a ofPointRecorder code Zach shared in one of his workshops, and tranformed it into a ofImageRecorder… Works pretty well.


Nice! I bet Andy Cameron loved it. :wink: