Log in

View Full Version : Remove every 3rd frame off 4?


Daijoubu
28th March 2005, 11:31
I tried to use Decimate but it's taking out the 4th frame
3rd and 4th are duplicates but the latter looks best

Source: ABCD
Decimate(cycle=4): ABC
I need: ABD

I looking at the other decimate filters and none seems to fit this task
Any filter I missed? :D

scharfis_brain
28th March 2005, 12:28
selectevery(4, 0,1,3)

Guest
28th March 2005, 14:46
reverse.decimate(4).reverse :)

Daijoubu
28th March 2005, 15:38
Originally posted by neuron2
reverse.decimate(4).reverse :)
I haven't tested this yet but it seems to be awfully slow :D
SelectEvery() doesn't seem to work as expected

For now I've generated a huge overide.dec to use with decimate(), gotta love PHP :D
for ($i=3; $i<80144; $i += 4)
{
echo "$i\r\n";
}

Thanks for the inputs guys!

Guest
28th March 2005, 15:49
How can you say it's slow if you haven't tested it? Try it.

Daijoubu
28th March 2005, 18:03
Originally posted by neuron2
How can you say it's slow if you haven't tested it? Try it.
Just tested, it's slow but works, clever! ;)
Had to shift by 1 frame, SelectEvery(4, 1, 2, 4) works perfectly now
Fast enough for realtime playback (50% on my P3 1Ghz :p )