Posts: 460
Threads: 108
Joined: Jul 2020
A pity, thank you for the update.
Posts: 12
Threads: 3
Joined: Oct 2020
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!
Posts: 10.637
Threads: 57
Joined: May 2017
16.07.2024, 16:01
(This post was last modified: 16.07.2024, 16:02 by Selur.)
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.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.