Magnum - The Edit Detector

All things .jsx

Moderator: Paul Tuersley

Post Reply
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

Image

This script automatically detects edits in footage. To use it you simply select a footage layer in a comp, set the work area to the region you’d like to find edit and tell Magnum to go to work! Magnum can then split the layer at each edit point or set layer markers where the edits are.

Download Magnum - The Edit Detector
User avatar
Disciple
Posts: 137
Joined: June 5th, 2004, 8:05 am
Location: Los Angeles, CA
Contact:

I love the idea. How do you actually get the script to detect cuts? I mean, what is the script looking for in the footage?

Thanks!
Alex
User avatar
lloydalvarez
Enhancement master
Posts: 460
Joined: June 17th, 2004, 9:27 am
Location: New York City, NY
Contact:

Glad you like it. I actually made a point of commenting the script thoroughly so that you can follow along if you want, but the basic trick is to duplicate the layer on top of itself, slide it back 1 frame and set the transfer mode to difference. I then use sampleImage (which is why the script is CS3 compatible only) to evaluate the current frame and compare it to the one before. If the difference is higher than the user defined threshold, I determine that it's a cut. It works surprisingly well, I've tested in on a wide range of footage and it's success rate is over 98%.. the 2% of times that it doesn't detect it correctly, it gets it right after adjusting the detect level slider.
nab
Posts: 203
Joined: November 29th, 2005, 3:00 am
Location: Royan
Contact:

zooper script Image

and one of my favorite american series...Zeus, Apollo !
Post Reply