Overwriting a file

MikaelOlsen's icon

Hey

I use the write message to create a new .mov file, but I would like to have the option to overwrite the file. (I use the .mov to do some background substraction using the 'jit.op' object).

So, how do I overwrite a .mov file inside Max?

/cheers Mikael

2032.BackgroundSubtraction.maxpat
Max Patch
Rob Ramirez's icon
Max Patch
Copy patch and select New From Clipboard in Max.

it should overwrite automatically.
however, your patch is incorrect. you can't read a movie immediately after writing in that way. you must use jit.qt.record's write notification to trigger a read message. this ensures that the file has been closed before it's opened again. this may be the cause of the problem you were experiencing.
if not please send an email to support.

salvadorpsartek's icon

Hey,
did you find out how to overwrite a file with jit.qt.record?
it does it automatically in macos,
but I can't get it to work on windows.

cheers,
J.

Ton Video's icon

Sorry for pushing this old thread. It seems that in Max7 something has changed... jit.record (the avf version) does not overwrite an existing file or am I missing something?

Rob Ramirez's icon

this is a limitation of the AVF version of jit.record.

for now, you can try the VIDDLL engine instead, which does not have this limitation. you can find info on the viddll engine in the jit.record help file tab in the latest max 7.2.4.