Selur's Little Message Board

Full Version: How to use Custom Code/Plugins
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

airpoint

Hello ?
First of all, thank you for such a fantastic bundle as the Hybrid app is. IMO is the best, if not the only way how to get QTGMC on macOS today ?

I'm a total newb and trying to figure out how to install and use any custom plugins with Hybrid. I understand I can run any vapoursynth code from the `Custom` section. But the problem is, I'm at absolute loss as for how to call a custom plugin and refer (pipe?) the clip that is being processed. 

For example the GradCurve plugin — I've managed to make a `dylib` file on my macOS installation by following their linux guide. Only to realise that there is already a `libgradcurve.dylib` included by default. Either way, what next whatever I type in or try to run results in job crash. I'm not even actually able to see where did it crash ?

So my question would be, please, if somebody's reading this and knows where I should look:

1. how to call custom plugins/code in Hybrid?
2. how to debug crash logs (where to find them)?


TaPlease, read the 'Infos needed to fix&reproduce bugs,..'-sticky before you post about a problem.
Quote:2. how to debug crash logs (where to find them)?
If you had not ignored the request:
Quote:Please, read the 'Infos needed to fix&reproduce bugs,..'-sticky before you post about a problem.
you would have known.
-> read the sticky.

Quote:how to call custom plugins/code in Hybrid?
for Avisynth: Filtering->Avisynth->Custom
for Vapoursynth: Filtering->Vapoursynth->Custom
then look at the Vapoursynth/Avisynth script view to see what happens.
Assuming you know your way around the script language you want to extend the rest should be easy.
For example if you add a custom addition before the end Hybrid would add
Code:
# defining beforeEnd-function
def beforeEnd(clip):
  #YOUR CODE HERE
  return clip
at the beginning and
Code:
clip = beforeEnd(clip)
before the output of the return clip.
Assuming you properly write the '#YOUR CODE HERE'-part everything should work.
For example:
Code:
clip = core.resize.Bicubic(clip=clip, format=vs.RGB24) # you might need to specify additional parameters here depending of on your current color space
clip = core.grad.Curve(clip,'/media/sf_moon/enc/GradCurve/003b.amp', ftype=1, pmode=1)
# you might also want to convert back to the color space you came from

For debugging script the Avisynth/Vapoursynth Preview and pspipe are usually good tools.
If the Vapoursynth/Avisynth Preview does not work properly with your script neither will the encode.

Cu Selur

airpoint

Oh Wow! Thank you so much for this! Amazing, you're the best! Cheers