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 18th November 2021, 14:39   #221  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
If some of your ranges/logos overlap then I dunno if ClipClop will do the job properly in those examples. StainlessS should know.
RemapFrames example would need adjustment to do overlaps.
VoodooFX is offline   Reply With Quote
Old 18th November 2021, 16:00   #222  |  Link
Danette
Registered User
 
Join Date: Apr 2013
Posts: 346
Yes, the logos are all overlaps, with some instances of three at a time.

VDub Delogo handles them and, I suspect, these, or similar, codes were used.
Danette is offline   Reply With Quote
Old 18th November 2021, 16:04   #223  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
The later [in SCMD/CMD] range/frame overrides previously specified ranges/frames,
specifying clip index 0, restores to original source [first clip arg].
Code:
SCMD="""
1 100,200  # replace range 100 to 200 with range from clip 1
0 50       # but frame 50 restored to source frame
"""
EDIT:
Quote:
with some instances of three at a time.
Ho Ho ho, good luck with that.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 18th November 2021, 16:37   #224  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by Danette View Post
Yes, the logos are all overlaps, with some instances of three at a time.
Then this should work, I think:
Code:
Ranges1="""
1 0,500; 1 3400,3800; 1 4000,4444
"""
Ranges2=""" 
1 2020,2500
"""
Ranges3="""
1 1100,1900
"""

V1 = InpaintDelogo( mask="D:\logo1.bmp")
ClipClop(Last,V1,scmd=Ranges1,show=false)

V2 = InpaintDelogo( mask="D:\logo2.bmp")
ClipClop(Last,V2,scmd=Ranges2,show=false)

V3 = InpaintDelogo( mask="D:\logo3.bmp")
ClipClop(Last,V3,scmd=Ranges3,show=false)
Or:
Code:
V1 = InpaintDelogo( mask="D:\logo1.bmp")
ReplaceFramesSimple(Last,V1,Mappings="[0 500] [3400 3800] [4000 4444]")
V2 = InpaintDelogo( mask="D:\logo2.bmp")
ReplaceFramesSimple(Last,V2,Mappings="[2020 2500]")
V3 = InpaintDelogo( mask="D:\logo3.bmp")
ReplaceFramesSimple(Last,V3,Mappings="[1100 1900]")

Last edited by VoodooFX; 18th November 2021 at 17:11.
VoodooFX is offline   Reply With Quote
Old 18th November 2021, 20:34   #225  |  Link
Danette
Registered User
 
Join Date: Apr 2013
Posts: 346
Quote:
Originally Posted by StainlessS View Post
Ho Ho ho, good luck with that.
As a point of curiosity, any idea how Karel Suhajda accomplished this, so easily (from a users standpoint) in VDub? Is VDub simply more dynamic, for code, than Avisynth?


Quote:
Originally Posted by VoodooFX View Post
Code:
V1 = InpaintDelogo( mask="D:\logo1.bmp")
ReplaceFramesSimple(Last,V1,Mappings="[0 500] [3400 3800] [4000 4444]")
V2 = InpaintDelogo( mask="D:\logo2.bmp")
ReplaceFramesSimple(Last,V2,Mappings="[2020 2500]")
V3 = InpaintDelogo( mask="D:\logo3.bmp")
ReplaceFramesSimple(Last,V3,Mappings="[1100 1900]")
I’ll try this, in the next several days, as it seems that the first code is going to require the same 20-30 script lines, per video, as the trim approach would.
Danette is offline   Reply With Quote
Old 19th November 2021, 03:40   #226  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Sorry, I have no idea what Karel Suhajda accomplished, nor how.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 19th November 2021, 22:20   #227  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
I played a bit with new analyze func, good results so far, but I compared it to AviUtl logoscan and I get there selected significantly different frames, maybe Threshold there doesn't mean MinMax threshold...

Can anyone who can read c++ look there and tell what is done with that Threshold param?

In filter.cpp /scanpix.cpp I see that it's defined as tTHY and then I can't understand what is going on with it there.


Quote:
Originally Posted by Danette View Post
I’ll try this, in the next several days, as it seems that the first code is going to require the same 20-30 script lines, per video, as the trim approach would.
20-30 lines in script is usual... Do you write your scripts in MeGUI's editor? If you do then I understand your frustration with that small screen. Get AvsPmod!

