Log in

View Full Version : Avisynth frame multiplication and randomization


Kretenoid
11th April 2010, 21:37
Hi All!

I am frequent user of Virtualdub. I use it for secondary photo processing as funny as it may sound.

Could someone point me to an aviscript that would:

pick up a single jpeg photo, multiply it to let's say 100 frames and then process those frames with brightness / contrast filter using random values for each frame.

This would produce short avi with each frame a bit different.

Is there something like that already done?

Kretenoid
11th April 2010, 23:07
Wouldn't it only apply the same random parameters for all frames? I need them on every individual frame.

Gavino
11th April 2010, 23:41
pick up a single jpeg photo, multiply it to let's say 100 frames and then process those frames with brightness / contrast filter using random values for each frame.
Stephen has already explained how to do the random part (use rand inside ScriptClip). In fact, the other thread you posted in has examples of doing this to create random flickering and shaking.

To get 100 frames from a jpeg photo, just use
ImageSource("xxx.jpg", end=99)

Guest
12th April 2010, 01:12
@Kretenoid

Please do not crosspost, per forum rule 8. I have deleted your other post about this.

Kretenoid
12th April 2010, 01:58
Thank you all. I'll try to make such a procedure. Sorry for that cross it won't happen again.