Movie Content Analysis Project (MoCA)  
skip to content

Automatic Movie Content Analysis

The MoCA Project


The MoCA Project

fadedet

Detects and localizes fades.


Options


-videoDir path to movie required
-videoName name of video file required
-fadedb path to fade database (i.e. place where the results will be stored)
default: <video Dir>/measurements/fadeDetection
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
-mlen minimal required length of a fade (in frames)
default: 10
optional
-mcorr minimal required correlation
default: 0.9
optional
-msigma maximal allowed standard deviation of the pixels' color values in the first/last monochrome frame of a fade
default: 10
optional



Example


fadedet -videoDir /opt/Movies/ForrestGump/ -videoName ForrestGump.mpg

As a result two file will be generated:
/opt/Movies/ForrestGump/measurements/fadeDetection/fadeDetection and /opt/Movies/ForrestGump/measurements/fadeDetection/fadeDetection.range.
For your purpose fadeDetection can be deleted. fadeDetection.range contains all you need. It is a ASCII file of the form

    1 200000
    Fade in 30 63
    Fade in 1116 1136
    Fade out 3243 3291
    ....

Each text line but the first specifies the type and range of a fade. The first text line gives the number of the first and last frame of the search range.