AmusementClub / vapoursynth-fillborders

Fills the borders of a clip, @AmusementClub internal fork
3 stars 0 forks source link

Syntax error #1

Open Harlock1978 opened 1 year ago

Harlock1978 commented 1 year ago

Every time I want to launch the plugin I receive a message of a syntax error even if I use the example that you post.

Can you check it?

I'm using the version r64 of Vapoursynth

WolframRhodium commented 1 year ago

What does the message say?

Harlock1978 commented 1 year ago

Syntax error, probably you forgot a comma

Il dom 15 ott 2023, 16:37 WolframRhodium @.***> ha scritto:

What does the message say?

— Reply to this email directly, view it on GitHub https://github.com/AmusementClub/vapoursynth-fillborders/issues/1#issuecomment-1763409422, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEFVKLRNQRQVQTI7MVYYUTX7PYK7ANCNFSM6AAAAAA6A52XKY . You are receiving this because you authored the thread.Message ID: @.***>

WolframRhodium commented 1 year ago

Then what does your code look like?

Harlock1978 commented 1 year ago

core.std.LoadPlugin(path="C:/*/Vapoursynth/vapoursynth64/plugins/fillborders.dll") clip = core.fb.FillBorders(clip clip [, int left=3, int right=0, int top=0, int bottom=0, string mode="fillmargins", int interlaced=-1])

WolframRhodium commented 1 year ago

The example in the documentation is not a concrete syntax for VapourSynth. (it is not even a valid Python syntax)

It means that core.fb.FillBorder is a function that whose mandatory parameter is called "clip" of type clip, with some optional parameters specified in the square bracket, for example, a parameter called "mode" of type string.

Therefore, in VapourSynth, you are expect to call this function in the following form:

clip = core.fb.FillBorders(clip) # this is a valid call

clip = core.fb.FillBorders(clip, left=10) # this is also valid

clip = core.fb.FillBorders(clip, left=3, right=0, top=0, bottom=0, mode="fillmargins", interlaced=-1) # your sample