View Single Post
Old 27th December 2022, 16:18   #676  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
I think you don't understand what you are doing with those parameters, maybe the example below will help:

Code:
v=LWLibavVideoSource("D:\[ALEXANDROS] - Pray [1440x1080i MPEG2 SSTV HD].ts").TFM.TDecimate.Crop(0, 154, 0, -170).Addborders(0, 154, 0, 170).Trim(400,4599)
x=v.crop(1260,194,-20,-194)

# the mask by brightness: 
a=v.InpaintDelogo(Loc="1260,194,-20,-194", Show=4, DynMask=6, DynTune="110 - 155", DynTuneInf=1) 
# the mask by color: 
b=v.InpaintDelogo(Loc="1260,194,-20,-194", Show=4, DynMask=5, DynColor=$868185, DynColorTol=65, DynColorInf=2) 
# the mask by edges: 
c=v.InpaintDelogo(Loc="1260,194,-20,-194", Show=4, DynMask=7, DynTEdge=1, DynTEdgeThY=5, DynTEdgeInf=1)

# the combo mask (mix of the 3 masks [a+b+c]): 
n=v.InpaintDelogo(Loc="1260,194,-20,-194", Show=4, DynMask=2, DynTune="110 - 155", DynTuneInf=1, DynColor=$868185, DynColorTol=65, DynColorInf=2, DynTEdge=1, DynTEdgeThY=5, DynTEdgeInf=1)

# the combo mask temporaly refined by using 40 frames: 
m=v.InpaintDelogo(Loc="1260,194,-20,-194", Show=4, DynMask=3, DynTune="110 - 155", DynTuneInf=1, DynColor=$868185, DynColorTol=65, DynColorInf=2, DynTEdge=1, DynTEdgeThY=5, DynTEdgeInf=1, Dyn3Seq=40)

# Inpainting the temporal combo mask [+DynInflate=1]:
o=v.InpaintDelogo(Loc="1260,194,-20,-194", Show=0, DynMask=3, DynTune="110 - 155", DynTuneInf=1, DynColor=$868185, DynColorTol=65, DynColorInf=2, DynTEdge=1, DynTEdgeThY=5, DynTEdgeInf=1, Dyn3Seq=40, DynInflate=1)


StackHorizontal(x.AddBorders(0,0,2,0,$F0F080).Subtitle("Original"),
\ o.crop(1260,194,-20,-194).AddBorders(0,0,2,0,$F0F080).Subtitle("Inpainted"),
\ m.ConvertToYV12.AddBorders(0,0,2,0,$F0F080).Subtitle("T. Combo mask"),
\ n.ConvertToYV12.AddBorders(0,0,2,0,$F0F080).Subtitle("Combo mask"),
\ a.ConvertToYV12.AddBorders(0,0,2,0,$F0F080).Subtitle("DynMask6"),
\ b.ConvertToYV12.AddBorders(0,0,2,0,$F0F080).Subtitle("DynMask5"),
\ c.ConvertToYV12.Subtitle("DynMask7"))


Last edited by VoodooFX; 27th December 2022 at 17:05.
VoodooFX is offline   Reply With Quote