PDA

View Full Version : Avisynth DSF


temporance
10th October 2003, 09:44
I just had a neat idea (please forgive me if it's not original)

Why not implement a DirectShow filter that parses an Avisynth script and performs the functions that are described in that script?

For example,

_______________
| Avisynth DSF |
| |
---->| LanczosResize |---->
| (640, 480) |
|_______________|


Input pins on the filter would be generated automatically according to input clips defined. The output pin would output the result of the script's "return".

This could be extremely powerful.

The only problem I can see is the lack of ability to seek on the input pins in the DirectShow environement (maybe this could be overcome to some extent by buffering frames).

Is it a good idea?

Wilbert
10th October 2003, 10:13
How is that different then just opening the avs in graphedit and connect it to something?

sh0dan
10th October 2003, 11:20
It would allow for an arbitrary Directshow source to be passed through AviSynth. You can however use ffdshow to do this. Install the latest alpha and place your script in the "AviSynth" section.

temporance
10th October 2003, 17:51
> How is that different then just opening the avs in graphedit and connect it to something?

That's fine if your graph is simple. But if you just want, e.g., a LanczosResize() as a filter in part of a complex graph, then it's more difficult.

> You can however use ffdshow to do this. Install the latest alpha and place your script in the "AviSynth" section.

Aha! Thanks, I'll try that. :)

bond
26th October 2003, 17:36
Originally posted by Wilbert
opening the avs in graphedit and connect it to something?how is this possible atm? is there an AVS Source filter available for directshow? or will it work with any AVI Source filter too?

Wilbert
26th October 2003, 18:19
or will it work with any AVI Source filter too?
Yup. Just try it ...

bond
26th October 2003, 18:30
thanks, didnt know that :)