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 October 2022, 17:28   #641  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by kedautinh12 View Post
Cause i cut and paste in ms paint. AnimeITVC is deinterlaced script
Does this video looks like "Anime" for you?
Right click on AvSPmod preview and "Save image as...", then upload to https://imgbox.com, copy/paste BB-Code from there.

My take on this one subtitle:
Code:
LWLibAvVideoSource("D:\back number - Kaitou [1440x1080i MPEG2 M-ON! HD].ts").TFM()
InpaintDelogo(Loc="1324,110,-60,-160", DynMask=2, DynTune=190, DynTuneInf=1, DynTEdge=1, DynTEdgeThY=30, DynTEdgeInf=1, DynInflate=4)
Frame 2794:
Before:


After:


Your anime ms paint: https://i.imgur.com/XoBnTun.png

Last edited by VoodooFX; 18th October 2022 at 17:39.
VoodooFX is offline   Reply With Quote
Old 18th October 2022, 17:40   #642  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
AnimeITVC can use for real world too. Are you check all subtitles?? Cause sometime DynTune=190 can't detect all letters, that why i deceased Dyntune to 80

Last edited by kedautinh12; 19th October 2022 at 17:03.
kedautinh12 is offline   Reply With Quote
Old 18th October 2022, 18:05   #643  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by VoodooFX View Post
Can the post-processing steps of InpaintDelogo be applied to an already delogo'd clip? I created an lgd, and while the result is not perfect I think the remaining artifacts can be mitigated.



The problem with TV MPEG-2 live footage is that there is always lots of artifacts in and around the logo. In some scenes the delogo'd area is better and in other the outline is clearly more visible. I also experimented with denoising the logo area before analyzing it in AviUtl but the result while better at times, it can also be inconsistent.
Reel.Deel is offline   Reply With Quote
Old 18th October 2022, 18:09   #644  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Quote:
Originally Posted by kedautinh12 View Post
AnimeITVC can you for real world too. Are you check all subtitles?? Cause sometime DynTune=190 can't detect all letters, that why i deceased Dyntune to 80
After check, i seen your result detect all letters with DunTune=190. Very good, thanks
kedautinh12 is offline   Reply With Quote
Old 18th October 2022, 18:32   #645  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by kedautinh12 View Post
AnimeITVC can you for real world too. Are you check all subtitles??
You can use Invert() on any videos too.
No, I didn't check, at the bright backgrounds you would want to expand mask more to cover the shadows. Get new script from temp branch where I allowed higher DynInflate values.
And you are not leaving enough space from logo borders [shadows there are part of logo/subs].

Last edited by VoodooFX; 18th October 2022 at 20:12.
VoodooFX is offline   Reply With Quote
Old 18th October 2022, 18:38   #646  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by Reel.Deel View Post
Can the post-processing steps of InpaintDelogo be applied to an already delogo'd clip? I created an lgd, and while the result is not perfect I think the remaining artifacts can be mitigated.

You are comparing apples to oranges there. Those examples there are inpainting.
Use Deblend for comparison, and Interp=0, dPP=0 to disable pp.
I think there is some avs function ported from aviutl to denoise delogo area.

First row - Interp=0, dPP=0, second - Interp=0, dPP=5:





Ebmp from there: SSTV.v3.1080

EDIT:
Found it, logoNR [you added it to wiki], just FFT3DFilter there, added it on top of blur as negative dPP.
Interp=0, dPP=-5:


Last edited by VoodooFX; 19th October 2022 at 00:23.
VoodooFX is offline   Reply With Quote
Old 19th October 2022, 12:58   #647  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Will SSTV.v3.1080 better than SSTV.v2.1080??
kedautinh12 is offline   Reply With Quote
Old 19th October 2022, 13:11   #648  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Quote:
Originally Posted by VoodooFX View Post
You can use Invert() on any videos too.
No, I didn't check, at the bright backgrounds you would want to expand mask more to cover the shadows. Get new script from temp branch where I allowed higher DynInflate values.
And you are not leaving enough space from logo borders [shadows there are part of logo/subs].
I tried leaving more space from logo borders, result still same
kedautinh12 is offline   Reply With Quote
Old 19th October 2022, 16:34   #649  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by kedautinh12 View Post
Will SSTV.v3.1080 better than SSTV.v2.1080??
Only you can see what better fits your videos, I'm not a fortune teller.
VoodooFX is offline   Reply With Quote
Old 19th October 2022, 18:33   #650  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by VoodooFX View Post
You are comparing apples to oranges there. Those examples there are inpainting.
Use Deblend for comparison, and Interp=0, dPP=0 to disable pp.
I think there is some avs function ported from aviutl to denoise delogo area.

First row - Interp=0, dPP=0, second - Interp=0, dPP=5:

<pictures>

Ebmp from there: SSTV.v3.1080

EDIT:
Found it, logoNR [you added it to wiki], just FFT3DFilter there, added it on top of blur as negative dPP.
Interp=0, dPP=-5:

<pictures>
Those are some nice results. I had never used InpaintDelogo for logo deblending. Thanks for sharing.

Yes I added logoNR which is just a simple script that denoises the logo area and then overlays it on top of the delogo'd clip. I assume InpaintDelogo offers a more sophisticated technique for post-processing the logo area, hence my question if it can be used used for that purpose on an already delogo'd clip.

