Log in

View Full Version : Help with MP_Pipeline : error "Invalid arguments to function ..."


VideoOnTapes
21st March 2021, 20:23
Hi,

I would like to use 32 bit and 64 bit filters with MP_Pipeline in the following script, but I get a script error "Invalid arguments to function FixChromaBleeding".

clip = FFmpegSource2("file.mp4", vtrack = -1, atrack = -1)

clip = ConvertToYV12(clip, interlaced=true)
clip = clip.QTGMC(FPSDivisor=2)

clip = clip.callFixChromaBleeding()

function callFixChromaBleeding(clip clip) {
MP_Pipeline("""
### platform: win32
Import("C:\Program Files (x86)\AviSynth+\plugins\FixChromaBleeding.avsi")
FixChromaBleeding()
### ###
""")
return last
}

I also try the following script :

clip = callFixChromaBleeding(clip)

function callFixChromaBleeding(clip clip) {
MP_Pipeline("""
### platform: win32
Import("C:\Program Files (x86)\AviSynth+\plugins\FixChromaBleeding.avsi")
FixChromaBleeding(clip)
### ###
""")
return last
}

and get the following error : "Script error : I don't know what 'clip' means".

Could you help me to solve this error?

Stereodude
24th March 2021, 23:45
I don't think it works like that. Try this:

MP_Pipeline("""
### platform: win64

clip = FFmpegSource2("file.mp4", vtrack = -1, atrack = -1)

clip = ConvertToYV12(clip, interlaced=true)
clip.QTGMC(FPSDivisor=2)

### ###
### platform: win32
Import("C:\Program Files (x86)\AviSynth+\plugins\FixChromaBleeding.avsi")

clip=last
FixChromaBleeding(clip)

### ###

""")

VideoOnTapes
26th March 2021, 18:09
Thank you for your help. I can see more clearly now.
I think I should have read the documentation first.