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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th August 2022, 17:06   #401  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Quote:
Originally Posted by evafans View Post
Thank you, your script works perfect for characters with halo, but for English sub without halo, the characters often miss. Which mask do you recommend? Or is there a well-adjusted setting?
This is my setting for now, It seems fine, does it need any changes? Dyntune seems to be the key parameter to keep character complete, is there other parameter that I can use?
\ DynMask=4, DynTune=200,
\ DynMask4H=110,
\Extract=1, Show=4,
Where is sample of your video?
For different video/subtitles you need to set different thresholds, Dynmask4 is meant only for subtitles with distinct halo, so you are using wrong settings. There is no "well-adjusted" thresholds to magically fit all subtitles.
VoodooFX is offline   Reply With Quote
Old 12th August 2022, 07:52   #402  |  Link
evafans
Registered User
 
Join Date: Aug 2022
Posts: 12
Quote:
Originally Posted by VoodooFX View Post
Where is sample of your video?
For different video/subtitles you need to set different thresholds, Dynmask4 is meant only for subtitles with distinct halo, so you are using wrong settings. There is no "well-adjusted" thresholds to magically fit all subtitles.
https://drive.google.com/file/d/1uWt...ew?usp=sharing
evafans is offline   Reply With Quote
Old 12th August 2022, 11:00   #403  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
@ evafans,

Quote:
Dynmask4 is meant only for subtitles with distinct halo
The halo is key to making the subtitle detections.

You have to have or create a google account to access your link.
__________________
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 August 2022 at 11:03.
StainlessS is offline   Reply With Quote
Old 12th August 2022, 11:48   #404  |  Link
evafans
Registered User
 
Join Date: Aug 2022
Posts: 12
https://wormhole.app/vD0Mq#_yqBj3yogM4rCHQYPHDIjw
evafans is offline   Reply With Quote
Old 12th August 2022, 15:41   #405  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Quote:
Originally Posted by evafans View Post
You can't get simpler subs like these, subs are brighter than anything else in this video/sample, so if whole video is like that then you can use simplest and fastest dynamic mask AKA DynMask6:

Code:
LWLibAvVideoSource("D:\sample.mkv")
InpaintDelogo(Loc="400,840,-400,-80", Show=4, DynMask=6, DynTune=215)
Inside the script [InpaintDelogo.avsi], at the top there is manual/help about parameters, you can open it with any text editor like Notepad++ or PSPad.
Come back with more challenging sample/subs, for example where you get artifacts.

Last edited by VoodooFX; 12th August 2022 at 16:58.
VoodooFX is offline   Reply With Quote
Old 12th August 2022, 15:57   #406  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Quote:
Originally Posted by StainlessS View Post
The halo is key to making the subtitle detections.
Halo is the key only in DynMask4, there is other options for DynMask where halo is not taken into account.
VoodooFX is offline   Reply With Quote
Old 12th August 2022, 16:42   #407  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Hi VX, i tried your script but can use cause it's hard to got mask logo.bmp and use your script?? Can you got logo.bmp from there video and guide me to use your script, thanks
M-On: https://drive.google.com/file/d/1Zsx...ew?usp=sharing
SSTV: https://drive.google.com/file/d/1ntJ...ew?usp=sharing
SSTV+: https://drive.google.com/file/d/1i3j...ew?usp=sharing

Last edited by kedautinh12; 12th August 2022 at 18:40.
kedautinh12 is offline   Reply With Quote
Old 12th August 2022, 16:56   #408  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Quote:
Originally Posted by kedautinh12 View Post
Hi VX, i tried your script but can use cause it's hard to got mask logo.bmp and use your script?? Can you got logo.bmp from there video and guide me to use your script, thanks
Those links doesn't work for me, use normal filelocker like Wetransfer or Mega ect., you can share from Google Drive too.

And share the script where you are trying to get that mask.
VoodooFX is offline   Reply With Quote
Old 12th August 2022, 18:41   #409  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by VoodooFX View Post
Those links doesn't work for me, use normal filelocker like Wetransfer or Mega ect., you can share from Google Drive too.

And share the script where you are trying to get that mask.
Ok, i edited my link and about script, i use loc and mask. Other parameter is default
kedautinh12 is offline   Reply With Quote
Old 12th August 2022, 19:56   #410  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Quote:
Originally Posted by kedautinh12 View Post
i tried your script... it's hard... guide me to use your script
Quote:
Originally Posted by kedautinh12 View Post
and about script, i use loc and mask. Other parameter is default
I see that you didn't tried anything, first step in guide is to read it...

