View Full Version : Removing duplicate frames
Nozdrum
9th February 2014, 14:11
Hi, I'm trying to fix a video file where each 4 frames there's a duplicate frame, do you know any avisynth plugin that I could use?
Guest
9th February 2014, 14:57
Decimate() or TDecimate()
johnmeyer
10th February 2014, 00:37
The decimate functions will work if you actually want to delete the duplicates. However, your post says you want to "fix" the duplicates. If you mean that you want to replace the duplicates with a motion-estimated replacement, then the "filldrops()" function, originally created by MugFunky, may be what you want. I modified that original code to operate with MVTools2 instead of the original MVTools, and I also created a version that works with interlaced footage. I describe those here:
Filldrops Functions (http://forum.doom9.org/showpost.php?p=1409126&postcount=13)
[edit]I realized just after I posted that the first block of code in this link is simply a repeat of MugFunky's original code and therefore works with the original MVTools. Only the interlaced version, which I post in the second code block, works with MVTools2. I do have the MVTools2 version for progressive footage and can post that code, if you need it.
Nozdrum
12th February 2014, 18:48
Filldrops Functions (http://forum.doom9.org/showpost.php?p=1409126&postcount=13)
filldropsI is working nicely, though the frame rate was so bad that I had to use Decimate too, I didn't notice before but actually the duplicate frame is each 2 frames, not 4... I'll try to post some example clip later, I'm currently encoding a longer video and it's gonna take some hour.
johnmeyer
12th February 2014, 20:01
What is the source of this video file? There have been many posts about capture cards which drop frames, and then, a few frames later, duplicate a frame in order to keep the audio and video in sync. If your video has this problem, then you have a more complicated issue to solve. There are a few techniques, described in other threads in this forum, which can sometimes improve such videos.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.