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 31st December 2022, 02:38   #681  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,361
Wow. That is awesome. Just tried it here. Deep respect, VoodooFX.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're working on that issue. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 31st December 2022, 10:19   #682  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,685
Now go do, that Voodoo, that you do so well:- https://www.youtube.com/watch?v=jS_Shu8y0sI

He/She/It does do so well
__________________
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; 31st December 2022 at 10:21.
StainlessS is offline   Reply With Quote
Old 3rd January 2023, 12:02   #683  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 855
Quote:
Originally Posted by Emulgator View Post
Wow. That is awesome. Just tried it here. Deep respect, VoodooFX.
Thx, Emulgator.
VoodooFX is offline   Reply With Quote
Old 13th January 2023, 13:39   #684  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 855
Code:
# Version 3.6  : 2023/01/12.  New conditional: Auto max "Interp" for frames where logo is in ~solid background.
#                             "Optimize" is split to "Optimize1" & "Optimize2".
#                             Burnin version number into ebmp ["Ver-", positive analyze only].
Lil bit better at hidinng deblended logo remnants [Original vs v3.5 vs v3.6]:
VoodooFX is offline   Reply With Quote
Old 13th January 2023, 17:58   #685  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 1,808
And old optimise is 1 or 2??
kedautinh12 is offline   Reply With Quote
Old 13th January 2023, 18:32   #686  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 855
Quote:
Originally Posted by kedautinh12 View Post
And old optimise is 1 or 2??
Both.
VoodooFX is offline   Reply With Quote
Old 2nd March 2023, 03:42   #687  |  Link
RidgeShark
Registered Amatuer
 
Join Date: Feb 2007
Posts: 19
The video I'm working with:
https://drive.google.com/file/d/1B2m...ew?usp=sharing

I'm getting a Avisynth Open Failure:

Quote:
System Exception: Integer Divide by Zero
And it points to line 1830 in InpaintDelogo.avsi which reads:

Quote:
BasemaskY = Imgmask.ConvertToY8(Matrix="PC.601").mt_expand().mt_expand()
I'm just trying to get started with the basic parameters:
Quote:
InpaintDelogo( mask="C:\mask.bmp", Automask=0, aMix=0, Loc="590,422,-40,-34", Mode="Inpaint")
I do have a Mask.bmp in place with the logo painted over in white, with a black background. And the loc coordinates are over the logo.

Usually I get a "Integer Divide by Zero" when there's a color space issue - it appears that might be the case here?

Appreciate any help.

Last edited by RidgeShark; 2nd March 2023 at 04:09.
RidgeShark is offline   Reply With Quote
Old 2nd March 2023, 10:56   #688  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 855
Quote:
Originally Posted by RidgeShark View Post
I'm getting a Avisynth Open Failure:
Quote:
System Exception: Integer Divide by Zero
Share your mask too, and your full avs script.
That video is in lossless, is this original form of it?
VoodooFX is offline   Reply With Quote
Old 3rd March 2023, 02:27   #689  |  Link
RidgeShark
Registered Amatuer
 
Join Date: Feb 2007
Posts: 19
Quote:
Originally Posted by VoodooFX View Post
Share your mask too, and your full avs script.
That video is in lossless, is this original form of it?
Mask:
https://drive.google.com/file/d/1jE-...usp=share_link

The video's original form is a longer DVD VOB file. I converted it to Lagarith and kept the original YUV420 colorspace. But, I just tried to see if I could do a lossless MPEG2-only extraction of the needed footage using Mpg2Cut2, and it appears to have worked, so here's that if it can be helpful:

https://drive.google.com/file/d/1vPY...usp=share_link

