Log in

View Full Version : RemoveDirt Help


Mounir
18th March 2012, 03:34
If i want to use removedirt on separated fields how i would script that ?

as is it return invalid arguments to function removedirt, thanks for your help

AssumeTFF()
SeparateFields()
f1=SelectEven().RemoveDirt()
f2=SelectOdd().RemoveDirt()
Interleave(f1,f2)
Weave()

Mounir
18th March 2012, 16:55
anyone ?

StainlessS
18th March 2012, 20:08
Perhaps take a look at StickBoy's Functions 'JDL_FoldFieldsVertical' and 'JDL_UnfoldFieldsVertical'
from the file 'jdl-interlace.avsi'.

EDIT: here:-
http://avisynth.org/stickboy/jdl-interlace.avsi

cobo
18th March 2012, 20:37
I tried your script and it works without returning an error. I'm using this version of RemoveDirt:
http://forum.doom9.org/showthread.php?p=1558241#post1558241

StainlessS
18th March 2012, 20:43
Might be a good idea to say what colorspace and dimensions source is and version of RemoveDirt.

Mounir
18th March 2012, 22:32
I am using the latest version v 0.9 and working in YV12. I have loaded the dll but it always return the "invalid arguments" error

cobo
18th March 2012, 23:11
A few times when I have received the "invalid arguments" error, what I had to do was delete the lines that avisynth seems to be complaining about and re-type it, or re-type the entire script. It seems like there can be some sort of invisible character that gets added when copying and pasting from another script or maybe from accidentally hitting some combination of keys. I copied and pasted directly from your first post in this thread and that works. So I suggest to try creating a new avs file and copy the script from your first post or re-type it entirely and see if that works.

StainlessS
18th March 2012, 23:18
Are your dimensions legal for RemoveDirt with YV12 (dont know if it has to be mod x),
does it work with unseparated source clip (without the error message),
did you try Stickboy's funcs, it keeps the source vertical dimension.

Edit: in v0.9 dll source cannot find text 'invalid' so assume coming from a script
rather than the dll itself.
What is the error message in it''s entirety, ie offending script
and line number.

Way too many versions of RemoveDirt, hope Kassandro resists the urge to do similar
in future.

StainlessS
19th March 2012, 00:18
from old v0.6.1 removedirt, here:-
http://avisynth.org.ru/docs/english/externalfilters/removedirt.htm

The width and the height of the clip must be a multiple of 8.