Movie Content Analysis Project (MoCA)  
skip to content

Automatic Movie Content Analysis

The MoCA Project


The MoCA Project

cutdet

Detects and localizes hard cuts.


Options


-videoDir path to movie required
-videoName name of video file required
-cutdb path to cut database (i.e. the place where the results will be stored)
default: <video Dir>/measurements/hartcutDetection
optional
-from number of first frame of search range
default: first video frame
optional
-to number of last frame of search range
default: last video frame
optional
-cutthr threshhold of the color histogram difference
default: 0.175000
optional



Example


cutdet -videoDir /opt/Movies/ForrestGump/ -videoName ForrestGump.mpg -cutdb test

As a result two file will be generated: test and test.range. For your purpose test can be deleted. test.range contains all you need. It is a ASCII file of the form

    1 200000
    HardCut 61 61
    HardCut 116 116
    HardCut 161 161
    HardCut 291 291

Since hard cuts are edits of duration 0 each text line gives you the first frame of the next shot. For soft cuts e.g. detected by fadedet a text line would look like

    Fade 43 76

specifying the range of the fade. The first line of test.range specifies the number of the first and last frame of the search range.