View Full Version : Some questions about decimation plugins.
Ceppo
12th February 2021, 19:41
I want to make a decimate plugin, so I was wondering what are the guidelines to call the frames into a cycle only once and similarly how to calculate the matrics once for the cycle.
videoh
12th February 2021, 19:52
Your question is too vague. Try again.
DJATOM
12th February 2021, 20:10
I think it's up to developer to make a detection of telecine patterns and handle sections. For best results you still have to perform 2 passes, it's inevitable.
Ceppo
12th February 2021, 20:11
Your question is too vague. Try again.
In C++, I used % to call all the frames of the cycle in getframe. For example, in 29.970->23.976, the frames 0,1,2,3 would all call the frames 0,1,2,3,4. Now all those frames call the same five frames over and over, so is there a way to call them once like storing in a class variable in a certain way? Also on those five frames, I have to calculate the metrics to see if they are duplicates, and each time the matric for the cycle would get recalculated since the same frames are called. So what's the way to avoid recalling them and recalculate them?
I think it's up to developer to make a detection of telecine patterns and handle sections. For best results you still have to perform 2 passes, it's inevitable.
I want to make it solely based on duplicate metrics.
johnmeyer
12th February 2021, 20:44
I think you've posted in the wrong forum. You should be posting this question in the AVISynth developers forum. There are more developers there.
As for the question, there are LOTS of decimation plugins, so my advice is to download the source for those plugins and see how they deal with decimating the data structures created by populating with frames. I just looked at FDecimate.h and it seems like it would answer most of your questions:
http://avisynth.nl/index.php/FDecimate
DJATOM
12th February 2021, 21:10
> I want to make it solely based on duplicate metrics.
Yet you can't determine how much frames you will have in case of vfr video.
You must evaluate entire clip to have exact framecount of resulting video.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.