Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 21st August 2023, 09:19   #861  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Hi, i meet problem with this tittle, i try both 3 mode with parameter relate and all analyze but can't delogo

Mask

Script:
Code:
InpaintDelogo(mask="C:\Logos\mask1.bmp", Analyze=2, Automask=0, aMix=-6, Loc="88,860,-870,-56", Mode="Both", otune=10, oTinflate=2)
Video:
https://drive.google.com/file/d/1uRr...ew?usp=sharing
kedautinh12 is online now   Reply With Quote
Old 21st August 2023, 13:00   #862  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 975
Your mask is hollow and I don't see reason for "Both".
VoodooFX is offline   Reply With Quote
Old 21st August 2023, 13:35   #863  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Quote:
Originally Posted by VoodooFX View Post
Your mask is hollow and I don't see reason for "Both".
I mean try 3 mode but don't work
kedautinh12 is online now   Reply With Quote
Old 21st August 2023, 14:09   #864  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 975
Quote:
Originally Posted by kedautinh12 View Post
I mean try 3 mode but don't work
I understood what you meant.
VoodooFX is offline   Reply With Quote
Old 21st August 2023, 14:21   #865  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Quote:
Originally Posted by VoodooFX View Post
I understood what you meant.
I try both 3 mode "both", "inpaint", "deblend" but don't work
kedautinh12 is online now   Reply With Quote
Old 21st August 2023, 14:42   #866  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 975
Quote:
Originally Posted by kedautinh12 View Post
I try both 3 mode "both", "inpaint", "deblend" but don't work
Yeah, that's is exactly what I understood from your first post.

Do you understand what I answered? Your basemask is hallow, it doesn't cover the logo you want to remove.
VoodooFX is offline   Reply With Quote
Old 21st August 2023, 15:02   #867  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Quote:
Originally Posted by VoodooFX View Post
Yeah, that's is exactly what I understood from your first post.

Do you understand what I answered? Your basemask is hallow, it doesn't cover the logo you want to remove.
I know, but how to make a mask cover all, i try with amix but can't
kedautinh12 is online now   Reply With Quote
Old 21st August 2023, 15:18   #868  |  Link
katzenjoghurt
Registered User
 
Join Date: Feb 2007
Posts: 128
Quote:
Originally Posted by kedautinh12 View Post
I know, but how to make a mask cover all, i try with amix but can't
Didn’t have a look at your video myself, but…
Did you take care to trim() to only the section where the logo is actually visible?

I see that it’s not there during the first seconds.


If everything fails you could also fill the holes manually in Paint or so. But I’m sure there’s another way.


Btw. “both” looks about right as the inner part is transparent. Not sure though if it’s transparent enough.

Last edited by katzenjoghurt; 21st August 2023 at 15:21.
katzenjoghurt is offline   Reply With Quote
Old 21st August 2023, 16:16   #869  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
I trimed but still don't make mask cover all
kedautinh12 is online now   Reply With Quote
Old 21st August 2023, 16:22   #870  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Ok, I use Photoshop to paint all white colors but it still doesn't work perfectly with 3 modes

Mask:

Scripts:
Code:
LoadPlugin("C:\Megui\MeGUI-2944-64\tools\lsmash\LSMASHSource.dll")
LWLibavVideoSource("C:\Users\ADMIN\Downloads\Orphans no Namida -live ver.- - MISIA PV.video-muxed.mkv", format="YUV420P8")
AnimeIVTC(mode=1)
propSet("_FieldBased",0)
trim(333,7304).InpaintDelogo(mask="C:\Logos\mask1.bmp", Analyze=2, Automask=0, aMix=-6, Loc="88,860,-870,-56", Mode="Inpaint")
kedautinh12 is online now   Reply With Quote
Old 21st August 2023, 19:39   #871  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 975
Quote:
Originally Posted by kedautinh12 View Post
I know, but how to make a mask cover all, i try with amix but can't
You can get some PhotoShop course. Btw, your mask doesn't look full white.

Below is example how to get mask with Avisynth:
Code:
LWLibAvVideoSource("D:\Orphans no Namida -live ver.- - MISIA PV.ts").TFM
v=Trim(500, 9116)

m=v.Trim(9116,-1).ExtractY.Crop(88,860,-870,-56).mt_binarize(30).mt_expand.mt_expand

