This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Wondering what others think VapourSynth is missing,..
#11
A pity, thank you for the update.
Reply
#12
Just in case anyone in the future hits this thread, like I did, looking for how exactly you get InpaintDelogo working in Hybrid, here's how I managed it:
  • Create your .bmp mask in Photoshop or whatever image editing tool you prefer. Mask should be a black background with the area you want to remove in white
  • Use AVSPMod to work out the coordinates/offsets of area for removal. This script will show a yellow shaded area which you need to get to cover your logo with about 14 pixels extra each side of the logo:
LoadCPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\AVSInpaint.dll")
DirectShowSource("C:\VideoFiles\TestVideo.vob", audio=false)
InpaintLoc(Loc="612,424,-48,-64")
  • You can then test the removal in AVSPMod with this script:
DirectShowSource("C:\VideoFiles\TestVideo.vob", audio=false)
Loc="612,424,-48,-64"
InpaintDelogo(mask="C:\VideoFiles\DelogoMask.bmp", Loc=Loc, Mode="Inpaint", Turbo=0)
  • If happy with the results, time to encode with Hybrid. Make sure to set [Config] -> [Internals] -> Avisynth Type: 64-bit
  • In [Filtering] -> [AviSynth] -> [Custom] add the following code to and "Insert Before" Crop:
LoadCPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\AVSInpaint.dll")
Import("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\InpaintDelogo.avsi")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\masktools2.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\grunt.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\ClipBlend_x64.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\FrameSel_x64.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\RT_Stats_x64.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\TDeint.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\TIVTC.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\vsTEdgeMask.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\tcolormask.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\ImageSeq.dll")
LoadPlugin("C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\neo-fft3d.dll")

Loc="628,456,-58,-56"
InpaintDelogo(mask=" C:\VideoFiles\DelogoMask.bmp ", Loc=Loc, Mode="Inpaint", Turbo=0)

Hints and tips on how to optimize/improve this workflow gratefully received!
Reply
#13
Instead of DirectShowSource better use other source filters, DirectShowSource is the worst, when it comes to frame accuracy, since those DirectShow is now meant to be strictly frame accurate.
Also, ProPainter in Vapoursynth works fine for me. Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)