Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

Pages: (2) [1] 2  ( Go to first unread post )
Animated Filters, timebased change of filter parameters
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
gtz
Posted: Feb 20 2003, 03:01 PM


Unregistered









hi all.

i was wanderinf if there is some sort of vd meta-filter out there that applies another filter with the ability to temporally alter that filter's paramters.

thanks in advance.
 
  Top
FrameMan
Posted: Feb 21 2003, 09:58 AM


Unregistered









How about trying the Conditional filter?

http://wwwtcs.inf.tu-dresden.de/~dc1/conditional/

Caution: on my computer it does not work well with the newest version of the VirtualDub (1.5.0). Use an older version instead.

Hope it helps...
 
  Top
gtz
Posted: Feb 21 2003, 05:39 PM


Unregistered









well, i suppose i could use the conditional metafilter with some condition based on time or framecount, but that'd be some pain in the ass.

thanks anyway.
 
  Top
FrameMan
Posted: Feb 21 2003, 06:23 PM


Unregistered









What more coud You want unsure.gif ?

This filter is actually quite simple to use. Simply put
"frame>=x and frame<=y" and You're done!

If You have a better idea - ask away. Maybe some programmers have coded a better filter..........
 
  Top
David.Bucci
Posted: Feb 22 2003, 06:53 AM


Unregistered









QUOTE (FrameMan @ Feb 21 2003, 01:23 PM)
What more coud You want unsure.gif ?

He's looking for a filter which will vary another filter's settings over the course of the application of the filter. Like you find when you apply a filter in an NLE. I don't believe the conditional filter can do that ... it simply turns on then off another filter, with static settings, based on conditions.

To approximate what he wants, he'd have to do many many conditional filter applications, each with slightly different filter settings for the target filter.

Does that make sense?

What he's asking for would be cool ... it would step VD in the direction of being an NLE. But then, there are one or two of those in the world already cool.gif
 
  Top
DD_DD
Posted: Feb 25 2003, 01:26 PM


Unregistered









Hi,

I will adapt conditional to the new VD this week.

But - in any case - it is not designed for your purpose.
It just exchange contexts of internal filter data, it does not
modify them. There is no way to write a filter wich can
dynamicaly alter internal data of any other filter, because
the filters do not provide a description of the internal data
layout (names and types of parameters, order in the struct).

However, it is possible to write a filter, which alters - based
on some functional dependencies - internal data of some well known
filters - e.g. contrast.

Wich paramaters of wich filters do you wish to vary and what they have
to depend on?
 
  Top
gtz
Posted: Feb 26 2003, 02:34 PM


Unregistered









hey DD_DD,
thanks a lot for your reply. i'm not quite sure, but i suppose if i could, i'd want to "animate" brightness/contrast and maybe a blur. and if there was some way to randomize paramter changes in given boundaries, that would be pretty awesome wub.gif
 
  Top
David.Bucci
Posted: Feb 27 2003, 06:10 AM


Unregistered









Oh, completely forgot ... you can do what you're asking for in AVISynth, using its "Animate" filter. Go here and scroll down to the very bottom for a discussion.
 
  Top
gtz
Posted: Feb 27 2003, 10:16 AM


Unregistered









yeah,
i cam across that avisynth animate filter and it actually does what i was asking for. unfortunately, though, i'D like to have a certain amount of randomness in that animation to achieve a digitally degenerated gritty look. i was hoping the avisynth rand() function would do the trick, but it seems rand() is not evaluated per frame/field, but once at the script's inital parsing. maybe i could trick avisynth to do it anyways, we'll see.

thanks all.
 
  Top
David.Bucci
Posted: Feb 27 2003, 06:24 PM


Unregistered









Ok, this may be a stupid idea, and i can't try it here at work ... but what if you stacked animates? I mean, what if you did several AVISynth Animates on the same section of video, each with rand()-generated starting and ending values, or somesuch? Maybe even rand() on the starting/ending frames, to create different overlaps between the filters, possibly with one filter application varying over the length of the whole video segment in question. I mean, 3 or 4 levels applications, 3 or 4 blur/sharpens, each varying independently in length and filter parameters (or probably not rand()-generated parameters, actually, since you would want some predictability of the results).

I.e., can you live with 1 frame/hour rendering? laugh.gif
 
  Top
WarpEnterprises
Posted: Mar 3 2003, 02:31 PM


Unregistered









Greetings from AviSynth @ its best:

AviSource("test.avi")

N=UniformNoise(last, ya=100, yb=250, fast=true, width=2, height=2).pointresize(8,8).crop(0,0,4,4).pointresize(last.width,last.height)
Layer(last, N, "add", 128, use_chroma=true)

return last

You need AviSynth >= 2.07 and
http://www.jungleweb.net/~sansgrip/avisynt...erators-0.2.zip

This generates random noise, takes only 1 pixel of the noise and layers it upon your source.


 
  Top
gtz
Posted: Mar 12 2003, 12:50 AM


Unregistered









hi all.
i just wanted to say thanks to all who tried to help me, especially to warpent~. the noise generator really did the random luminance flickering trick. very gorgeous.
i'm pretty sure i can figure out something similar for random displacements and focus shifts.
thanks again.

p.s.: oh, one more thing i forgot. is there some sort of "box blur" plugin for avisynth?

 
  Top
gtz
Posted: Mar 12 2003, 01:59 AM


Unregistered









ok, i just figured someting out that would do random defocussing in a similar fashion.

first i create a lanczos down- and re-upsized copy of the clip (to do an extreme blur to it), then i create noise just as in warpent~'s example and used it as alpha mask for the blurred copy and then layer it atop the original clip. it doesn't really look digital, but rather old-film-esque.

i suppose i could just do the same to get seemingly random image displacements and the likes.
 
  Top
gtz
Posted: Mar 12 2003, 01:40 PM


Unregistered









now i came up with something that would add random scanline/interlacing error/dsiplacement/ghosting crap to a clip. i couldn't manage to randomize the ghost-image's offset. though. does anyone have any ideas?
 
  Top
colinb
Posted: Mar 19 2003, 09:07 AM


Unregistered









Hi qtz,

It sounds like you have managed to do what I was asking about in my posting yesterday (sliding from massively out-of-focus to in-focus over time) using avisynth.

Any chance of a peek at your script(s) ? :-)

Regards,

Colin
 
  Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
18 replies since Feb 20 2003, 03:01 PM Track this topic | Email this topic | Print this topic
Pages: (2) [1] 2 
<< Back to VirtualDub Filters and Filter Development