Log in

View Full Version : Removing duplicate frames of animated content - Dedup?


McCauley
15th August 2017, 00:20
Is there a plugin similar to Dedup or a way to replicate its functionality in Vapoursynth?
If not, is there a chance to get Dedup ported?

Also:
To take the concept of DeDup even further, is there a way to pass the frame type in the source to a script?
The idea is, to have a script that uses Dedup's log and the frame type information to decide which frame to use - if two duplicate frames are B and P frames, don't merge them (because assumingly the P frame is of higher quality than an average of the P and an inferior B) but only use the P frame, if they are of the same type, average.

I found this (https://stackoverflow.com/questions/32791644/get-keytframe-from-a-video-in-python-with-ffms2) but have no idea how to apply it.


:thanks:

Myrsloik
15th August 2017, 01:46
Ffms2 will set the frame type as a property. You can het a metric very similar to dedup by using vdecimate's metric output mode and planestats' absolute difference.

Save all these to a file and generate a list of which frames to drop. Or that's the general idea. This should be enough to get you really confused.