If I recall correctly, FDecimate just throws away the first frame in x frames that comes in under a difference threshold.
[EDIT: IIRC, Will also insert dupe frames if requested output framerate is higher than input frame rate.]
A Note from author on FDecimate:-
https://forum.doom9.org/showthread.p...75#post1644675
[EDIT: NOTE, author not too pleased with FDecimate, also I did not like metrics method, and was also bugged as far as Chroma metrics was concerned {presume you also modified metrics as per the problems}]
In MDec2():-
https://forum.doom9.org/showthread.php?t=168397
I used modified FDecimate metrics, and output metrics file for use by MultiDecimate addon executables Multidecimate.exe and ProcessMD.exe.
In 2nd pass of MDec2(), we just decimate as per decision made in Multidecimate.Exe/ProcessMD.exe addons.
[EDIT: MultiDecimate(), only for YUY2, MDec2() YUY2, RGB, + all incl v2.6 Planar.]
I guess that you could use whatever detector you like, and output similar formatted metrics to the mfile.txt output by Multidecimate and
then use its addons to create the decimate dfile.txt for use by either MDec2() or Multidecimate.
If done as above, all you have to do it output suitable metrics and leave the decimation to the 2nd pass of mdec2, or multidecimate.
(lo numbers would be more likely decimated, only requirement of metric numerics [IIRC],
EDIT: If your metrics are "arse about face", eg in range (KEEP)0.0 -> 255.0(DROP), then convert to 255.0 - YourMetrics for write to mfile.txt).
Decide for yourself which source you would find easier to mod, Multidecimate() or Mdec2().
good luck.
EDIT: NOTE, args to MDec2() are not identical to Multidecimate().
EDIT:
Quote:
Decide for yourself which source you would find easier to mod, Multidecimate() or Mdec2().
|
Ooops, just remembered, Multidecimate source never published, so that is one decision you dont have to make.
EDIT:
Quote:
Actually I only want to quinquemate 1 in 5 rather than decimate 1 in 10.
|
From dictionary
Code:
Decimate,
1) Kill one in every ten, as of mutineers in Roman armies.
2) Kill in large numbers.
Guess definition 2) is generally used in video.