Log in

View Full Version : InpaintDelogo - advanced logo removal & hardcoded subtitles extraction


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 [19] 20 21 22

kedautinh12
29th December 2023, 10:51
Why you set loc="0,0,0,0"? Your logo square but your mask circle white?

kedautinh12
29th December 2023, 10:53
First, choose the location of the logo with InpaintLoc
InpaintLoc(Loc="3560,170,-170,-1790")
https://imgur.com/ZHGVx7f

Second, create a mask with Automask=1. Cause your example video is short so I use Analyze=3
InpaintDelogo(mask="C:\Logos\mask1.bmp", Loc="3560,170,-170,-1790", Automask=1, aMix=-9, Analyze=3)
https://imgur.com/sWLBdXX

Finally, use Automask=0 to use mask for Delogo step and add some parameters. With mode=deblend will get a better result almost but when the logo moves to the boy's hat, the logo will appear so I replaced it with inpaint
InpaintDelogo(mask="C:\Logos\mask1.bmp", Loc="3560,170,-170,-1790", Automask=0, aMix=-9, Analyze=3, Mode="Inpaint", Optimize1=1, Optimize2=3, Interp=3, IntSpd=4, dPP=-5)
https://imgsli.com/MjI1MTQ5/0/1

Try with my example

VoodooFX
29th December 2023, 12:40
Hello,
Can't configure DeLogo parameters.


But you are not configuring anything, it's same copy/paste from your previous video.

Try with my example

Your example is weird. :)
You are using "Inpaint" but ~half of the parameters there are for "Deblend"...

kalehrl
29th December 2023, 20:24
Is anyone else having problems running Inpaintdelogo together with QTGMC?
I don't seem to be able to run them in the same script.
This script load fine in MeGUI but then I start encoding, MeGUI crashes:
LoadPlugin("D:\Programs\MeGUI\tools\lsmash\LSMASHSource.dll")
LWLibavVideoSource("D:\Videos\Encodes\File.mkv")
AssumeTFF()
QTGMC(Preset="Fast")
SelectEven()
crop(0, 60, 0, -62)

__film = last
__t0 = __film.trim(4780, 120954)
__t0

InpaintDelogo(mask="D:\mask.bmp", Loc="1480,2,-106,-900", Mode="Inpaint")
When I remove InpaintDelogo line, it starts encoding just fine.
Also, when I remove QTGMC line, encoding works fine.

VoodooFX
29th December 2023, 22:17
Is anyone else having problems running Inpaintdelogo together with QTGMC?
I don't seem to be able to run them in the same script.
This script load fine in MeGUI but then I start encoding, MeGUI crashes.

Never had such problem.

In MeGUI's avs script creator add "version()" and check what it shows. And can you preview your script?

What MeGUI, QTGMC & InpaintDelogo versions?


You can replace:
__film = last
__t0 = __film.trim(4780, 120954)
__t0

with:
trim(4780, 120954)

kedautinh12
30th December 2023, 01:39
I have same problem with latest ver too, i fix it by encode with QTGMC first time and encode with InpaintDelogo second time

VoodooFX
30th December 2023, 01:46
I have same problem with latest ver too, i fix it by encode with QTGMC first time and encode with InpaintDelogo second time

What MeGUI, QTGMC & InpaintDelogo versions?

Share a test sample with script & mask where I can reproduce it.

