[FFmpeg-devel] additive frame change detection algorithm

Dave Hess dha4t.ffmpeg at gmail.com
Wed May 11 17:51:32 CEST 2016


>you need something that gives more weight to large localized changes
>likely

Yes, good point.  How about additional parameters to the function that
specify a grid pattern and if any individual section in that grid meets the
threshold, then it returns true?  It could even have another parameter to
set the number of changed sections required before the whole frame is
considered changed.

 frame_change(ref_frame, threshold, grid_rows, grid_columns,
section_threshold)

And maybe even more parameters to disregard certain sections (or rows or
columns) from being analyzed altogether (if an icon in the system tray or
task bar starts flashing, etc.).  Might be difficult to implement that.  I'd
need to think about that more.



More information about the ffmpeg-devel mailing list