So you've used 2 parameters so far... even in "Basic short guide" on the first post are mentioned 5 parameters, after you read it - post what you didn't understand.
Meanwhile, I'll look at your first link.
VoodooFX is offline   Reply With Quote
Old 12th August 2022, 22:14   #411  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Quote:
Originally Posted by kedautinh12 View Post
Video is interlaced, so first deinterlace it to lossless file.
Logo is transparent = use Deblend mode.
Trim to exclude parts where there is no logo or logo is animated.
Run the script posted below with Automask=1 to create "bmp" basemask, then run with 0 to create deblending masks and delogo.
Animated parts you can delogo with Inpaint mode.

Code:
LWLibAvVideoSource("D:\EONIAN_deinterlaced.mkv")
Trim(61,10907)
InpaintDelogo( mask="D:\mask2.bmp", Automask=0, aMix=1, Loc="1252,878,-90,-64", Mode="Deblend")
Similarly you can remove logo at the left side too.

Logo:
https://i.imgur.com/eTxsNe4.jpeg


Delogo:
https://i.imgur.com/HZNQF8f.jpeg

Last edited by VoodooFX; 12th August 2022 at 22:30.
VoodooFX is offline   Reply With Quote
Old 12th August 2022, 22:41   #412  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Quote:
Originally Posted by VoodooFX View Post
Similarly you can remove logo at the left side too.
You mean the other left, also know as right.
I was staring for half a minute at the left text and couldn't find any difference
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 12th August 2022, 23:12   #413  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Quote:
Originally Posted by ChaosKing View Post
You mean the other left, also know as right.
I was staring for half a minute at the left text and couldn't find any difference
Left side is left, not idea what you meant by "right".
I meant that he can delogo the text at the left side himself.

Last edited by VoodooFX; 12th August 2022 at 23:19.
VoodooFX is offline   Reply With Quote
Old 13th August 2022, 01:22   #414  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by VoodooFX View Post
I see that you didn't tried anything, first step in guide is to read it...

So you've used 2 parameters so far... even in "Basic short guide" on the first post are mentioned 5 parameters, after you read it - post what you didn't understand.
Meanwhile, I'll look at your first link.
Oh, i tried to understand but your script hard to understand, sr i'm noob. And my result is video with green color cover all video
kedautinh12 is offline   Reply With Quote
Old 13th August 2022, 01:31   #415  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by VoodooFX View Post
Video is interlaced, so first deinterlace it to lossless file.
Logo is transparent = use Deblend mode.
Trim to exclude parts where there is no logo or logo is animated.
Run the script posted below with Automask=1 to create "bmp" basemask, then run with 0 to create deblending masks and delogo.
Animated parts you can delogo with Inpaint mode.

Code:
LWLibAvVideoSource("D:\EONIAN_deinterlaced.mkv")
Trim(61,10907)
InpaintDelogo( mask="D:\mask2.bmp", Automask=0, aMix=1, Loc="1252,878,-90,-64", Mode="Deblend")
Similarly you can remove logo at the left side too.

Logo:
https://i.imgur.com/eTxsNe4.jpeg


Delogo:
https://i.imgur.com/HZNQF8f.jpeg
Like you said. I use this script
Quote:
LWLibAvVideoSource("D:\EONIAN_deinterlaced.mkv")
Trim(61,10907)
InpaintDelogo( mask="D:\mask2.bmp", Automask=1, aMix=1, Loc="1252,878,-90,-64", Mode="Deblend") # to make .bmp file
InpaintDelogo( mask="D:\mask2.bmp", Automask=0, aMix=1, Loc="1252,878,-90,-64", Mode="Deblend") # to Delogo
Right?
kedautinh12 is offline   Reply With Quote
Old 13th August 2022, 01:48   #416  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
Quote:
Originally Posted by kedautinh12 View Post
Right?
No, you don't stack it like that. Run with Automask enabled to get the basemask, then run with Automask disabled to do delogo.

Last edited by VoodooFX; 13th August 2022 at 01:50.
VoodooFX is offline   Reply With Quote
Old 13th August 2022, 02:04   #417  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by VoodooFX View Post
No, you don't stack it like that. Run with Automask enabled to get the basemask, then run with Automask disabled to do delogo.
But i only use one pass encode. And my scripts i use both. Automask=1 on top and automask=0 on bottom
kedautinh12 is offline   Reply With Quote
Old 13th August 2022, 02:23   #418  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
"Run" doesn't mean encode, that means you do preview of your script.
And that script is not ready to encode, you need to join parts with no logo, and delogo and join the animated parts.
VoodooFX is offline   Reply With Quote
Old 13th August 2022, 02:35   #419  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by VoodooFX View Post
"Run" doesn't mean encode, that means you do preview of your script.
And that script is not ready to encode, you need to join parts with no logo, and delogo and join the animated parts.
I know what you say, but i ask this script correct in delogo part??
kedautinh12 is offline   Reply With Quote
Old 13th August 2022, 03:15   #420  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 990
If you understand then I don't understand what you are asking.
VoodooFX is offline   Reply With Quote
Reply

Tags
delogo, hardsubs, ocr, remove, watermark


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:01.


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