Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions De-converting NTSC to PAL

  • De-converting NTSC to PAL

    Posted by Ze’ev Gilad on April 13, 2012 at 10:26 pm

    I’m trying to “de-convert” NTSC back to PAL — my footage is 29.97fps, but every 6th frame is duplicated. Speeding up doesn’t work, because it skips the wrong frames.

    A while back Dan posted the expression below; but it’s not working for me as expected.

    I need to “remove” every 6th frame; I’m trying to get just these frames:
    01, 02, 03, 04, 05, 07, 08, 09, 10, 11, 13, …
    (i.e., remove frames 00, 06, 12… could also remove 01, 07, 13; they’re duplicates)

    But this expression, with n=6 and frameToSkip=0 gives me:
    01, 11, 21, 31, 41, …

    In other words, it skipping TEN frames.

    Am I missing something?

    Thanks!

    n = 5; // skip every nth frame
    frameToSkip = 4; // 0,1,2 ...n-1
    currFrame = timeToFrames(time);
    currFrame += Math.floor((currFrame - frameToSkip)/(n-1)) + 1;
    framesToTime(currFrame)

    Ze’ev Gilad replied 14 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 14, 2012 at 12:47 am

    I think you have encountered a bug introduced in AE CS5.5 (it doesn’t seem to be there in CS4 or CS5). One work around is to “roll your own” time-to-frames function. This seems to work:

    n = 6; // skip every nth frame
    frameToSkip = 0; // 0,1,2 …n-1
    currFrame = Math.round(time/thisComp.frameDuration);
    currFrame += Math.floor((currFrame – frameToSkip)/(n-1)) + 1;
    framesToTime(currFrame);

    Dan

  • Ze’ev Gilad

    April 14, 2012 at 12:52 am

    Dan, you are the man!
    THANKS, again!

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