OpusGang / awsmfunc

awesome VapourSynth functions
MIT License
18 stars 4 forks source link

banddtct error #26

Closed evafans closed 1 year ago

evafans commented 1 year ago

import vapoursynth as vs import awsmfunc as awf import havsfunc as haf from rekt import rektlvls from awsmfunc import banddtct

core = vs.core

src = core.lsmas.LWLibavSource(r"D:\1.h264")

src = core.std.Crop (src, top=22, bottom=22, left=0, right=0)

banddtct(src)

It did ran for a while, I can see it from CPU usage. then this error shows up: Failed to evaluate the script: File reading exception: an integer is required

I used the default settings.

quietvoid commented 1 year ago

Can you provide the exception trace?

evafans commented 1 year ago

Sorry, can you tell me how to get exception trace? What should I write in VS edit?

quietvoid commented 1 year ago

You should be running all awsmfunc.detect detection scripts in a terminal with Python directly.

So just python script.vpy

evafans commented 1 year ago

C:\Users\Administrator>py Untitled.vpy Running Banding detection... Frame: 151835/151835 (68.12 fps) 100.00% Elapsed: 2228.86 seconds (68.12 fps) Detected frames: .... Merged frames into zonefile: merged-banding-frames.txt Finished detecting, output file: banding-frames.txt

When I ran it on C:\Users\Administrator, it works fine. So I guess the problem lies with the filepath, it is unable to write files to D:. I'm using windows 11, maybe that's why.

quietvoid commented 1 year ago

You can specify the output path with banddtct(src, output="...")