PDA

View Full Version : nnedi error


halsboss
23rd August 2009, 01:50
Hi I thought I was using nnedi properly, but it throws an error.
This works:tdeint(mode=0,order=1) # mode=0=same rate output mode=1=double rate output (bobbing) order=0=BFF order=1=TFF
This fails:tdeint(mode=0,order=1,edeint=nnedi(field=-2,threads=1)) # mode=0=same rate output mode=1=double rate output (bobbing) order=0=BFF order=1=TFF
It throws error in a windows dialogue box
the number of frames in edeint clip doesn't match that of the input clip

Any suggestions ?

PS MT version of anisynth. Full scriptSetMemoryMax(512)
LoadPlugin("C:\SOFTWARE\DGindex\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\tdeint.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\NNEDI.dll")
# see http://forum.doom9.org/showthread.php?p=1114448#post1114448
# tcritical plugins http://bengal.missouri.edu/~kes25c/
# for yadifmod tff Order=1 ; for nnedi field=-2 means assumeTFF is important
mpeg2source("G:\HDTV\2\test.d2v",cpu=4,ipp=true)
AssumeFPS(25)
AssumeTFF()
#AssumeFieldBased()
tdeint(mode=0,order=1) # mode=0=same rate output mode=1=double rate output (bobbing) order=0=BFF order=1=TFF
#tdeint(mode=0,order=1,edeint=nnedi(field=-2,threads=1)) # mode=0=same rate output mode=1=double rate output (bobbing) order=0=BFF order=1=TFF
# the number of frames in edeint clip doesn't match that of the input clip
#AssumeFrameBased()
spline36resize(640,360) # vertical not a multiple of 16 but who cares

poisondeathray
23rd August 2009, 02:19
nnedi(field=-2) is double rate; try nnedi(field=1) for same rate, keep top field


field -

Controls the mode of operation (double vs same rate) and which field is kept.
Possible settings:

-2 = double rate (alternates each frame), uses avisynth's internal parity value to start
-1 = same rate, uses avisynth's internal parity value
0 = same rate, keep bottom field
1 = same rate, keep top field
2 = double rate (alternates each frame), starts with bottom
3 = double rate (alternates each frame), starts with top

Default: -1 (int)




You could also use nnedi2, for some minor improvements (e.g yadifmod + nnedi2) . I find tdeint leaves some major artifacts on many types of sources

halsboss
23rd August 2009, 02:21
Ah thankyou ! copied that bit from another script and missed it !