(Announcement) Video Trigger - Motion Detection software

zlp's icon

Hi folks. I'm just letting the forum know that I made a standalone app to trigger sounds based on a camera feed. Not terribly exciting news for MAXers, but it's targeted at students who don't have access to MAX.

The blurb:
Video Trigger is a free motion detector application tailored for media artists. Attach a camera and trigger sounds whenever occupancy is detected in six user-defined areas of the video image. You have complete control over the playback logic and the signal routing. Surround is supported.

(The source patch is included under a Creative Commons Attribution Non-Commercial Share-Alike license in case you want to use any of the code.)

Thanks
-ZLP

flim's icon

no replies?

sheesh - thanks..! (:

i'm having the best time modifying! :)

all the best!

-jonas

Lilli Wessling Hart's icon

Please add it to our Projects so it'll get more exposure:
https://cycling74.com/new-project/

Thanks,
Lilli

zlp's icon

Added to projects. Thanks for the reminder!

Tj Shredder's icon

Thanks a lot Zach.
Saved my day, I am helping to create an installation and this was what I needed...
I made some mods of course, it is running on a PC, and the whole audio part is very different, but it got me going instantly...
As contribution, I made a jit.grab object, which is a simple wrapper and replaces with the correct grab object (jit.qt.grab for macintosh and jit.dx.grab for windows). I also added a possibility to choose between live input and a movie, which you can also record. This was necessary to test the setup when I am not at the original location...

The jit.grab abstraction also needs my parentgate.js:

outlets = 2;
intlets = 1;

function anything()
{
var a = arrayfromargs(messagename,arguments);
if(this.patcher.parentpatcher){
outlet(0, a);
}
else{
outlet(1, a);
}
}

Max Patch
Copy patch and select New From Clipboard in Max.

jit.grab below:

Max Patch
Copy patch and select New From Clipboard in Max.

And just the grabber subpatch with the additional GUI elements which you can place to your liking into your next version:

RosM's icon

Thanks Zach, awesome project learning a lot, also thanks stefantiedje great moddification, I am new to jitter, I am trying to trigger the trackpoints that insted of playing sound it will play a movie, and this movie will play in a jit.window and so on in the different zones, for an installation I am learning.

Thank you in advance Rosm

lhc's icon

Thank you! Very excited to tweak this for triggering different videos. Much appreciated!

zlp's icon

Thanks Stefan, great additions. (I hadn't noticed the replies until now.) I'll take a look at your changes and roll them into the next version!
-Zach

stl's icon

Hi Zach,

just did a test run on your Video Trigger and recognized a very high cpu value in the Actitity Monitor on my macbook pro (around 180%...never saw this before (-: ). I looked into your patch and saw your render/grabber trigger (in your grabber subpatch) was at 10ms. Changed it to 50ms and everything is fine now. Maybe you should change this to a higher default value, too. Thanks for this nice app!

best
stefan

zlp's icon

great idea, thanks.

flim's icon

I'm having difficulties saving my settings. the first notice I get from my max window is the following:
http://jonaswolf.com/savesetting.jpg

thus I'm having problems manually saving my numerous zones (respectively no .xml file to be found):
http://jonaswolf.com/savesetting.maxpat.zip

this is essential for my project, for I added heaps of zones. is there any way to fix this? any help appreciated...!