Forums > Jitter

motion-activated video recording

April 4, 2008 | 7:31 pm

I’m looking for a way to record video to disk when there’s a certain level of activity in an installation I’m designing. So far I’ve gotten it to trigger a jit.dx.grab object after it senses a sustained amount of motion, but whenever that happens I receive a "save as" prompt for the movie file (which I won’t be around to click). When I specify a filename in the "write" argument, it just continues to write over the same file (or deletes it when I send a "stop" message).

What’s the best way to go about doing this? How can I build a library of individually named clips without being there to name them (i.e. implementing a $1 argument in the filename)? Is there a way to record incrementally to a single movie file? Ideally I’d just send stop/record messages to a DV cam and record straight to tape, but I don’t have enough firewire cable to do that for this kind of distance.

Anyway, thanks in advance for your help – any ideas would be much appreciated.


April 4, 2008 | 8:15 pm

one way of many.

#P button 59 53 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 59 77 37 196617 t time;
#P newex 160 233 114 196617 append 30. jpeg normal;
#P newex 160 212 73 196617 prepend write;
#P newex 160 190 163 196617 sprintf symout %ld-%ld-%ld.mov;
#P number 246 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 210 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 174 156 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 174 134 82 196617 unpack 0 0 0;
#P newex 59 107 240 196617 date;
#B color 5;
#P newex 160 265 32 196617 print;
#P newex 93 265 66 196617 jit.qt.record;
#P connect 9 0 0 0;
#P connect 9 0 1 0;
#P connect 10 0 2 0;
#P connect 11 0 10 0;
#P connect 4 0 7 0;
#P connect 7 0 8 0;
#P connect 8 0 9 0;
#P connect 2 1 3 0;
#P connect 3 0 4 0;
#P connect 3 1 5 0;
#P connect 5 0 7 1;
#P connect 3 2 6 0;
#P connect 6 0 7 2;
#P window clipboard copycount 12;


April 4, 2008 | 8:20 pm

Sprintf, of course… Thanks for the help.

Is jpeg the best codec for quality/space that you suggest?


April 4, 2008 | 8:27 pm

well generally, but always worth testing


Viewing 4 posts - 1 through 4 (of 4 total)