Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove Duplicate Frames
#1
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?
Reply
Thanks given by:
#2
(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.
Reply
Thanks given by:
#3
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
New, low or non-posting members: Please do not post or PM me asking where to get something or what the current status of a project is. Such requests are ignored. Instead, stick around and become a participating member. Thank you.

Reply
Thanks given by:
#4
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?
Reply
Thanks given by:
#5
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
Reply
Thanks given by:
#6
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)
Reply
Thanks given by:
#7
Perfect, thanks vale yard and spoRv
New, low or non-posting members: Please do not post or PM me asking where to get something or what the current status of a project is. Such requests are ignored. Instead, stick around and become a participating member. Thank you.

Reply
Thanks given by:
#8
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
Reply
Thanks given by:
#9
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.
Reply
Thanks given by:
#10
Thanks again guys. Pretty sure its just a dupe that didn't get eliminated somehow. I think the motion should be fine
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to remove every 25th dupe frame from h264 video Plissken1138 8 2,139 2019-03-31, 12:04 AM
Last Post: Chewtobacca
  [Help] 25fps PAL video mastered at 24fps with dupe frames SpaceBlackKnight 3 1,402 2019-03-26, 03:59 AM
Last Post: SpaceBlackKnight
  please help me i can't remove that kamihikouki 23 13,912 2017-05-12, 07:26 AM
Last Post: kamihikouki

Forum Jump:


Users browsing this thread: 1 Guest(s)