Page 1 of 1

Removing every Nth frame

Posted: May 19th, 2021, 1:19 pm
by celticching

Good day. New here and not great with Expressions. My question is this. I have some old film footage that was Telecine transferred to video and when using footage I have found that every 6th frame is a duplicate. I know there is an After Effects expression script that can be used to remove every 6(N)th frame across the project however I do not know it or exactly how to run it in Adobe After Effects. I'm with the army and this is footage I got from the historian. ANY HELP HELP PLEASE!!!!

Thank you in advance,

CHING


Re: Removing every Nth frame

Posted: June 6th, 2021, 12:07 pm
by crossrad

I achieved this with time remapping, but unlike most properties, if there is no time remapping, there is no stopwatch symbol to Alt-click. However, I found that by selecting Time->Enable Time Remapping on the footage layer it creates two keyframes which effectively mean no-remapping. I found that you can Alt-click the stopwatch symbol and enter an expression which overrides the keyframes. This expression seemed to work:

Code: Select all

frame=Math.round(time/thisComp.frameDuration)
group=Math.floor(frame/5)
offset=frame%5
choose=group*6+offset
choose*thisComp.frameDuration

This assumes that the duplicated frame is 6th, 12th, ... etc.