Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
15th August 2017, 00:20 | #1 | Link |
Registered User
Join Date: Nov 2006
Posts: 83
|
Removing duplicate frames of animated content - Dedup?
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 but have no idea how to apply it. Last edited by McCauley; 15th August 2017 at 04:21. |
15th August 2017, 01:46 | #2 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
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.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
|