And the full script:
Quote:
AviSource("C:\Work\VTS_09_1.avi")
ConverttoYV12(interlaced=true)
InpaintDelogo( mask="C:\mask.bmp", Automask=0, aMix=0, Loc="590,422,-40,-34", Mode="Inpaint")
RidgeShark is offline   Reply With Quote
Old 3rd March 2023, 16:39   #690  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 855
No issues here on your files.
Try to run your script without InpaintDelogo, see if you get no error.
Then run script with only "Version()" in it and post its output.
Then share the output of "AVSMeter.exe -avsinfo". [ https://forum.doom9.org/showthread.php?t=174797 ]
VoodooFX is offline   Reply With Quote
Old 3rd March 2023, 20:49   #691  |  Link
RidgeShark
Registered Amatuer
 
Join Date: Feb 2007
Posts: 19
Quote:
Originally Posted by VoodooFX View Post
No issues here on your files.
Try to run your script without InpaintDelogo, see if you get no error.
Then run script with only "Version()" in it and post its output.
Then share the output of "AVSMeter.exe -avsinfo".
The script without InpaintDelogo will load without error.

Running Version():


AVSMeter Info:
https://drive.google.com/file/d/1RF4...ew?usp=sharing
RidgeShark is offline   Reply With Quote
Old 3rd March 2023, 22:48   #692  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 855
Quote:
Originally Posted by RidgeShark View Post
WTF happened there? I would just delete whole plugins folder and start fresh...

I see five masktools, two QTGMC, lots of other dupes... zillion random files there.

For example:
Code:
C:\Program Files (x86)\AviSynth+\plugins\MaskTools.dll  [1.5.1.0, 2021-10-27]
C:\Program Files (x86)\AviSynth+\plugins\masktools2-25.dll  [2.1.0.0, 2021-10-27]
C:\Program Files (x86)\AviSynth+\plugins\mt_masktools-25.dll  [2.0.36.0, 2021-10-27]
C:\Program Files (x86)\AviSynth+\plugins\mt_masktools-26.dll  [2.0.36.0, 2021-10-27]
C:\Program Files (x86)\AviSynth+\plugins\masktools2.dll  [2.2.18.0, 2021-10-27]
And you need to get latest versions of the required plugins.

EDIT:
Is it this DVD? -> https://www.amazon.com/Festival-of-3.../dp/B01GWCQA4O
I didn't knew you could sell trailers for $129.99.
Does the logo in those trailers go ON and OFF in every trailer like in your sample video?

Last edited by VoodooFX; 4th March 2023 at 00:02.
VoodooFX is offline   Reply With Quote
Old 10th March 2023, 16:46   #693  |  Link
Matt3o
Registered User
 
Join Date: Mar 2023
Posts: 2
Hi, I'm trying to do my first delogo on a short anime episode from a Japanese TV channel.
I tried many settings, and I seem to have settled with these ones:

Code:
LWLibAVVideoSource("D:\delogo.mkv")
#InpaintDelogo(mask="D:\mask.bmp", Automask=1, aMix=2, Loc="1124,24,-52,-636", Analyze=2)
InpaintDelogo(mask="D:\mask.bmp", Loc="1124,24,-52,-636", mode="both", Analyze=1, Inflate=2, Interp=2, IntSpd=4, oTune=3, optimize2=3, dpp=-3)
This is the resulting mask with show=2


Here is a before and after pic of frame 144:



Unfortunately on some frames, the logo is still visible. Frame 1279


Is there anything I can do to improve it or is this the best I can achieve? I'll leave the drive link with the video and masks. Thanks in advance
Matt3o is offline   Reply With Quote
Old 10th March 2023, 23:08   #694  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 855
Quote:
Originally Posted by Matt3o View Post
Code:
LWLibAVVideoSource("D:\delogo.mkv")
#InpaintDelogo(mask="D:\mask.bmp", Automask=1, aMix=2, Loc="1124,24,-52,-636", Analyze=2)
InpaintDelogo(mask="D:\mask.bmp", Loc="1124,24,-52,-636", mode="both", Analyze=1, Inflate=2, Interp=2, IntSpd=4, oTune=3, optimize2=3, dpp=-3)
Is there anything I can do to improve it or is this the best I can achieve?
Get better video source, this looks like some re-reencode.
Mode="Both" is wrong here, it's for semi-transparent logos, this logo is just transparent.
You analyzed frames at the end with no logo + fade-out animation, trim out those parts for analysis.
For settings like "IntSpd=4" leave 20px from the logo edges.


Quote:
Originally Posted by Matt3o View Post
Unfortunately on some frames, the logo is still visible. Frame 1279
Use 'stronger' settings to deal with the severe deblend artifacts:
Code:
Trim(0,6960)
InpaintDelogo(mask="D:\mask.bmp", Show=2, Loc="1114,14,-42,-626", mode="Deblend", Inflate=2, IntSpd=4, Optimize2=2, dPP=-5)
VoodooFX is offline   Reply With Quote
Old 11th March 2023, 00:53   #695  |  Link
Matt3o
Registered User
 
Join Date: Mar 2023
Posts: 2
Quote:
Originally Posted by VoodooFX View Post
Get better video source, this looks like some re-reencode.
Mode="Both" is wrong here, it's for semi-transparent logos, this logo is just transparent.
You analyzed frames at the end with no logo + fade-out animation, trim out those parts for analysis.
For settings like "IntSpd=4" leave 20px from the logo edges.




Use 'stronger' settings to deal with the severe deblend artifacts:
Code:
Trim(0,6960)
InpaintDelogo(mask="D:\mask.bmp", Show=2, Loc="1114,14,-42,-626", mode="Deblend", Inflate=2, IntSpd=4, Optimize2=2, dPP=-5)
Yes the source is not very good, sadly this is the only one I could find. I have recreated the mask trimming the fade-out animation, and used your suggested settings, and although it's blurrier (dPP=-5), the logo is almost unnoticeable so I'll keep it like this. Many thanks for your time

Last edited by Matt3o; 11th March 2023 at 00:55.
Matt3o is offline   Reply With Quote
Old 2nd April 2023, 06:54   #696  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 39
Deep respect, VoodooFX!!!
When using InpaintDelogo( mask="D:\003.png", Loc="0,0,0,0", Inflate=0 )
The color space is changing. see pictures
1. What should be changed in the script so that the color space does not change?
2. Is it possible to reduce the blur a little?

Used version v3.6 and AviSynth+3.7.2


doctorkhv is offline   Reply With Quote
Old 2nd April 2023, 12:28   #697  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 855
Quote:
Originally Posted by doctorkhv View Post
Deep respect, VoodooFX!!!
When using InpaintDelogo( mask="D:\003.png", Loc="0,0,0,0", Inflate=0 )
The color space is changing. see pictures
I'm not sure what you are doing here, share the files and full script to test it. [no big files pls]

Last edited by VoodooFX; 2nd April 2023 at 12:32.
VoodooFX is offline   Reply With Quote
Old 3rd April 2023, 01:03   #698  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 39
After processing
FFmpegSource2("X:\002.mp4")
InpaintDelogo( mask="X:\002.png", Loc="0,0,0,0", Inflate=0 )

Files
1.002.mp4 https://drive.google.com/file/d/1Mku...usp=share_link
2.002.png https://drive.google.com/file/d/1KxJ...usp=share_link

Loaded into DaVinci Resolve and compared the original file and the file processed by InpaintDelogo.
doctorkhv is offline   Reply With Quote
Old 3rd April 2023, 02:01   #699  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 855
Color doesn't change for me, and it can't change because there is no colorspace conversion here.
Look at screenshots [001.mp4, frame 20]:

Original:


After inpainting:


Your problem I guess is in the encoding settings. Share MediaInfo of your encoded file.

For less blur try:
Code:
InpaintDelogo( mask="X:\002.png", Loc="0,0,0,0", Inflate=0, oPPm=1, oPP=3)

Last edited by VoodooFX; 3rd April 2023 at 02:16.
VoodooFX is offline   Reply With Quote
Old 4th April 2023, 02:40   #700  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 39
VoodooFX Thank you!
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 14:32.


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