Well, Mplayer just detects which frames are black based on percentage and
threshold. My algorithm actually determines if the blackframe is the
beginning of a commercial or just a cut between scenes.
This is form man mplayer:
blackframe[=amount:threshold]
Detect frames that are (almost) completely black. Can be useful to detect
chapter transitions or commercials.
Output lines consist of the frame number of the detected frame, the
percentage of blackness, the frame type and
the frame number of the last encountered keyframe.
<amount>
Percentage of the pixels that have to be below the threshold (default: 98).
<threshold>
Threshold below which a pixel value is considered black (default: 32).
On 9/16/07, Michael Beal <[EMAIL PROTECTED]> wrote:
>
> Do you know what algorithm MPlayer uses to determine if a black frame
> is truly a "blank frame", i.e. interleave between a bit of the program
> and a commercial segment? Horror film fans wouldn't like having skips
> in the program stream just because MPlayer disdetected a black frame...
>
> Just an odd thought. Smack me if ya wanna.
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel