Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to delete every 13th frame

  • Expression to delete every 13th frame

    Posted by Tom Bromwich on May 26, 2010 at 1:48 pm

    We have some footage which, for whatever reason, has a glitch every 13th frame, it either misses the frame completely or it jumps back a bit.

    If we could somehow find an expression to delete every 13th frame then the footage would run perfectly.

    Is this possible?

    Tom

    Dan Ebberts
    replied 1 month, 2 weeks ago
    3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    May 26, 2010 at 3:13 pm

    This time remapping expression should work:

    f = timeToFrames();
    n = Math.floor(f/12);
    framesToTime(n+f);

    Dan

  • Smet Kira

    December 7, 2024 at 12:56 pm

    Hi Dan. Please tell me, I have a video where there are freezes, frames are duplicated. For example, frame 25,26,27 is the same frame. Is it possible to somehow evaluate the contents of the frames through expressions and delete all duplicates except frame 25 ?

  • Dan Ebberts

    December 7, 2024 at 7:13 pm

    I don’t think there’s any practical way to do that with expressions. You’d have to use sampleImage(), and I think it would take forever to analyze enough pixels to determine two frames were the same.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy