Preview video before writing to disk

Max Björverud's icon

Hi,

I creating a patch where you're supposed to record your own short video clips with a connected camera. Im using jit.qt.grab.

I want to preview the recorded video before it is saved to the disk, to avoid unnecessary copies. Is there an object that records video into memory before saving it to the disk? Like buffer. Or. Can you make Max overwrite previous recordings automatically? I've tried to write with the same name twice but it won't overwrite...