Log in

View Full Version : Removing duplicate frames from animation


Dark Morford
2nd May 2012, 21:19
I'm trying to encode an animated music video. The video was clearly animated in Flash, but the copy I have is MPEG-2. After running it through DGIndex and stepping through it frame-by-frame, I can identify a definite 3-2 pattern to the frames, which leads me to believe it was originally 12 fps.

My question is how to go about removing the extra frame so I get 24 fps with a 2-2 pattern. I tried simply using Decimate(), but it makes wrong decisions and gives me 1-3 in a few places instead of 2-2. I have to imagine it's a simple thing to do, but it's new to me. Help?

Didée
2nd May 2012, 21:29
selecteven()
tdecimate()
selectevery(1,0,0)

Dark Morford
2nd May 2012, 21:39
Thanks! Any particular reason for using tdecimate() instead of Decimate()?

Didée
3rd May 2012, 00:09
No, just by habit. If Decimate() still works with Avisynth of today, then it's probably okay to use. :)

Guest
3rd May 2012, 01:47
Decimate() still works and is OK. TDecimate() has some additional modes of operation, but they are not used here, so it's a matter of taste for this application.