16.07.2024, 15:16
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:
Hints and tips on how to optimize/improve this workflow gratefully received!
- 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!