Log in

View Full Version : ffdshow plugin syntax in avs file


MomoNyo
24th August 2005, 01:56
I'm trying to see if I can clean up a wmv file I have. It'd be nice if I could set the postprocessing parameters in ffdshow via the avisynth script as it's quicker to tweak that playing about with the config panel. Also, it's a good opportunity to try out the avisynth plugin.

Trouble is, I can't figure out the correct syntax. The help file could be a bit clearer (an example would have been great). Anything I try throws back an error about a missing , or ) but adding those doesn't help.

Say I just wanted to enable SPP Deblocking how would I actually set this in the ffdshow line?

Wilbert
24th August 2005, 09:37
Install latest v2.56 and look at the documentation.

Leak
24th August 2005, 11:05
Say I just wanted to enable SPP Deblocking how would I actually set this in the ffdshow line?
I don't have the syntax handy here, but the last time I tried the results of doing that were bad - SPP deblocking really needs the quantizer for each macroblock (as otherwise it seems to make everything blocky, probably assuming quantizer 31), which it can't get if you decode the frame by other means than the same ffdshow instance; i.e. you probably need to use ffdshow (with appropriate settings) via AviSource or DirectShowSource to use SPP deblocking.

np: Leftfield - Melt (Leftism)

MomoNyo
24th August 2005, 18:16
Install latest v2.56 and look at the documentation.
Don't worry, I always RTFM before I ask ;) The problem isn't with figuring out the avisynth syntax, it's the ffdshow syntax. Take a look at the section in the ffdshow docs, it seems straightforward until you actually try.

Anyway, maybe it's not the best approach looking at Leak's post.

foxyshadis
25th August 2005, 01:53
I tried to get the ffdshow plugin to give acceptible results via the avs filter, but it never worked, it's meant for everything but the pp. It'd be awesome if avisynth 3 included side-info for each frame like quantizer and random garbage filters want to send to co-processing filters. eg, frame is rff, a dup, brightened, etc. Basically what sideband text files filters make do now.

Save a profile with your preferred deblock/etc settings (unless you use the same for regular video watching), make sure you set it before you open, and apply your filters from there. You can even add an avisynth script into ffdshow, but I never experimented with that.

lamer_de
25th August 2005, 11:15
Create a new profile with ffdshow, set the deblocking parameters via the gui and use (via ffavisynth) ffdshow(preset="alread_existing_preset_name"). I don't see how ticking a box in a gui takes longer than writing down the parameters in an avisynth script :p

CU,
lamer_de

foxyshadis
25th August 2005, 14:27
Probaly because I'd never heard of that method. :p I should update avisynth.org with that. Can that be set anywhere in the script or only before DirectShowSource?