Avisynth-Scripts icon indicating copy to clipboard operation
Avisynth-Scripts copied to clipboard

ConvertFormat error - There is no function named 'nnedi3_rpow2'.

Open tormento opened this issue 1 year ago • 10 comments

My script

SetMemoryMax()
SetCacheMode(0)
SetFilterMTMode("DEFAULT_MT_MODE", 2)
LoadPlugin("D:\Eseguibili\Media\DGDecNV\DGDecodeNV.dll")
DGSource("M:\In\Mobile Suit Gundam - Il contrattacco di Char ~Dynit\contrattacco.dgi",ct=48,cb=48,cl=48,cr=48, dn_enable=3, dn_strength=0.1, dn_cstrength=0.05, dn_quality="best")
DebilinearResizeMT(1598,862,threads=1)
ConvertBits(16)
ConvertFormat(fmt_in="420",fmt_out="444",cs_out="",UVrecon=true)
libplacebo_Deband(iterations=5,temporal=true)
fmtc_bitdepth (bits=10,dmode=3)
Prefetch(2,6)

I get

Script error: There is no function named 'nnedi3_rpow2'.
(D:/Programmi/Media/AviSynth+/plugins64/ResizersPack-12.1~Dogway.avsi, line 786)
(D:/Programmi/Media/AviSynth+/plugins64/ResizersPack-12.1~Dogway.avsi, line 787)
(D:/Programmi/Media/AviSynth+/plugins64/ResizersPack-12.1~Dogway.avsi, line 793)
(D:/Programmi/Media/AviSynth+/plugins64/TransformsPackMain-2.2.1~Dogway.avsi, line 962)
(D:/Programmi/Media/AviSynth+/plugins64/TransformsPackMain-2.2.1~Dogway.avsi, line 972)
(D:/Programmi/Media/AviSynth+/plugins64/TransformsPackMain-2.2.1~Dogway.avsi, line 973)
(D:/Programmi/Media/AviSynth+/plugins64/TransformsPackMain-2.2.1~Dogway.avsi, line 973)
(D:/Programmi/Media/AviSynth+/plugins64/TransformsPackMain-2.2.1~Dogway.avsi, line 1323)
(M:\In\Mobile Suit Gundam - Il contrattacco di Char ~Dynit\contrattacco.avs, line 15)

but it should work fine with NNEDI3CL_rpow2, right?

Any idea?

tormento avatar Oct 16 '24 13:10 tormento

Sorry for the delay. I think you have to add ,gpuid=[0,0] to the call

Dogway avatar Jan 03 '25 04:01 Dogway

Changed the call to

LoadPlugin("D:\Eseguibili\Media\DGDecNV\DGDecodeNV.dll")
DGSource("M:\In\Alya sometimes hides her feelings in russian vol 3 ~837p BDJP\3-09.dgi")
z_ConvertFormat(resample_filter="spline64", pixel_type="yuv420p16")
ConvertFormat(fmt_in="420",fmt_out="444",cs_out="",UVrecon=true,gpuid=[0,0])
fmtc_bitdepth (bits=10,dmode=8)
Prefetch(2,6)

and now I have error

Script error: LIBPLACEBO_RESAMPLE does not have a named argument "src_left"
(D:/Programmi/Media/AviSynth+/plugins64/TransformsPackMain-2.2.1~Dogway.avsi, line 946)
(D:/Programmi/Media/AviSynth+/plugins64/TransformsPackMain-2.2.1~Dogway.avsi, line 1327)
(M:\In\Alya sometimes hides her feelings in russian vol 3 ~837p BDJP\3-09_cr.avs, line 6)

tormento avatar Jan 04 '25 12:01 tormento

Looks like something happened to the filter... Here it is working fine, and you can check the call is correct if you append a subtitle() to the clip in line 946 Y = Eval("Ym." + resampler + cplaceY + (noring && !deep2 ? Ynr : "")).subtitle("Ym." + resampler + cplaceY + (noring && !deep2 ? Ynr : "")) Either for gpuid=[0,0] or without it, the 'src_left' is changed to 'sx' Unless you share a small snippet I don't know what the issue could be... 837p, is that 837 pixels high? that's invalid for YV12

Dogway avatar Jan 04 '25 15:01 Dogway

I know about the resolution to be mod4 and that's what I do in the complete part of the script.

JFYI, I utterly simplified the script to:

LoadPlugin("D:\Eseguibili\Media\DGDecNV\DGDecodeNV.dll")
DGSource("M:\In\Alya sometimes hides her feelings in russian vol 3 ~837p BDJP\3-09.dgi")
ConvertFormat(fmt_in="420",fmt_out="444",cs_out="",UVrecon=true,gpuid=[0,0])

and I still have error. Perhaps the versions of your plugins is different? I have the latest ones.

tormento avatar Jan 04 '25 20:01 tormento

Do you have any news?

tormento avatar Jan 10 '25 10:01 tormento

Try adding the subtitle call I suggested above and report what it says on screen, or share a small snippet.

Dogway avatar Jan 10 '25 21:01 Dogway

Try adding the subtitle call I suggested above and report what it says on screen, or share a small snippet.

Even appending the subtitle doesn't work at all. What do you mean with "snippet"? Those 3 lines are the whole script.

tormento avatar Jan 10 '25 22:01 tormento

Original script:

image

You correction:

image

Result:

image

tormento avatar Jan 12 '25 16:01 tormento

Can you try using the build with timestamp of 04/12/2023? Just to check if libplacebo changed something meanwhile.

Dogway avatar Jan 28 '25 22:01 Dogway

That's the one I'm using.

After you told me to use gpuid=[0,0], some time passed and I got help from other people to fix an error inside TransformsPack Main, to have xClean working again.

Waiting for your reply, I kept on testing the line

ConvertFormat(fmt_in="420",fmt_out="444",cs_out="",UVrecon=true,gpuid=[0,0])

and I kept on having the error.

Today I tried to use again the simpler

ConvertFormat(fmt_in="420",fmt_out="444",cs_out="",UVrecon=true)

i.e. with no gpuid=[0,0] and it's working without errors (even if as slow as hell). The question is if that the fix on TransformsPack Main has some detrimental effects on other functions.

Please have a look at that bugfix and try to understand if it could be the reason of the error message.

tormento avatar Jan 29 '25 16:01 tormento