Regarding the ebmp you linked to. Are the numbers in the end supposed to be the x,y location? The name says SSTV.v3.1080_106-36 so I tried use loc="106,36,..." but it did not line up, but loc="56,36,..." did.
Reel.Deel is offline   Reply With Quote
Old 19th October 2022, 18:47   #651  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by Reel.Deel View Post
question if it can be used used for that purpose on an already delogo'd clip.
You can't use it like that. It's just mainly gaussian blur.

Quote:
Originally Posted by Reel.Deel View Post
Regarding the ebmp you linked to. Are the numbers in the end supposed to be the x,y location? The name says SSTV.v3.1080_106-36 so I tried use loc="106,36,..." but it did not line up, but loc="56,36,..." did.
Yes, x/y, I just copy pasted them from another ebmp. I've saved this logo in cropped video for tests, so I had no idea about coords, will rename x to "56" then.

Last edited by VoodooFX; 19th October 2022 at 19:01.
VoodooFX is offline   Reply With Quote
Old 20th October 2022, 14:18   #652  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Quote:
Originally Posted by VoodooFX View Post
are those images you took from Daichi Miura??
kedautinh12 is offline   Reply With Quote
Old 20th October 2022, 17:02   #653  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by kedautinh12 View Post
are those images you took from Daichi Miura??
No.
123
VoodooFX is offline   Reply With Quote
Old 22nd October 2022, 21:40   #654  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Code:
# Version 3.2  :  New feature: Conditional optimizations with "Optimize", enabled by default.
#                              Up to ~1000% speed-up for slow "Inpaint" & "Interp" presets.
#                              Additional auto "Interp" disabling.
#                 New feature: Negative "dPP"/"oPP", adds denoise, enabled by default [20%-50% slow down].
#                 Very slow inpainting preset: Turbo=-2.
#                 Quick masks dump with clean "outs": DumpMasks=2.
#                 Various other tweaks.
#                 FFT3DFilter plugin is required.
VoodooFX is offline   Reply With Quote
Old 12th November 2022, 06:09   #655  |  Link
evafans
Registered User
 
Join Date: Aug 2022
Posts: 12
Recently, I noticed the end time of extracted subs is always one frame late, so I change the two "subend+1" to "subend" ,will it cause any side effect? In order to get precise timestamps is there any changes needed?
evafans is offline   Reply With Quote
Old 12th November 2022, 11:57   #656  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by evafans View Post
Recently, I noticed the end time of extracted subs is always one frame late, so I change the two "subend+1" to "subend" ,will it cause any side effect? In order to get precise timestamps is there any changes needed?
Why do you think that it's "late" and not precise?
I think "subend+1" frame is a precise timestamp. "subend+1" marks the end of subtitle in time, at "subend" subtitle is still shown till the next frame when subtitle is not shown.

Not like me, StainlessS sometimes posts sober, so let's wait for what he has to say about it [ in his extractor "subend" is without "+1" [ it's "E" there actually [ most likely it means "end" ] ] ].

Last edited by VoodooFX; 12th November 2022 at 13:07.
VoodooFX is offline   Reply With Quote
Old 12th November 2022, 13:31   #657  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Without looking at any scripting,
If I referred to end of sub as "E", then was probably intended as last frame where sub is shown.
And so timestamp of next nosubs frame would be that of frame E + 1.
Duration would be that of (E + 1) - S.

I think, maybe, perhaps.
__________________
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 12th November 2022, 14:54   #658  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by StainlessS View Post
Duration would be that of (E + 1) - S.
Uh-huh, so my "subend+1" modification is correct.

Noticed another discrepancy between yours and mine: "AREA.Trim(S,E).ClipBlend.Trim(E-S,-1)" vs mine "inY8.Trim(SubStart,SubEnd).ClipBlend.Trim(SubEnd-SubStart+1,-1)".
Does mine cut correctly the last frame when yours next-to-last? [My brain doesn't work yet...]
VoodooFX is offline   Reply With Quote
Old 12th November 2022, 17:51   #659  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
[My brain doesn't work yet...]
Snap.

Mine explained,
AREA.Trim(S,E).ClipBlend.Trim(E-S,-1)

Trim(S,E), length is E - S + 1
So,
Last frame is E-S
so,
Trim(E-S,-1)
is last frame of that trim, forcing Clipblend() to return result of blending that entire trim.

your Trim(SubEnd-SubStart+1,-1)
would seem to me to try return the last frame + 1, ie frame after the last frame.
Cant offhand remember if ClipBlend would correct for that. [EDIT: Yes it would]

EDIT:
Code:
Colorbars().ShowFrameNumber.Killaudio
trim(0,-1)  # 1 frame @ 0
Trim(1,-1) # NO ERROR, reaching past end of clip just returns the final frame [ie 0].


So, its not right, but identical result compared to your doing it right
__________________
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 ???

Last edited by StainlessS; 12th November 2022 at 18:11.
StainlessS is offline   Reply With Quote
Old 12th November 2022, 19:00   #660  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Hmm, so I had a brain fart with that +1 trim [not related to evafans post], now after the third pint my brain is fresher, but still can't grasp why I did that, maybe AvS's first frame as 0 confused me...
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 13:50.


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