Scratchpole's picture

Joe (@Scratchpole)

Groups

    Scratchpole's picture
    Joe posted a new Composition, “Motion Detection Video Recorder

    Motion Detection Video Recorder

    In about 2003 with my G4 tower I used a great little bit of software called BTV from https://www.bensoftware.com/ It had a motion detection feature which at the time I couldn't find elsewhere. When my new 'neighbours' moved in recently I looked around the app store for something FREE to do motion triggered recording and didn't find what I was looking for....

    The app records video (Image only) in h.264 at the native framerate and size of the source. It's all in one window with a couple of UI controls.

    Composition and supporting files: 

    Exported App: 

    Scratchpole's picture
    Joe commented on howie's Discussion, “Motion Detection

    Found the relevant bit about relative file paths in the manual: 'If the file’s location doesn’t start with file:// or /, then it’s treated as a relative path. This is the option you’d typically want when sharing the composition with others. If running the composition on a different computer than it was created on, the file needs to exist in the same location relative to the composition (.vuo) file. If running an application exported from the composition, the file needs to exist in the Contents/Resources folder inside the application package'

    So I should probably add a text/URL field/ save path....

    Scratchpole's picture
    Joe commented on howie's Discussion, “Motion Detection

    Hello again, Attached a revised and improved composition. Added a couple of UI elements to choose camera input and adjust sensitivity. The composition saves movs to whatever folder the comp is within but when I try the same with an exported app it fails to save the movies anywhere. What is the correct shortcut URL for saving files to within the enclosing folder for use within an exported app?

    Also, meet my neighbour:

    Scratchpole's picture
    Joe commented on howie's Discussion, “Motion Detection

    My Motion Triggered Video Recorder composition is attached. Not sure it's all using the best methods but it's working, mostly as I want. It saves movies to the desktop at 25fps when motion is being detected and wait's 4 seconds to stop recording after the motion stops. Also sequentially names the .movs

    EDIT: trying it out now with a miniDV camera as input rather than isight/facetime camera. By having a look at the number coming out of the RGB addition I was able to set the sensitivity quite accurately.

    No video of the suspected rat yet as the weather has been too cold and wet.

    Scratchpole's picture
    Joe commented on howie's Discussion, “Motion Detection

    I did find the problem upstream. When the camera first sends a frame the difference calculation throws out a 1 and that was triggering a recording. I added a couple of seconds delay when the composition starts up before it can start recording using a Measure Time and an All True so that it ignores the first trigger.

    I'm not sure what howie is using this for but I am just making a very simple 'security camera' type app for myself as I wanted to identify a nocturnal animal which has burrowed next to my home.

    Pages