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 22nd September 2022, 08:51   #481  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
@banaguitar
Actually, the masks from your last post are OK, I didn't noticed that I ran them on WIP script...

Delogo result is not perfect but you can't do better on this video, maybe I would add more Gaussian blur to it with dPP=5.

Logo:


Delogo [ InpaintDelogo( mask="D:\mask.bmp", Loc="40,26,146,60", Analyze=1, Mode="Deblend", dPP=5) ]:

Last edited by VoodooFX; 22nd September 2022 at 09:03.
VoodooFX is offline   Reply With Quote
Old 23rd September 2022, 05:52   #482  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 48
Quote:
@doctorkhv
My advice: Don't waste your time, anything you add there can be removed.
Not a single logo can be erased with high quality even by specialized programs for removing objects (DaVinci Resolve and NUKE Studio)

The brain is arranged in such a way that it is easier for it not to notice a static object (logo) than a spot that changes in color and shape in place of a remote logo.
doctorkhv is offline   Reply With Quote
Old 23rd September 2022, 19:11   #483  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by doctorkhv View Post
Not a single logo can be erased with high quality even by specialized programs for removing objects (DaVinci Resolve and NUKE Studio).
Fake news, you need to join VideoNonsense forums.
Top - your logo [Trim(5921,-260).Crop(3420,2000,-20,-60)], bottom - after InpaintDelogo:



Btw, good to know that those "even" programs are not good.


Quote:
Originally Posted by doctorkhv View Post
The brain is arranged in such a way that it is easier for it not to notice a static object (logo) than a spot that changes in color and shape in place of a remote logo.
Is this some kind of propaganda or it's self-hypnosis?
My brain definitely is choosing the bottom video.

Last edited by VoodooFX; 23rd September 2022 at 20:01. Reason: added link to the post with video link
VoodooFX is offline   Reply With Quote
Old 23rd September 2022, 19:20   #484  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
VoodooFX: Great work. Not even worth replying to someone who doesn't know which end is up.
johnmeyer is offline   Reply With Quote
Old 23rd September 2022, 19:42   #485  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by johnmeyer View Post
VoodooFX: Great work. Not even worth replying to someone who doesn't know which end is up.
Nonsense should be addressed, especially on Doom9 forums.

For reference: I'm still waiting for lordTroll's MS Paint skills there, the last news that the guy started to see ghosts on his TV, most likely it's a case for Ghostbusters.
VoodooFX is offline   Reply With Quote
Old 24th September 2022, 00:40   #486  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 48
VoodooFX: Great work!

I remembered the film "Un homme et une femme" 1966 in which I could not remove the stains that can be considered logos)

Can anyone try to remove the stains? Humanity and I will be grateful)

Link to my google drive (2 minutes 21 seconds) https://drive.google.com/file/d/1mmN...ew?usp=sharing

Thanks a lot!

Last edited by doctorkhv; 29th September 2022 at 10:50.
doctorkhv is offline   Reply With Quote
Old 24th September 2022, 03:05   #487  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by doctorkhv View Post
I remembered the film "Un homme et une femme" 1966 in which I could not remove the stains that can be considered logos)

Can anyone try to remove the stains? Humanity and I will be grateful)

Link to my google drive (2 minutes 21 seconds) https://drive.google.com/file/d/1mmN...ew?usp=sharing
1) Save frame with the spots to image.
2) Open that image with some editor and mask/mark the spots then save it to lossless image.
3) Apply that mask to the selected frames with InpaintDelogo( mask="D:\spots.png", Loc="0,0,0,0", Inflate=0 )

Notes:
With current version you would need to paint the background in black.
If you don't want to bother with the background then get v3 InpaintDelogo.
Use full white to mask/mark the spots.
"Inflate" expands mask, its default is 1 px, so I disabled it here.
You can use fastest preset with "Turbo=3".

Original frame 800:


Mask with the spots to remove:


Result:

Last edited by VoodooFX; 8th October 2022 at 11:49.
VoodooFX is offline   Reply With Quote
Old 24th September 2022, 13:26   #488  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Voodoo indeed.

doctorkhv, see here [Postimages instructions]:- https://forum.doom9.org/showthread.p...ge#post1959414
__________________
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 26th September 2022, 00:15   #489  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 48
Quote:
Originally Posted by StainlessS View Post
doctorkhv, see here [Postimages instructions]:- https://forum.doom9.org/showthread.p...ge#post1959414
Thank you so much StainlessS