Last edited by VoodooFX; 19th November 2021 at 22:35.
VoodooFX is offline   Reply With Quote
Old 21st November 2021, 10:36   #228  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Does anyone have wishes/suggestions about delogo and stuff?
I've decided to rewrite automask and deblend, to do it right this time. Incorporating smart analysis into current hacks needs to tweak them, I think for me it's easer just to remove those hacks and do a proper delogo in the first place... They usually work well in normal cases, but not for those poor souls who wants to delogo Nth recompressed videos (where logo/blending is simply damaged by artifacts).
[Those hacks are to work around some flaws in the Karel Suhajda's delogo design, which was copied and consequently flaws were inherited by AvsInpaint].

What about idea to incorporate all masks into one file? That would make it more universal, in case you would want to use masks on other videos with same logo, you would need to change only coords to move all logo masks, but at the current state you can move only by 2 pxs, it's possible to add compatibility to 1px, but lots of stuff then need to be rechecked/rewritten and probably there would be some performance penalty. I'm not sure if it's worth to bother, there are no problems for the savy avs users...

Last edited by VoodooFX; 21st November 2021 at 13:50.
VoodooFX is offline   Reply With Quote
Old 21st November 2021, 13:15   #229  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
I wish inpaintdelogo easy to use
kedautinh12 is offline   Reply With Quote
Old 21st November 2021, 13:30   #230  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by kedautinh12 View Post
I wish inpaintdelogo easy to use
There will be even more parameters, but I promise I'll stop after 100. [word of the boy scout]

But you never stated what is hard there for you, almost everything there happens automatically, except setting loc of the logo and the analysis frames for deblend, but in v2 analysis stuff will be automated.

Probably you didn't used previous delogo scripts where there were less parameters, and you could change any of them but still that didn't made logo disappear.

Last edited by VoodooFX; 21st November 2021 at 13:35.
VoodooFX is offline   Reply With Quote
Old 21st November 2021, 17:46   #231  |  Link
dot75
Registered User
 
Join Date: Oct 2021
Posts: 11
hello I would like to hide this parental advisory I understood how to hide the round logo on the other hand it does not work for the advisory

InpaintDelogo( Loc="1018,922,-254,-106)
Attached Images
 

Last edited by dot75; 21st November 2021 at 17:57.
dot75 is offline   Reply With Quote
Old 21st November 2021, 18:56   #232  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by dot75 View Post
hello I would like to hide this parental advisory I understood how to hide the round logo on the other hand it does not work for the advisory

InpaintDelogo( Loc="1018,922,-254,-106)
Hi, upload your attachment to imgur.com or to other image hosting site.
VoodooFX is offline   Reply With Quote
Old 21st November 2021, 19:24   #233  |  Link
dot75
Registered User
 
Join Date: Oct 2021
Posts: 11
Quote:
Originally Posted by VoodooFX View Post
Hi, upload your attachment to imgur.com or to other image hosting site.
https://imgur.com/a/llDwuXB

Last edited by dot75; 21st November 2021 at 19:27.
dot75 is offline   Reply With Quote
Old 21st November 2021, 19:52   #234  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
And where is the mask image? Post your full script too and version of InpaintDelogo.
Btw, your Loc doesn't leave minimum 10pxs space at the top and right sides, use "1018,920,-248,-106".

Last edited by VoodooFX; 21st November 2021 at 19:58.
VoodooFX is offline   Reply With Quote
Old 21st November 2021, 20:01   #235  |  Link
dot75
Registered User
 
Join Date: Oct 2021
Posts: 11
InpaintDelogo( mask="H:\Mask8.bmp",
\ Automask=0, aMix=-0,Loc="1672,914,-184,-100",
\ Mode="Inpaint",
\ Analyze=3, FrW=54, FrS=0,dPP=0,Show=0,Inflate=2)

for parental advisor
InpaintDelogo( Loc="1018,920,-248,-106",DynMask=3, DynInflate=4, Dyn3Seq=13, ClpBlend=11, Show=5)
dot75 is offline   Reply With Quote
Old 21st November 2021, 20:07   #236  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
And version of InpaintDelogo?
DynMask=3 is probably not a correct method here.
VoodooFX is offline   Reply With Quote
Old 21st November 2021, 20:08   #237  |  Link
dot75
Registered User
 
Join Date: Oct 2021
Posts: 11
Quote:
Originally Posted by VoodooFX View Post
And version of InpaintDelogo?
DynMask=3 is probably not a correct method here.
yes 1.48
dot75 is offline   Reply With Quote
Old 21st November 2021, 20:32   #238  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
What means "does not work"?
That round logo looks like it's transparent so correct would be to deblend it. For text use inpaint, you can do both logos in one go with mode="Both".
Why you use Dynamic=3? Why Dyn3Seq=13, is logo there for only half second? Show=5 doesn't do delogo, it only shows you a mask.
VoodooFX is offline   Reply With Quote
Old 21st November 2021, 20:43   #239  |  Link
dot75
Registered User
 
Join Date: Oct 2021
Posts: 11
Quote:
Originally Posted by VoodooFX View Post
What means "does not work"?
That round logo looks like it's transparent so correct would be to deblend it. For text use inpaint, you can do both logos in one go with mode="Both".
Why you use Dynamic=3? Why Dyn3Seq=13, is logo there for only half second? Show=5 doesn't do delogo, it only shows you a mask.
how to do I must put the loca twice ?
the text disappears at frame 1300
dot75 is offline   Reply With Quote
Old 21st November 2021, 21:00   #240  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by dot75 View Post
how to do I must put the loca twice ?
the text disappears at frame 1300
You don't. Include both logos in same Loc. And both logos should be in the mask.
If logo is not in the whole video then delogo only that range, example is there https://forum.doom9.org/showthread.p...47#post1957647
VoodooFX 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 11:40.


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