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 12th November 2022, 19:18   #661  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Good a reason as any I suppose.
Anyways, enjoy your pint.
EDIT: Have another dozen pints and your brain will be 'as fresh as a daisy'.
[strange saying, why would a daisy be so extra fresh ???]

EDIT:
Quote:
Why do they say as fresh as a daisy?
In Old English, daisies were referred to as “day's eye” because at night the petals close over the yellow
center and during the day they re-open. The phrase “as fresh as a daisy” originated from this, signifying
that someone had a good night's rest. The word daisy also made its way into other slang words and phrases.
https://www.ftd.com/blog/share/daisy...-and-symbolism

Quote:
Daisies can be eaten and are even medicinal. Daisy leaves are a common addition to salads.
Wild daisy tea is used to treat coughs, bronchitis, inflammation, and more.
Wild daisies are also sometimes applied to the skin for wounds and diseases.
And buttercup stalks taste a bit peppery. [maybe part due to cyanide or something]

EDIT:
Quote:
Buttercups, like horseradish, engage in chemical warfare. In horseradish the heat one tastes comes
from crushing cells that hold two different chemicals apart which are only peppery when they combine.
This is to discourage consumption by me, thee and the denizens of nature.
The buttercup is similar in that the offending chemical, a glycoside called Ranunculin,
is not a problem until the plant’s cells are crushed.
Then an almost instant enzyme reaction turning Ranuculin into Protoanemonin, a bitter, irritating, yellow oil.
The animals most bothered by buttercups are grazing cows then horses, sheep and pigs, the latter two
sometimes suffering paralysis. Humans are rarely poisoned by buttercups because they taste so bad.
It is not fatal in small amounts but a significant irritant that can make you ill with gastric distress.
https://www.eattheweeds.com/buttercups/
__________________
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 20:27.
StainlessS is offline   Reply With Quote
Old 13th November 2022, 19:02   #662  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by StainlessS View Post
Have another dozen pints and your brain will be 'as fresh as a daisy'.
Nah, I drink responsibly, but yeah after few pints I wake up fresh as a daisy, without, I wake up after 3-4 h, not so fresh.

Looks like "Trim(SubEnd-SubStart+1,-1)" place was always OK and only introduced in v2.10, only this change there and nothing in the log. Probably I was testing something and forgot to change it back.

Injustice is eliminated:
Code:
# Version 3.3  : 2022/11/13.  Corrected a code 'typo' in SubsMask2Img(), introduced in v2.10.

Quote:
Originally Posted by evafans View Post
will it cause any side effect? In order to get precise timestamps is there any changes needed?
Only side effect - the imprecise timestamps. Don't change anything to get the precise timestamps.
VoodooFX is offline   Reply With Quote
Old 24th November 2022, 17:16   #663  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Code:
# Version 3.4  : 2022/11/24.  New feature: "Greyscale" parameter, affects positive "Analyze", "Deblend", "Inpaint"...
#                                          Up to ~60% speed-up when enabled.
#                                          Prevents chroma changes on the greyscale videos by deblend [side effect of "3.1" fix].
#                             FFT3DFilter replaced by Neo_FFT3D, up to ~20% speed-up.

Last edited by VoodooFX; 24th November 2022 at 17:20.
VoodooFX is offline   Reply With Quote
Old 25th November 2022, 21:07   #664  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Quote:
FFT3DFilter replaced by Neo_FFT3D, up to ~20% speed-up.
Out of curiosity: Have you tried using FFT3DGPU?
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 25th November 2022, 21:15   #665  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by Selur View Post
Out of curiosity: Have you tried using FFT3DGPU?
Yes, I wasn't impressed.
VoodooFX is offline   Reply With Quote
Old 25th November 2022, 21:59   #666  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Quote:
Originally Posted by Selur View Post
Out of curiosity: Have you tried using FFT3DGPU?
FFT3DGPU ported from older ver of fft3dfilter, result will look worser than fft3dfilter

Last edited by kedautinh12; 5th December 2022 at 09:23.
kedautinh12 is offline   Reply With Quote
Old 5th December 2022, 09:17   #667  |  Link
evafans
Registered User
 
Join Date: Aug 2022
Posts: 12
when using extract=-1, it only allows one task runing. Is there any way to tweak it so it can allow multi-task.

Last edited by evafans; 5th December 2022 at 10:13.
evafans is offline   Reply With Quote
Old 5th December 2022, 21:59   #668  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by evafans View Post
when using extract=-1, it only allows one task runing. Is there any way to tweak it so it can allow multi-task.
Possible but then ReExtract option wouldn't work when doing multi instance.
What is your CPU usage when using Extract=-1? Mostly it runs 100% for me on all 4 cores.

EDIT:
Actually, ReExtract would work.

Last edited by VoodooFX; 6th December 2022 at 01:27.
VoodooFX is offline   Reply With Quote
Old 6th December 2022, 01:29   #669  |  Link
evafans
Registered User
 
Join Date: Aug 2022
Posts: 12
9400f 6 core, 60%-70% most of the time, somtimes 100%.
If it will affect ReExtract option, then I should better upgrade my CPU to speed up the extration process for each instance.
I don't really understand ReExtract though, I used ReExtract once, it does not affect the image even if I apply different paramaters from the previous extract=-1, only cuts half of the time.
intermediate file is already appeared in black and white, so there is little use applying different masks designed for corlored images. Am I understand it correctly?

