Log in

View Full Version : Unfilter crashes VDub


iparout
4th December 2002, 15:38
Hi there.

I am trying to use Unfilter.dll together with Lumaoff in order to decrease blockiness in the dark areas of the picture in my DivX 5 Pro encodes.

However I have just noticed that VDub crashes because of the Unfilter.dll.

The script I used is this :

#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("D:\AUDIO-~1\Video\Tools\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("D:\AUDIO-~1\Video\Tools\GORDIA~1\UnFilter.dll")
#LoadPlugin("D:\AUDIO-~1\Video\Tools\GORDIA~1\decomb.dll")
#LoadPlugin("D:\AUDIO-~1\Video\Tools\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("D:\AUDIO-~1\Video\Tools\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("D:\AUDIO-~1\Video\Tools\GORDIA~1\GreedyHMA.dll")
#LoadPlugin("C:\WINNT\System32\vobsub.dll")
#LoadPlugin("D:\AUDIO-~1\Video\Tools\GORDIA~1\SimpleResize.dll")
#
# SOURCE
mpeg2source("E:\Jennifer8\TEST.d2v",lumoff=-2)
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#Telecide()
#Decimate(cycle=5)
# or use
#InverseTelecine(40,10,15)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING
#FieldDeinterlace()
# or use
#VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# CROPPING
crop(8,4,710,569)
#
# SUBTITLES
#VobSub("FileName")
#
# FILTER
UnFilter(5,5)
#
# RESIZING
BicubicResize(640,352,0,0.75)
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)

VDub says "Avisynth open failure : Unrecognized exception !" line 44 (the Unfilter command)

Why does that happen ?

I am usig the Avisynth and VDub versions that came with GKnot 0.26 and also mpeg2dec3 beta 6.

Thanks in advance for any answers.

hakko504
4th December 2002, 15:53
Try this:LoadPlugin("D:\AUDIO-~1\Video\Tools\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("D:\AUDIO-~1\Video\Tools\GORDIA~1\UnFilter.dll")
mpeg2source("E:\Jennifer8\TEST.d2v",lumoff=-2)
crop(8,4,710,568) #ALWAYS USE EVEN NUMBERS FOR CROP
UnFilter(5,5)
BicubicResize(640,352,0,0.75) If this works, then the problem is simply that unfilter wants mod-2 or mod-4 resolutions, something that GKnot does not create as result from crop.

iparout
4th December 2002, 15:57
Nope, it didn't work unfortunately.

Same error, although now it's in line 5.

EDIT : I just installed the latest avisynth (2.07) and now the message says that "Unfilter only supports YUY2 and YV12 color formats".

I thought that the .d2v files were already YUY2 !?!

hakko504
4th December 2002, 16:04
Are you sure you have the version of UnFilter that is intended for AviSynth2.07? It sounds like you have a version intended for AviSynth2.5a, and that won't work. (Also try 708/mod-4 as width in the crop)

iparout
4th December 2002, 16:13
Originally posted by hakko504
Are you sure you have the version of UnFilter that is intended for AviSynth2.07? It sounds like you have a version intended for AviSynth2.5a, and that won't work. (Also try 708/mod-4 as width in the crop)

Well, judging from THIS THREAD (http://forum.doom9.org/showthread.php?s=&threadid=28197&perpage=20&highlight=Unfilter&pagenumber=6), it looks like it's the appropriate version.

trbarry
4th December 2002, 16:17
Both versions should now be in the zip. If you are not using the 2.5 alpha of Avisynth then you should be using the older one, which had no message mentioning YV12.

You can right click on the dll and choose version info to see, but you want the one in the UnFilter_Old folder in the zip.

- Tom

iparout
4th December 2002, 16:25
Originally posted by trbarry
Both versions should now be in the zip. If you are not using the 2.5 alpha of Avisynth then you should be using the older one, which had no message mentioning YV12.

You can right click on the dll and choose version info to see, but you want the one in the UnFilter_Old folder in the zip.

- Tom

Aha, I get it. I am using Avisynth 2.07 so I guess I shoild be using Unfilter_OLD. But won't that older version create that "greenish" effect that is shown in the Harry Poter screenshot you attached to your post ? Or am I misunderstanding something ?

trbarry
4th December 2002, 17:24
But won't that older version create that "greenish" effect that is shown in the Harry Poter screenshot you attached to your post ?

No, it was only the "old new" version where I foolishly tried to also filter chroma, for YV12 only.

I'm guessing that all versions have round off truncation errors that slightly darken the clip. This was disasterous on chroma where it gave the green tint. But I don't dare change it for luma because folks like it to remove the dark macro blocks sometimes caused by lumi masking in Xvid (which may have a compensating rounding error). ;)

- Tom

iparout
4th December 2002, 18:18
ok, I see.. Too bad that the Unifilter + Lumaoff combination didn't do much to remove the black blocks for me.. Maybe that's because I encode to DivX 5. :(

Oh well...