I have values that represent the temporal complexity of each proceeding video frame. I am trying to remove all the visually-duplicate ones but the trouble is they aren't exact duplicates so they need a threshold which itself is a problem because setting it high enough to kill every duplicate will also kill legitimate frames with low complexity such as slow panning or cloud movement.
Luckily each animated video has patterns. Some scenes use the full FPS and have no duplicates, some are half the framerate, some are 1/3 of it. To deal with the scenes where every second frame is a duplicate, I did =A1/A2 formula which I think effectively discriminates the bottom value between each spike:
35.9146 6.475182548
5.5465 0.179759003
30.8552 10.61629507
2.9064 0.111036401
26.1752 4.630484008
5.6528 0.216141811
26.1532 5.487452791
4.766 0.209058011
22.7975 7.026073289
3.2447 0.190551976
17.0279 5.253254766
3.2414 0.200646248
16.1548 5.420346262
2.9804 0.228211764
13.0598 11.73492677
1.1129 0.159372762
6.983 3.499373591
1.9955 0.024428432
81.6876 29.42318914
2.7763 0.121364592
22.8757 18.77519698
1.2184 0.029882227
40.7734 7.880288359
5.1741 0.136040238
38.0336 20.69743143
1.8376 0.045935177
40.0042 17.44927157
2.2926 0.039427047
58.1479 45.35717629
1.282 0.021224533
60.4018 20.98960976
2.8777 0.057400397
50.1338 11.24858085
4.4569 0.096459049
46.2051 22.12675989
2.0882 0.052623223
39.6821 20.97362579
Anything below 0.5 up here is obviously a bottom spike. But my problem is with scenes that have one unique frame in every third frame. A floor-floor-spike pattern, which my current formula will fail on. Observe:
43.4271 8.137596972
5.3366 1.021319758
5.2252 0.114447671
45.6558 12.40714169
3.6798 1.045338333
3.5202 0.075928235
46.3622 23.7681739
1.9506 0.5542422
3.5194 0.096100967
36.6219 10.38388908
3.5268 0.541460045
6.5135 0.188867174
34.4872 7.103439753
4.855 1.155017367
4.2034 0.13446405
31.2604 3.216123623
9.7199 2.13024897
4.5628 0.132141699
34.5296 9.93457433
3.4757 1.112508802
3.1242 0.087898917
35.5431 6.515692026
5.455 1.538179562
3.5464 0.184684286
19.2025 3.585700148
5.3553 1.259122543
4.2532 0.062959164
67.5549 8.260766954
I need the low values between each spike to be 0.5 or less or the threshold won't recognize them as duplicates.
Anyone have the obvious solution my feeble-minded head is not comprehending?
Bookmarks