v.InpaintDelogo(mask=m, Loc="88,860,-870,-56", mode="Inpaint")

StackVertical(v.Crop(88,860,-870,-56), m.ConvertToYV12, last.Crop(88,860,-870,-56))
Frame 2433:

VoodooFX is offline   Reply With Quote
Old 22nd August 2023, 01:28   #872  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,127
Got it, thanks
kedautinh12 is online now   Reply With Quote
Old 31st August 2023, 21:08   #873  |  Link
katzenjoghurt
Registered User
 
Join Date: Feb 2007
Posts: 128
Hey VoodooFX,

Regarding Turbo2:

Out of your mind: Do you have an idea why I would have to rise Inflate together with Turbo2 for thinner elements in logos?

I rise Turbo2 and suddenly I see artifacts. I can counter them though with Inflate... until I reach the prameter limit of course.

If you have no idea right away, I will try to create a sample.

Last edited by katzenjoghurt; 31st August 2023 at 21:39.
katzenjoghurt is offline   Reply With Quote
Old 1st September 2023, 11:53   #874  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 975
Quote:
Originally Posted by katzenjoghurt View Post
Do you have an idea why I would have to rise Inflate together with Turbo2 for thinner elements in logos?

If you have no idea right away, I will try to create a sample.
If mask has thin elements then probably they can disappear with high Turbo2, because mask is downscaled.
Yes, share a video sample with mask.
VoodooFX is offline   Reply With Quote
Old 16th September 2023, 18:59   #875  |  Link
Lirk
Registered User
 
Join Date: Jan 2018
Posts: 33
Is there FFmpeg Delogo filter port for AviSynth? It looks like "dekafka", but with soft edges blur.
Lirk is offline   Reply With Quote
Old 17th September 2023, 12:17   #876  |  Link
katzenjoghurt
Registered User
 
Join Date: Feb 2007
Posts: 128
Quote:
Originally Posted by VoodooFX View Post
If mask has thin elements then probably they can disappear with high Turbo2, because mask is downscaled.
Yes, share a video sample with mask.
Hi again, VoodooFX.
Finally the promised sample (contains source, logo file, mask):
https://wetransfer.com/downloads/d9e...ource=sendgrid

Logo:


Mode="Inpaint", Optimize1=0, Turbo2=1:


Mode="Inpaint", Optimize1=0, Turbo2=3


Mode="Inpaint", Optimize1=0, Turbo2=3, Inflate=3
katzenjoghurt is offline   Reply With Quote
Old 4th November 2023, 17:42   #877  |  Link
tuanden0
Registered User
 
Join Date: Oct 2016
Posts: 111
@VoodooFX,

Could you give me any example for extracting hardsubbed video?
tuanden0 is offline   Reply With Quote
Old 4th November 2023, 21:52   #878  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 975
@katzenjoghurt I'll fix it in a normal release. Not soon, maybe after I'll implement all features requested for Standalone Faster-Whisper...

Quote:
Originally Posted by tuanden0 View Post
@VoodooFX,

Could you give me any example for extracting hardsubbed video?
I don't have any at hand, there should be plenty in this thread.
If something will be unclear then share your avs script with a video sample [where subs are in the brightest backgrounds].

Last edited by VoodooFX; 5th November 2023 at 00:56.
VoodooFX is offline   Reply With Quote
Old 5th November 2023, 18:13   #879  |  Link
katzenjoghurt
Registered User
 
Join Date: Feb 2007
Posts: 128
Quote:
Originally Posted by VoodooFX View Post
@katzenjoghurt I'll fix it in a normal release. Not soon, maybe after I'll implement all features requested for Standalone Faster-Whisper...
👍
katzenjoghurt is offline   Reply With Quote
Old 10th December 2023, 06:23   #880  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 48
Hello,
Can't configure DeLogo parameters.
Logo in the upper right corner.




Video source https://workupload.com/file/C5KUsGd5W7y
Image source https://workupload.com/file/3PBTYE8naKp

InpaintDelogo( mask="X:\01\120.png", Loc="0,0,0,0", Analyze=-4, Optimize2=2, Inflate=0, Turbo=-1)
doctorkhv is offline   Reply With Quote
Reply

Tags
delogo, hardsubs, ocr, remove, watermark

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.