Thank you so much VoodooFX

I never saw a video without spots.

I am unable to apply the InpaintDelogo-temp.avs script. , used XviD4PSP 5
PHP Code:
Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\functions\AudioFunctions.avs")
Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\functions\VideoFunctions.avs")
LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\FFMS2.dll")
Import("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\FFMS2.avsi")
LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\SplineResize.dll")

FFmpegSource2("D:\Un.homme.et.une.femme.1966.mkv"rffmode=0threads=1cachefile="D:\Temp\Un.homme.et.une.femme.1966.mkv.ffindex")

ConvertToYV12()

###[FILTERING]###
XviD4PSPPluginsPath "C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\"

Import(XviD4PSPPluginsPath + "
InpaintDelogo-temp.avs")

InpaintFunc(last,mask="
D:\spots.png", Loc="0,0,0,0", Inflate=0) 
doctorkhv is offline   Reply With Quote
Old 26th September 2022, 01:09   #490  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by doctorkhv View Post
I am unable to apply
Are you sure?
VoodooFX is offline   Reply With Quote
Old 26th September 2022, 23:45   #491  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 48
Yes, this is probably because XviD4PSP 5 only supports AviSynth + v3.5.1
I want to see how well the spots are removed in the 2 minute episode "Un homme et une femme" 1966 https://drive.google.com/file/d/1mmN...ew?usp=sharing
doctorkhv is offline   Reply With Quote
Old 27th September 2022, 00:37   #492  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by doctorkhv View Post
Yes
How do you know that you are sure?
VoodooFX is offline   Reply With Quote
Old 27th September 2022, 01:41   #493  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 48
Quote:
Originally Posted by VoodooFX View Post
How do you know that you are sure?
1.

2.
You didn't show me the video fragment with the stains already removed
doctorkhv is offline   Reply With Quote
Old 27th September 2022, 01:59   #494  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
1. Finally you've posted something tangible... How you expect to see "video without spots" or "apply" if you couln't even import InpaintDelogo?
Probably InpaintDelogo is not there, check if your path, filename and extension is correct.

2. I posted a fragment as image "Result".

Last edited by VoodooFX; 27th September 2022 at 02:02.
VoodooFX is offline   Reply With Quote
Old 27th September 2022, 02:23   #495  |  Link
doctorkhv
Registered User
 
Join Date: Mar 2019
Posts: 48
1. It's very easy to remove spots from one image and show the result, but I asked you about the episode VIDEO

If you want to upload a sample there's lots of places.
https://workupload.com/
https://www.udrop.com/
https://ufile.io/
https://fileupload.win/

2. What AviSynth GUI are you using and what does the script look like for this case?
doctorkhv is offline   Reply With Quote
Old 27th September 2022, 02:53   #496  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
1) Do it by yourself.

2) GUI is not important, it was posted already.
VoodooFX is offline   Reply With Quote
Old 28th September 2022, 00:29   #497  |  Link
Zetti
Registered User
 
Join Date: Dec 2015
Posts: 305
I have a sample that i hope you will look at and help me with the settings and give me some tips how you have got them and what i can do on future projects.

Because I'm scratching on my head after trying to adjust for hours

Samlpe
https://file.io/HHeLlMlHF5EJ

Script
Code:
InpaintDelogo(Loc="58, 564, -98, -24", Show=4, DynLocUp=4, DynMask=4, DynTune=215, DynMask4H=200, KillBlobs=-7, Extract=1, ImgDir="D:\Test\Pics", ImgInflate=1, CorrTh=0.9)
Zetti is offline   Reply With Quote
Old 28th September 2022, 01:21   #498  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by Zetti View Post
File is deleted. Maybe upload to Wetransfer.
VoodooFX is offline   Reply With Quote
Old 28th September 2022, 10:10   #499  |  Link
Zetti
Registered User
 
Join Date: Dec 2015
Posts: 305
https://we.tl/t-NhbuVVmQGw
Zetti is offline   Reply With Quote
Old 28th September 2022, 14:37   #500  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
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
I tried with leftside but can't creat mask perfect like rightside
Quote:
Trim(159,10954)
InpaintDelogo( mask="C:\mask3.bmp", Automask=1, aMix=1, Loc="98,874,-980,-64", Mode="Deblend")
sample:
https://drive.google.com/file/d/1-kk...ew?usp=sharing

Last edited by kedautinh12; 29th September 2022 at 13:32.
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 10:03.


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