Hello guest, if you like this forum, why don't you register? https://forum.fanres.com/member.php?action=register (December 14, 2021) x


Remove Duplicate Frames

10 Replies, 9517 Views

Here is an odd one. I have some old recordings that got IVTC, oddly. It seems that every 15th frame is duplicated. Anyone have an idea how to easily remove those extra frames?
(2015-06-25, 05:51 PM)PDB Wrote: Here is an odd one. I have some old recordings that got IVTC, oddly. It seems that every 15th frame is duplicated. Anyone have an idea how to easily remove those extra frames?

Are we talking 15th frame or field? Although I can't say either makes much sense.
This may have something to do with drop frame versus non-drop frame... which frankly always made my brains hurt.
Frames. It's very odd and I'm not sure how it happened but all the frames are unique except the 15th and 16th frame are dupes. Going through the whole video all counting it's always the same on the 15th. Like it forgot to drop certain frames
If what your looking at is already IVTC'd, there isn't much you can do unless there is blended frames as well.
What frame rate is being reported?
Try avisynth Tdecimate - http://avisynth.org.ru/docs/english/exte...cimate.htm
Sadly my projects are lost due to an HDD crash... Sad
Fundamental Collection | Vimeo channel | My blog
Yes that's easy enough to fix in Avisynth. FDecimate/TDecimate/Srestore can do it for you, or you can do it yourself like this:

Code:
interleave(selectevery(16,0), \
   selectevery(16,1), \
   selectevery(16,2), \
   selectevery(16,3), \
   selectevery(16,4), \
   selectevery(16,5), \
   selectevery(16,6), \
   selectevery(16,7), \
   selectevery(16,8), \
   selectevery(16,9), \
   selectevery(16,10), \
   selectevery(16,11), \
   selectevery(16,12), \
   average(selectevery(16,13),0.5,selectevery(16,14),0.5), \
   selectevery(16,15))

You average whichever pair is identical. If you get an error that the clips aren't the same length then you just add the last frame like this:

average(selectevery(16,13), 0.5,selectevery(16,14), 0.5) #--> "Error, clips must be same length"

To

average(selectevery(16,13), 0.5, selectevery(16,14) ++ selectevery(16,13).trim(selectevery(16,13).framecount()-1,0), 0.5)
Perfect, thanks vale yard and spoRv
I think it's easier to use something like:


Code:
avisource("filename.avi")
TDecimate(cycleR=1,cycle=16)

if this doesn't remove the right duplicate frame, but another one, you could make this:

Code:
clip=avisource("filename.avi")
N=0
blk=BlankClip(length=N, width=clip.width, height=clip.height, fps=clip.framerate, color=$000000)
blk+clip
TDecimate(cycleR=1,cycle=16)

Of course you should give N the right number, to let the proper duplicate frame to be deleted.

Different path to get the same result!
Sadly my projects are lost due to an HDD crash... Sad
Fundamental Collection | Vimeo channel | My blog
He'd just end up with an atypical frame rate. I'd also think it means frames might be missing. Even after dropping the duplicate, motion will probably be jerky.

If the intention is just to remove the duplicates regardless of final rate, I'd use something like fdecimate, which lets you pick any frame rate number.
(This post was last modified: 2015-06-28, 06:53 AM by Doctor M.)
Thanks again guys. Pretty sure its just a dupe that didn't get eliminated somehow. I think the motion should be fine

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Help] Easy way to perfectly remove silence from Laserdisc PCM rip? plisskin 2 2,556 2022-08-20, 06:31 PM
Last Post: plisskin
  How to convert 50p (25p) to 23.976 with Dupe Frames? PDB 6 690 2021-08-13, 02:39 PM
Last Post: PDB
  How to remove every 25th dupe frame from h264 video Plissken1138 8 3,501 2019-03-31, 12:04 AM
Last Post: Chewtobacca
  [Help] 25fps PAL video mastered at 24fps with dupe frames SpaceBlackKnight 3 2,238 2019-03-26, 03:59 AM
Last Post: SpaceBlackKnight
  please help me i can't remove that kamihikouki 23 16,850 2017-05-12, 07:26 AM
Last Post: kamihikouki



Users browsing this thread: 1 Guest(s)