Skip to main content
Participant
January 5, 2022
Question

Delete every 5th frame

  • January 5, 2022
  • 2 replies
  • 479 views

Hi all, happy new year.

 

I have 30fps footage and every 5th frame is a duplicate, which makes me think this footage was originally 24fps.

 

I tried creating a 24fps comp and dropping in the 30fps footage to see if it would get rid of the doubles, but it didn't work.

 

Is there a script, expression, or shortcut so that every 5th frame is deleted automatically?

 

Any help would be appreciated. Thanks

This topic has been closed for replies.

2 replies

Participant
December 16, 2024

Just for this specific problem I've made a simple script that you put on a time remap property

 

f=timeRemap*25;
(f+Math.floor((f-1)/4))/25

 

you can adjust the (f-1) part to match your footage if the duplicates are not 5,10,... but other frames.

 

Inspiring
January 5, 2022

There's this script which may work if it can detect those frames as actual duplicates:

https://aescripts.com/duplicate-frame-remover/

 

But also, I'm about to release a big update to this script:

https://aescripts.com/pt_framerestorer/

which lets you do that and much more. In this case you could do it without even needing to detect the duplicates, you'd just add a couple of layer markers spaced 5 frames apart, use the script to repeat them across the footage, then use the Insert function set to -1 to remove those frames. Or if you felt the motion was then jumping at those points, indicating a frame had actually been lost, you could instead replace those frames with new ones created using motion interpolation.

There are so many potential footage problems from dropped frames on capture to frame rate conversion issues like this and FrameRestorer is designed to deal with all of those issues.

 

If you open a support ticket for FrameRestorer on aescripts to get in touch with me I can sort you out with the latest beta. No need to buy anything.