Archive: video delay ape (new)


13th October 2002 04:26 UTC

video delay ape (new)
here we go again...

i've knocked up another ape cos i couldn't bring myself to write my first essay of the term...

it does video delay like the cool scene in ghost dog.

basically it just outputs whatever came into the ape however many frames/beats ago. thus if you stick it on its own in an effect list with the input on blend and the output on either blend or replace, you get "reverb"

tom

p.s. absoloutely no docs, but its pretty self explanatory.


13th October 2002 08:40 UTC

Cool...You should add an option for the render blending of the delay, so you could make the 'echo' brighter than the original, or tone down the original but not the echo.

You should do another one that delays the getspec/getosc functions for a certain number of frames (for Whitecap-like effects).


13th October 2002 10:31 UTC

Wow, great job. Keep it up! :up:

Also, do you think you could make a radial blur APE? Or perhaps a fast directional emboss?


13th October 2002 13:09 UTC

Zeven: directional emboss can be done through convolution.ape.

By the way, wouldn't it be cooler if you could have it work like Buffer save? I.e. you define one instance of the APE which saves the video, and another which loads it. That way you have a lot more freedom. You could supply 8 delay buffers, that should be enough for most purposes.


13th October 2002 13:58 UTC

atero: to add any form of blending would slow it down a lot i think and would be unnecessary hastle cos at the moment it copies memory frame at a time. if you want to change brightness either use something like unconed's multiplier and effect lists. also i don't think delaying getosc and getspec would be possible, i'd have to write complete new versions of superscope etc for that to work.

unconed: yeah thats a good idea. i'll do it on tuesday night.

tom


13th October 2002 14:23 UTC

Spose you're right about the emboss thing unconed. What about an enhanced water filter? With controls for damping and also a target level.


13th October 2002 15:21 UTC

Yeah Atero, APEs can hardly do anything that interacts with the rest of AVS. For example, a 'Misc / Set Render Mode' kind of functionality is impossible in an APE, because AVS doesn't expose that information.

A water filter might be possible, though you have to remember that the water effect is just a cheap hack. It's in no way an accurate or correct simulation of water. You can probably simulate it through convolution and a buffer save.

The general formula for pixel (x,y) is:

((x+1,y) + (x-1,y) + (x,y-1) + (x,y+1)) / 2 - (x,y)

Except that (x,y) has to be the value of the pixel in the *previous* frame, not the current one.


13th October 2002 22:54 UTC

updated version of "video delay" (better at coping with changing delays e.g. when on beat mode)
new "multi delay" (you can input and output to the same buffer at several different points in your avs. later inputs overwrite earlier ones of the same frame, but this is still useful, say when coupled with an "on beat effect list". later outputs give exactly the same outputs as earlier ones.)

have fun

if you find any bugs post them here.

the multi delay may occasionally generate errors while you are developing, (though it hasn't done for me recently) but when people are viewing avs's the chances of the same errors are much much reduced.

tom


29th October 2002 06:10 UTC

Umm...how do you work the Video Delay? Could you make some documentation w/examples?


29th October 2002 09:42 UTC

i'm going to give it a proper release e.g. with docs at the same time as my next ape which i've got the idea for sitting in my head, but until then i'll give a quick explanation.

all the video delay does is to output whatever was inputed into it the number of frames/beats ago you specify. thus a standard use of it is to put it on its own inside an effect list, with the effect list on don't clear every frame, input 50/50, output replace and the loop (main or effect list) which this effect list is in on clear every frame.

to get the same behaviour out of the multi, you need two of them in the effect list, both on the same buffer, but with one on input and one on output (order doesn't actually matter).

there's a really simple example attached. its got two effect lists, one doing video delay and one doing multi and the effect list with the multis is disabled to start with.

tom


30th October 2002 00:08 UTC

Hmm... That example... im confused... that explaination... im confused... and in that example... the.. "Multi" ape as you call it.. i dont have it... Help a guy out when hes confused... please?:igor:


30th October 2002 00:26 UTC

err get the multi from my post above. its always the latest version of something in a thread that is the most recent.

err what is it that's confusing sorry? maybe i'm not being very clear but i'm not quite sure what else you need to know.

you could maybe think of it like a queue at a checkout. people are frames. so people (frames) come into the back of the queue and are then stuck there until all the people (frames) in front of them have "left" e.g. been outputed.

tom


30th October 2002 02:07 UTC

Ahh... yes that helped :) ... but .. is it just me or is there no multi? Im gonna look again..


30th October 2002 02:14 UTC

Oh geez... Found the multi... I must be blind or something.. sorry :D :weird: :weird:


30th October 2002 02:31 UTC

S'called an 'edit button,' codered

Thanx cfp :)


30th October 2002 03:18 UTC

Oh sorry.. heh.. oh dang i couldve edited this too.. oh dang.. sorry.. oh oops.. sorry .. oh.. <knocks down flower vase> ohh... sorry.. :rolleyes: :rolleyes: :confused: :confused:


30th October 2002 10:40 UTC

cool well glad it's all sorted.

how stable has the multi been for anyone that's using it?

tom


31st October 2002 01:54 UTC

purdy stable


31st October 2002 09:05 UTC

!r!o!c!k!

it uses the doggiest routine ever to tell how many copies of it there are and in what order winamp is accessing them...

but if its working i won't complain.

thanks atero

tom


5th November 2002 08:03 UTC

Or, it is for ME...in the small amount of time I've played with it since I couldn't figure out how to use it, or why it was crashing so much.



(j/k about that last part)


5th November 2002 11:38 UTC

did you check out the example? are you using the latest version?

have a look at my modification of one of jericho's presets in his "i need you" thread, cos it uses the video delay.

you only need to use the multi if you're doing something really complex like doing something different on beat, or if you want two copies of the output at different points in your routine. to get the same kind of behaviour out of the multi as you do from the video delay, you need two copies of it both in the same effect list (empty apart from them, with input 50/50 output replace clear every frame off) and one of them needs to be set to input and the other to output.

tom