Hey all,
I have a video where every single 5th frame is a duplicate. So I need frames 0,1,2,3 - 5,6,7,8 - 10,11,12,13 - etc...
I've seen
but I myself am not familiar with expressions enough to write it just by what the person is suggesting.
I found a few suggestions such as:
f = timeToFrames();
n = Math.floor(f/5);
framesToTime(n+f);
Also this from a random YouTube video I can't find:
f = timeToFrames();
p = Math.floor(f/1);
framesToTime(p*1.5);
Neither work. The frames start jumping erratically. 2 frames at a time, then 150 frames, etc etc.
In general programming to iterate and skip every nth number I'd just do a modulos check and skip any 0 sum. Something like:
f = timeToFrames();
n = f % 5;
if (n == 0) { f++; }
framesToTime(f);
This also produces some really odd frame counts although it doesn't jump to the hundreds eratically. It just doesn't work.
How would I skip every 5th frame?
Thanks for tips!