kedautinh12
30th December 2023, 08:51
With MeGUI-2944-64 (https://onedrive.live.com/?id=54E2524007FBC7DD%211116&cid=54E2524007FBC7DD), QTGMC (https://github.com/realfinder/AVS-Stuff/blob/113f9646c4f0c11406d6057096a6d0fbb630ce21/avs%202.6%20and%20up/QTGMC.avsi), InpaintDelogo (https://github.com/Purfview/InpaintDelogo/blob/5fe65a94d3b783b7d43378a6c14d20159e69f1a1/InpaintDelogo.avsi), Sample (https://drive.google.com/file/d/1xnbHJmDcgEpcBKsCqFFGNTeZmu-lJq7Z/view?usp=drive_link), and scripts:
DGSource("C:\Users\ADMIN\Downloads\Ashita ga Kuru nara - JUJU with JAY'ED PV.dgi")
QTGMC(Preset="Very Slow", Sharpness=0).SelectEven().prefetch(4)
trim(29,0).InpaintDelogo(mask="C:\Logos\Logo_SSTV1440i.bmp", Automask=1, aMix=0, Loc="38,36,-1286,-904")

I always stuck in step make mask

kalehrl
30th December 2023, 13:05
In MeGUI's avs script creator add "version()" and check what it shows. And can you preview your script?
https://i.ibb.co/pdcmB2T/New-File000239.png (https://imgbb.com/)

Yes, I can preview the script both in MeGUI and avspmod.
What MeGUI, QTGMC & InpaintDelogo versions?
The latest 32bit versions of all files.
I've only recently installed avisynth+ and all the plugins.
You can replace:

__film = last
__t0 = __film.trim(4780, 120954)
__t0

with:

trim(4780, 120954)
It didn't make a difference.

Funny enough, if I use preset "Super fast" instead of "Fast" the encoding works fine.

kedautinh12
30th December 2023, 15:35
https://i.ibb.co/pdcmB2T/New-File000239.png (https://imgbb.com/)

Yes, I can preview the script both in MeGUI and avspmod.

The latest 32bit versions of all files.
I've only recently installed avisynth+ and all the plugins.

It didn't make a difference.

Funny enough, if I use preset "Super fast" instead of "Fast" the encoding works fine.

Try latest ver
https://gitlab.com/uvz/AviSynthPlus-Builds

kalehrl
30th December 2023, 19:23
Did it fix your problem with QTGMC and InpaintDelogo?

kalehrl
30th December 2023, 21:14
Try latest ver
https://gitlab.com/uvz/AviSynthPlus-Builds

I tried replacing AviSynth.dll, DevIL.dll in C:\Windows\System32 and DirectShowSource.dll, VDubFilter.dll, TimeStretch.dll, Shibatch.dll, ImageSeq.dll, ConvertStacked.dll in C:\Program Files (x86)\AviSynth+\plugins+ but Version() still shows the old number.

doctorkhv
30th December 2023, 21:37
Video source https://workupload.com/file/6kk55AKyq7H
Image source https://workupload.com/file/tULBdZPZpKk

I changed the settings InpaintDelogo
InpaintDelogo( mask="X:\01a.png", Loc="0,0,0,0", Automask=1, Optimize2=2, Inflate=0, Turbo=-2)

Maybe I should cut the video into fragments?

VoodooFX
30th December 2023, 22:44
With MeGUI-2944-64 (https://onedrive.live.com/?id=54E2524007FBC7DD%211116&cid=54E2524007FBC7DD), QTGMC (https://github.com/realfinder/AVS-Stuff/blob/113f9646c4f0c11406d6057096a6d0fbb630ce21/avs%202.6%20and%20up/QTGMC.avsi), InpaintDelogo (https://github.com/realfinder/AVS-Stuff/blob/113f9646c4f0c11406d6057096a6d0fbb630ce21/avs%202.6%20and%20up/QTGMC.avsi), Sample (https://drive.google.com/file/d/1xnbHJmDcgEpcBKsCqFFGNTeZmu-lJq7Z/view?usp=drive_link), and scripts:
DGSource("C:\Users\ADMIN\Downloads\Ashita ga Kuru nara - JUJU with JAY'ED PV.dgi")
QTGMC(Preset="Very Slow", Sharpness=0).SelectEven().prefetch(4)
trim(29,0).InpaintDelogo(mask="C:\Logos\Logo_SSTV1440i.bmp", Automask=1, aMix=0, Loc="38,36,-1286,-904")

I always stuck in step make mask

The link for InpaindDelogo is wrong.
What means stuck? "Crash" is not same as "stuck".

Don't do stupid things and it wouldn't be "stuck". I imagine that doing triple "Very Slow" QTGMC deinterlace on a single thread is - "stuck". :D
That converts to what?! Roughly to ~12 times slower? What if you would try multiple analyses? That would convert to days instead of an hour...

VoodooFX
30th December 2023, 22:58
Maybe I should cut the video into fragments?

Wrote you that posting fantasies is futile.
Maybe start answering the questions, then we can figure it out your issue.

Copy/pasting the script I gave you few years ago to remove some spots from your video is not some magic wand you can use on everything.

VoodooFX
30th December 2023, 23:06
Yes, I can preview the script both in MeGUI and avspmod.

The latest 32bit versions of all files.
I've only recently installed avisynth+ and all the plugins.

It didn't make a difference.

Funny enough, if I use preset "Super fast" instead of "Fast" the encoding works fine.

Your perception of "the latest" can be way different than mine...

Anyway, check if "AVSMeter.exe yourscript.avs" crash. If it does then post what it shows.

Share a reproducible sample with stuff.

doctorkhv
30th December 2023, 23:34
Wrote you that posting fantasies is futile.
Maybe start answering the questions, then we can figure it out your issue.

Copy/pasting the script I gave you few years ago to remove some spots from your video is not some magic wand you can use on everything.

I agree this is a very difficult video, but on New Year all dreams come true :)

kedautinh12
31st December 2023, 02:25
I tried replacing AviSynth.dll, DevIL.dll in C:\Windows\System32 and DirectShowSource.dll, VDubFilter.dll, TimeStretch.dll, Shibatch.dll, ImageSeq.dll, ConvertStacked.dll in C:\Program Files (x86)\AviSynth+\plugins+ but Version() still shows the old number.

What's your Windows? x64 or x86?

kedautinh12
31st December 2023, 02:27
The link for InpaindDelogo is wrong.
What means stuck? "Crash" is not same as "stuck".

Don't do stupid things and it wouldn't be "stuck". I imagine that doing triple "Very Slow" QTGMC deinterlace on a single thread is - "stuck". :D
That converts to what?! Roughly to ~12 times slower? What if you would try multiple analyses? That would convert to days instead of an hour...

Look at the script, i try with prefetch(4)

VoodooFX
31st December 2023, 02:48
Look at the script, i try with prefetch(4)

Your prefetch doesn't do anything. Look at the manual, and multiple posts explaining why and what:


Int "Analyze":
Not MT compatible...
Clip is parsed ~few times...

kedautinh12
31st December 2023, 04:52
I'm crash too, fixed InpaintDelogo link

kalehrl
31st December 2023, 09:33
What's your Windows? x64 or x86?

Windows 11, 64bit.

kalehrl
31st December 2023, 09:52
Your perception of "the latest" can be way different than mine...

Anyway, check if "AVSMeter.exe yourscript.avs" crash. If it does then post what it shows.

Share a reproducible sample with stuff.

AVSMeter doesn't crash:

https://i.ibb.co/VV5FqzF/Untitled.png (https://ibb.co/8Mty7fy)

Please find the sample files (video sample, mask.bmp and script) here:
https://www.mediafire.com/file/1sgnal1e6fgbf26/Files.zip/file

kedautinh12
31st December 2023, 13:10
AVSMeter doesn't crash:

https://i.ibb.co/VV5FqzF/Untitled.png (https://ibb.co/8Mty7fy)

Please find the sample files (video sample, mask.bmp and script) here:
https://www.mediafire.com/file/1sgnal1e6fgbf26/Files.zip/file

Ok, move x64 .dll to system32 and plugins64+, move x86 .dll to syswow64 and plugins+. I know you confused about systems32 and syswow64, don''t ask me, blame Microsoft

VoodooFX
31st December 2023, 19:40
I'm crash too, fixed InpaintDelogo link

Is it MeGUI crash? What with AvSMeter?
For me your example doesn't crash in MeGUI's avs script preview.
I used LWLibAvVideoSource instead of your DGSource.
Check if kalehri's example crash for you.


Please find the sample files (video sample, mask.bmp and script) here:
https://www.mediafire.com/file/1sgnal1e6fgbf26/Files.zip/file

Your example doesn't crash too when encoding in MeGUI.



My versions:
Avisynth+ 3.7.3 [from the original repo]
MeGUI v2944 x86
LSMASHSource r1156
QTGMC v3.361s
InpaintDelogo v3.8-test2

I think you both have one thing in common - same QTGMC version, so start looking at that.

kalehrl
2nd January 2024, 09:52
I tried QTGMC v3.361s and some other versions but still the same.
I also tried the latest version of LSMASHSource but it didn't help.

VoodooFX
2nd January 2024, 11:01
I tried QTGMC v3.361s and some other versions but still the same.

Can you post output of "AvSMeter.exe -avsinfo"?

real.finder
2nd January 2024, 14:12
I suggest checking the used plugins in qtgmc since qtgmc is just script that use plugins like mvtools and nnedi3

kalehrl
2nd January 2024, 14:18
Can you post output of "AvSMeter.exe -avsinfo"?

Microsoft Windows [Version 10.0.22631.2861]
(c) Microsoft Corporation. All rights reserved.

D:\Programs\AVSMeter3090>AvSMeter.exe -avsinfo

AVSMeter 3.0.9.0 (x86), (c) Groucho2004, 2012-2021

VersionString: AviSynth+ 3.7.3 (r4003, 3.7, i386)
VersionNumber: 2.60
File / Product version: 3.7.3.0 / 3.7.3.0
Interface Version: 10
Multi-threading support: Yes
Avisynth.dll location: C:\Windows\SysWOW64\avisynth.dll
Avisynth.dll time stamp: 2023-07-15, 23:00:38 (UTC)
PluginDir2_5 (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins
PluginDir+ (HKLM, x86): C:\Program Files (x86)\AviSynth+\plugins+


[C 2.5 Plugins (32 Bit)] [Version, Time stamp]
C:\Program Files (x86)\AviSynth+\plugins+\AvsInPaint.dll [1.3.0.0, 2021-10-25]

[C++ 2.6 Plugins (32 Bit)] [Version, Time stamp]
C:\Program Files (x86)\AviSynth+\plugins+\AddGrainC.dll [1.8.4.0, 2022-02-15]
C:\Program Files (x86)\AviSynth+\plugins+\ClipBlend_x86.dll [1.1.0.0, 2018-11-27]
C:\Program Files (x86)\AviSynth+\plugins+\ConvertStacked.dll [n/a, 2023-07-15]
C:\Program Files (x86)\AviSynth+\plugins+\DePan.dll [2.13.1.6, 2020-05-22]
C:\Program Files (x86)\AviSynth+\plugins+\DePanEstimate.dll [2.10.0.4, 2020-05-22]
C:\Program Files (x86)\AviSynth+\plugins+\dfttest.dll [1.9.7.0, 2021-10-28]
C:\Program Files (x86)\AviSynth+\plugins+\DirectShowSource.dll [n/a, 2023-07-15]
C:\Program Files (x86)\AviSynth+\plugins+\fft3dfilter.dll [2.10.0.0, 2021-10-18]
C:\Program Files (x86)\AviSynth+\plugins+\FrameSel_x86.dll [2.20.0.0, 2018-04-20]
C:\Program Files (x86)\AviSynth+\plugins+\grunt.dll [1.0.2.0, 2020-04-30]
C:\Program Files (x86)\AviSynth+\plugins+\ImageSeq.dll [n/a, 2023-07-15]
C:\Program Files (x86)\AviSynth+\plugins+\LSMASHSource.dll [1161.0.0.0, 2023-12-24]
C:\Program Files (x86)\AviSynth+\plugins+\masktools2.dll [2.2.30.0, 2022-02-19]
C:\Program Files (x86)\AviSynth+\plugins+\mvtools2.dll [2.7.45.0, 2021-06-08]
C:\Program Files (x86)\AviSynth+\plugins+\neo_fft3d.dll [1.0.0.0, 2021-08-17]
C:\Program Files (x86)\AviSynth+\plugins+\nnedi3.dll [0.9.4.63, 2023-11-19]
C:\Program Files (x86)\AviSynth+\plugins+\RgTools.dll [1.2.0.0, 2021-05-26]
C:\Program Files (x86)\AviSynth+\plugins+\RT_Stats_x86.dll [2.0.12.0, 2018-11-25]
C:\Program Files (x86)\AviSynth+\plugins+\Shibatch.dll [n/a, 2023-07-15]
C:\Program Files (x86)\AviSynth+\plugins+\tcolormask.dll [1.2.2.0, 2022-06-11]
C:\Program Files (x86)\AviSynth+\plugins+\TDeint.dll [1.9.0.0, 2023-12-10]
C:\Program Files (x86)\AviSynth+\plugins+\TimeStretch.dll [n/a, 2023-07-15]
C:\Program Files (x86)\AviSynth+\plugins+\TIVTC.dll [1.0.28.0, 2023-12-10]
C:\Program Files (x86)\AviSynth+\plugins+\VDubFilter.dll [n/a, 2023-07-15]
C:\Program Files (x86)\AviSynth+\plugins+\vsTEdgeMask.dll [1.0.1.0, 2022-05-26]

[Scripts (AVSI)] [Time stamp]
C:\Program Files (x86)\AviSynth+\plugins+\colors_rgb.avsi [2022-10-06]
C:\Program Files (x86)\AviSynth+\plugins+\GrainFactory3.avsi [2023-12-29]
C:\Program Files (x86)\AviSynth+\plugins+\InpaintDelogo.avsi [2023-12-29]
C:\Program Files (x86)\AviSynth+\plugins+\QTGMC.avsi [2023-12-29]
C:\Program Files (x86)\AviSynth+\plugins+\Zs_RF_Shared.avsi [2023-12-29]

[Uncategorized files] [Time stamp]
C:\Program Files (x86)\AviSynth+\plugins+\colors_rgb.txt [2022-10-06]



[Plugin errors/warnings]
________________________________________________________________________________

Function duplicates:

"undefined" : "[InternalFunction]"
"Undefined" : "C:\Program Files (x86)\AviSynth+\plugins+\Zs_RF_Shared.avsi"

________________________________________________________________________________

D:\Programs\AVSMeter3090>

VoodooFX
2nd January 2024, 20:55
I updated all stuff, no crash, tested with "medium" preset too.
Here is my plugins folder reduced to bare minimum to run your script -> EDIT: DELETED


Btw, did you updated "AvisynthWrapper.dll" for MeGUI? But I think it shouldn't work at all for you without this update.

kalehrl
2nd January 2024, 21:10
Thanks. I'll try with your plugins.
I'm using developer server in MeGUI so I think I should have all files updated.

VoodooFX
2nd January 2024, 21:14
I'm using developer server in MeGUI so I think I should have all files updated.

MeGUI is abandonware, you can't have that update through the MeGUI's updates.

There it's -> https://drive.google.com/open?id=1JfiokTy2IOqOn1VTXN0eXQEDCC3vUdN4

kalehrl
2nd January 2024, 21:28
BINGO! That AvisynthWrapper.dll fixed the problem. I didn't replace any other plugins. Many thanks.

VoodooFX
2nd January 2024, 22:27
BINGO! That AvisynthWrapper.dll fixed the problem. I didn't replace any other plugins. Many thanks.

My first thought was that it's AvisynthWrapper issue, but I thought that InpaintDelogo alone should crash too.

Just tested the outdated AvisynthWrapper, strangely QTGMC and InpaintDelogo works when separate but not together. Dunno why, @pinterf should know.


@kedautinh12 check if you have proper AvisynthWrapper.
Or actually your issue is "stuck" instead of "crash"? :sly:

VoodooFX
3rd January 2024, 10:06
@kalehrl
Btw, there are bugs with MeGUI's avs preview. Use AvsPmod!

kalehrl
3rd January 2024, 21:13
I'm learning to use StaxRip but it's more difficult than MeGUI but I guess I'll have to now that MeGUI is basically abandoned.

charles-roberts
19th January 2024, 08:10
I have no use for InpaintDelogo ATM, but interested in learning about it.

Saved the manual to read over coming months:
https://raw.githubusercontent.com/Purfview/InpaintDelogo/18341ca8a1250ad7b4f5ab1e4298802ecf2060db/InpaintDelogo.avsi

What GUI could I use to select an opaque logo and display "Loc" values?

Is there a way to input "tilted square" or "diamond shape" "Loc" values?

-----------------------------------------


A final long question: What is val "mask"?

Thought Inpainting was tracking image around "lets say an opaque fixed position Logo" to reconstruct theoretical image behind Logo.

So I am confused what the mask is for and what "val" relates to?

Quote: Resolution of the image must be same as video clip's frame.
So if the video was 1920x1080 the mask is 1920x1080 and white?
---------

Clip based mask:
"mask" accepts clip input, resolution must be same as "Loc" area.
Dynamic mask expected to be full range Y8 or will be converted.
Static mask must be one frame clip otherwise it will be treated as a dynamic mask.

Is the "Clip based mask" a totally different type of mask?
Quote: resolution must be same as "Loc" area.
Are we talking of a single frame video clip the size of Logo?
If so, can it be mp4?

I am very confused what this mask stuff is about.
For example, the val "mask" seems to refer to video resolution, say 1920x1080.
The Clip based mask seems to refer to the Logo size, which might be 20x20.

Is there a simple explanation to help me understand "val", "clip input" and how the two different Masks are used?

kalehrl
19th January 2024, 09:24
What GUI could I use to select an opaque logo and display "Loc" values?
I don't think there is a GUI. Not even avspmod has sliders to adjust Loc values.
Is there a way to input "tilted square" or "diamond shape" "Loc" values?
I don't think so but the resulting mask will be in the shape of the logo whatever shape it is.
A final long question: What is val "mask"?
It is basically an image which will be placed over the logo to try to remove it.
Basically, these are the simplest steps to take:
1. Define Loc values like this for example:
InpaintLoc(Loc="1036,40,-44,-510")
https://i.ibb.co/4JQNwBz/New-File-7-014545.png (https://ibb.co/4JQNwBz)
2. Create automask:
InpaintDelogo(mask="D:\Videos\Encodes\smurfs.bmp", Automask=1, Loc="1036,40,-44,-510", Mode="Inpaint")
This is the resulting mask:
https://i.ibb.co/34jz6hf/smurfs.png (https://ibb.co/34jz6hf)
3. Encode using the final command:
InpaintDelogo(mask="D:\Videos\Encodes\smurfs.bmp", Loc="1036,40,-44,-510", Mode="Inpaint")
https://i.ibb.co/M8zPvQt/14514014545.png (https://ibb.co/M8zPvQt)

charles-roberts
19th January 2024, 10:05
I don't think there is a GUI. Not even avspmod has sliders to adjust Loc values.

I was just thinking about a way of seeing the video frame and coordinate values around the Logo!

I have been looking at "Shotcut" program.
Shotcut provides a video zoom scope to aid in inspecting images.

Still looking at the details.
What do you think?
https://forum.shotcut.org/t/video-zoom-scope/15654
https://forum.shotcut.org/t/video-scopes/19996
-------

Regarding selection around other shapes?
I read what you said about: "but the resulting mask will be in the shape of the logo whatever shape it is."

But I would still like to know, can you select more then one area?
Like a video with two Logos in separate fixed locations!
Or a single complex shaped Logo in fixed location, that is then divided into multiple "Loc" value sets for processing!

VoodooFX
19th January 2024, 13:43
What GUI could I use to select an opaque logo and display "Loc" values?

AvsPmod (https://forum.doom9.org/showthread.php?t=175823).

Is there a way to input "tilted square" or "diamond shape" "Loc" values?


There is no point in doing any of this. Probably you are thinking about "mask".

A final long question: What is val "mask"?



https://github.com/Purfview/InpaintDelogo/blob/13e27f3deb83ef4415543351d362111015959e82/InpaintDelogo.avsi#L261

what "val" relates to?


http://avisynth.nl/index.php/Script_variables

Because "mask" here accepts the strings and the clips.

I am very confused what this mask stuff is about.


https://www.youtube.com/watch?v=OtVR9_Ua-C8

I have been looking at "Shotcut" program...

Ask at "Shotcut" forums.

But I would still like to know, can you select more then one area?

You can select only a one area with "Loc".


Like a video with two Logos in separate fixed locations!

You can run another instance for second logo, or you can select whole frame if you want.

color
26th January 2024, 10:33
How do I do so it pull into from the left and right instead of all size?

VoodooFX
26th January 2024, 16:37
How do I do so it pull into from the left and right instead of all size?

I can't understand what you are asking.
Share your full avs script with masks and a video sample!

color
26th January 2024, 20:38
I can't understand what you are asking.
Share your full avs script with masks and a video sample!

I can not share cause I don't know.

I want the it to pull the image => and <= not all sides. I think it was called "Pixel Aspect" in DeLogo.

VoodooFX
26th January 2024, 22:21
I can not share cause I don't know.

I want the it to pull the image => and <= not all sides.

Still, I've no idea what "pull the image" or "=> and <= " means.
Share what you know.


I think it was called "Pixel Aspect" in DeLogo.

There was something named like that, an useless arg doing practically nothing.

color
27th January 2024, 08:53
Still, I've no idea what "pull the image" or "=> and <= " means.
Share what you know.




There was something named like that, an useless arg doing practically nothing.


I don't know how to make it clearer, sorry....I do not want this when inpaint.

https://i.ibb.co/YPMjmyN/img-01.png

I want this:

https://i.ibb.co/p13rRT7/img-02.png

I am editing a text in a movie and it has lines, so when using it and putting on a new text (another font that is not 100% same) does not good wwhen its like the first image, but much better if it can pull from left and right instead of all sides.

I wrote the same as my post and let chatGTP do explain it more clearly.

"I have a video with a logo that I want to remove using a delogo tool. The issue is that the current tool I'm using removes content uniformly from all sides, which doesn't look natural in my video. I'm looking for a delogo tool that can intelligently pull or stretch the background from the left and right sides, creating a more seamless and natural appearance."

For example, thats why I want to know how to make it pull from left and right instead of all sides, cause it does not look correct.

lets say this is original:
https://i.ibb.co/M8HckTY/Untitled-1.png

and lets say this is the text I want to add to it after "delogo"
https://i.ibb.co/F62fNSm/img-03.png

but I need to pull from left to right instead of all sides, so it could look like this:
https://i.ibb.co/tYXdr0C/img-01.png

I need it to work with the mask to be even clearer, so I can not just put a square and pull together, then I will loose alot of image.

VoodooFX
27th January 2024, 09:27
Try Turbo=-1 or Turbo=-2 presets.
And if you want to block something from bottom and top then "crop" with Loc the video at those places.

Guilbert
11th February 2024, 18:43
Hi,

I'm having trouble OCRing the part of the sample I sent you, VoodooFX.
Can you please take a look?

Here is my parameters:
Loc="300,840,-300,-60", Show=4, DynMask=4, DynMask4H=150, DynTune=180, DynMaskUp=2, SubMinDur=4, FourCC="X264"

VoodooFX
11th February 2024, 19:09
Here is my parameters

Your parameters doesn't work or the sample is wrong. Post the working ones.

Guilbert
11th February 2024, 20:11
Okay, it's because I used LanczosResize(1920, 1080).

Here is the parameters:
Loc="300,560,-300,-40", Show=4, DynMask=4, DynMask4H=150, DynTune=180, DynMaskUp=2, SubMinDur=4, FourCC="X264"

(I sent you another sample.)

Thanks.

VoodooFX
11th February 2024, 22:29
You won't get rid completely of the titles behind the subtitles.
Try this:


InpaintDelogo(Loc="300,570,-300,-50", Show=4, DynLocUp=2, DynMask=3, Dyn3Seq=20, DynTune=160, DynTEdge=1, DynTEdgeThY=50, DynTEdgeInf=4, KillNoise=5, KillBlobs=-5, Extract=-1, CorrTh=0.7, ImgDir="D:\img")