Last edited by evafans; 6th December 2022 at 01:40.
evafans is offline   Reply With Quote
Old 6th December 2022, 03:29   #670  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by evafans View Post
9400f 6 core, 60%-70% most of the time, somtimes 100%.
Then you wouldn't get much benefit running two jobs simultaneously, it would be only ~15% faster than running one job after another.

Quote:
Originally Posted by evafans View Post
I don't really understand ReExtract though, I used ReExtract once, it does not affect the image even if I apply different parameters from the previous extract=-1, only cuts half of the time.
intermediate file is already appeared in black and white, so there is little use applying different masks designed for corlored images. Am I understand it correctly?
Masking is done by InpaintDelogo() when subs extraction is done by another function SubsMask2Img(), if you didn't change any extraction parameter then you would get same result when doing ReExtract.

"InpaintDelogo(Extract)" is same as "InpaintDelogo().SubsMask2Img()"
"InpaintDelogo(ReExtract)" is same as "SubsMask2Img()"
VoodooFX is offline   Reply With Quote
Old 27th December 2022, 04:26   #671  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Hi, i can't delogo with this subtitles, can you help?? thanks
frame 28


scripts:
Quote:
LoadPlugin("C:\Megui\MeGUI-2924-64\tools\lsmash\LSMASHSource.dll")
LWLibavVideoSource("C:\Users\ADMIN\Downloads\[ALEXANDROS] - Pray [1440x1080i MPEG2 SSTV HD].ts")
#deinterlace
crop(0, 154, 0, -170)
Addborders(0, 154, 0, 170)
animeIVTC(mode=1)
trim(400,4599).InpaintDelogo(Loc="1260,194,-20,-194", show=0, DynMask=5, Dyncolor=$868185, DynTune=190, DynColorTol=50, DynColorInf=2, DynTuneInf=1, DynTEdge=1, DynTEdgeThY=30, DynTEdgeInf=4, DynInflate=1)
Ex video: https://drive.google.com/file/d/12iA...usp=share_link
kedautinh12 is offline   Reply With Quote
Old 27th December 2022, 14:03   #672  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
There is some bug with inpainting a dynamic mask, introduced in v3.4, anyway your settings doesn't make sense, check your mask with "Show=4".

EDIT:

Fixed in v3.5
Code:
# Version 3.5  : 2022/12/27.  Fixed: Dynamic mask inpainting was broken since v3.4.

Last edited by VoodooFX; 27th December 2022 at 14:29.
VoodooFX is offline   Reply With Quote
Old 27th December 2022, 14:39   #673  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
ok, i tweak and it's detect better but still can't desubtitles
Frame 28

scripts:
Quote:
LoadPlugin("C:\Megui\MeGUI-2924-64\tools\lsmash\LSMASHSource.dll")
LWLibavVideoSource("C:\Users\ADMIN\Downloads\[ALEXANDROS] - Pray [1440x1080i MPEG2 SSTV HD].ts")
crop(0, 154, 0, -170)
Addborders(0, 154, 0, 170)
animeIVTC(mode=1)
trim(400,4599).InpaintDelogo(Loc="1260,194,-20,-194", show=0, DynMask=5, Dyncolor=$868185, DynTune=190, DynColorTol=25, DynColorInf=1, DynTuneInf=1, DynTEdge=1, DynTEdgeThY=30, DynTEdgeInf=4, DynInflate=1)
kedautinh12 is offline   Reply With Quote
Old 27th December 2022, 14:51   #674  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by kedautinh12 View Post
ok, i tweak and it's detect better but still can't desubtitles
Because you are using the bugged version!
In your parameters you are setting the 3 masks but using only one, you need to mix all those masks with DynMask 2 or 3.
VoodooFX is offline   Reply With Quote
Old 27th December 2022, 15:51   #675  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
ok, with latest ver and some edit settings, it's work now, thanks
kedautinh12 is offline   Reply With Quote
Old 27th December 2022, 16:18   #676  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
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
Old 27th December 2022, 16:46   #677  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
My edit script before your post. I think same same your
Quote:
InpaintDelogo(Loc="1260,194,-20,-194", show=0, DynMask=2, Dyncolor=$858380, DynTune=120, DynColorTol=60, DynColorInf=1, DynTuneInf=1, DynTEdge=1, DynTEdgeThY=5, DynTEdgeInf=4, DynInflate=1)

Last edited by kedautinh12; 27th December 2022 at 16:51.
kedautinh12 is offline   Reply With Quote
Old 27th December 2022, 17:08   #678  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Your settings still don't clean from frame 2276-2306

Scripts:
Quote:
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)
But fixed when change DynMask=3 to 2. Thanks
kedautinh12 is offline   Reply With Quote
Old 27th December 2022, 17:41   #679  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by kedautinh12 View Post
But fixed when change DynMask=3 to 2. Thanks
That would reintroduce some rubbish in the mask, better change Dyn3Seq=40 to 20 instead.

Last edited by VoodooFX; 27th December 2022 at 17:52.
VoodooFX is offline   Reply With Quote
Old 27th December 2022, 18:21   #680  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Thanks for your suggestions. Work like a charm
kedautinh12 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 22:11.


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