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. |
![]() |
#1 | Link |
Registered User
Join Date: May 2016
Posts: 230
|
DeSubtitle with InpaintDelogo
I am trying to "inpaint" the subtitle from a film that was released with burned in subtitles. :/
I am using SubsMask2Img and extract the subtitles, however, it does miss "one word" mostly in few places. 1. How do I use this in the InpaintDelogo to inpaint? 2. How can I get the timecode (xml?) so I can run in ocr? I'm running this to extract the subtitles. Code:
SubsMask2Img( ImgDir="C:\Users\MyUserName\Downloads\subs", CorrTh=0.8, SubTune=200, DetWinPercW=10, DetWinPercH=60, DetWinHoPos=0, SubMinDur=12, SubSusDur=0, SubMinLuma=0.05, SubSusLuma=0, ImgType="png", ImgInflate=0, ImgInvert=0, ImgSize=1, RawAvr=1 )
__________________
Automatic Colorization |
![]() |
![]() |
![]() |
#2 | Link | |
Banana User
Join Date: Sep 2008
Posts: 919
|
Quote:
Disable a mask preview [Show=0] and it should do inpainting. "Timecode" is already in the filenames of your extracted files.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
|
![]() |
![]() |
![]() |
#3 | Link | |
Registered User
Join Date: May 2016
Posts: 230
|
Quote:
I send you the video to your PM, I am not allowed to share this. Code:
SubsMask2Img( ImgDir="C:\subs", CorrTh=0.8, SubTune=200, DetWinPercW=10, DetWinPercH=60, DetWinHoPos=0, SubMinDur=12, SubSusDur=0, SubMinLuma=0.05, SubSusLuma=0, ImgType="png", ImgInflate=0, ImgInvert=0, ImgSize=1, RawAvr=1 ) InpaintDelogo(mask="C:\subs", Show=0, Automask=0, aMix=0, Loc="400,900,-400,-40", Mode="inpaint", Sharpness=60, preBlur=2.1, postBlur=12.6, Radius=16, oPP=-3, Optimize=0) I noticed this, It is possible to create a text with the timecodes just through cmd or powershell when I think about it. I need to check a bit into this what software can handle this and maybe some does support them directly.
__________________
Automatic Colorization Last edited by color; 7th May 2023 at 18:42. |
|
![]() |
![]() |
![]() |
#4 | Link |
Banana User
Join Date: Sep 2008
Posts: 919
|
Looks like you are doing random things there.
![]() Did you used SubsMask2Img on original video? It extracts from a mask, so you need to create/set a mask first. What are the crop settings used to crop that sample you sent me?
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
![]() |
![]() |
![]() |
#5 | Link | |
Registered User
Join Date: May 2016
Posts: 230
|
Quote:
Yes, I don't know what I am doing. ![]() Send new PM uncroped if that might help?
__________________
Automatic Colorization |
|
![]() |
![]() |
![]() |
#6 | Link | |
Banana User
Join Date: Sep 2008
Posts: 919
|
Here is command to inpaint subs on your video [tuned only to that short sample, no guaranty that it's good for the whole video]:
Quote:
![]() After: ![]()
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; 7th May 2023 at 19:12. |
|
![]() |
![]() |
![]() |
#7 | Link | |
Banana User
Join Date: Sep 2008
Posts: 919
|
Here is command to extract subs from your video [tuned only to that short sample, no guaranty that it's good for the whole video]:
Quote:
![]() To OCR extracted images use Subtitle Edit and nOCR method there.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; 7th May 2023 at 19:13. |
|
![]() |
![]() |
![]() |
#8 | Link | |
Registered User
Join Date: May 2016
Posts: 230
|
Quote:
Code:
InpaintDelogo(Loc="400,890,-400,-20", DynMask=4, DynInflate=4, Turbo=-1)
__________________
Automatic Colorization Last edited by color; 8th May 2023 at 07:23. |
|
![]() |
![]() |
![]() |
#9 | Link |
Banana User
Join Date: Sep 2008
Posts: 919
|
I've no idea what that means.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
![]() |
![]() |
![]() |
#10 | Link |
Registered User
Join Date: May 2016
Posts: 230
|
Well my english is a bit bad, sorry, but it does blurry the text, it does not remove, only make it "out off fuccus". I also tried Mode=inpaint, but it does nothing. ![]()
__________________
Automatic Colorization |
![]() |
![]() |
![]() |
#11 | Link |
Banana User
Join Date: Sep 2008
Posts: 919
|
That's why you should cut and share a sample of original video, instead of sending me God knows what.
![]() Why you can't share a sample? It looks like consumer media, not some master.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
![]() |
![]() |
![]() |
#12 | Link | |
Registered User
Join Date: May 2016
Posts: 230
|
Quote:
I did send you through PM. I am using: InpaintDelogo(Loc="400,890,-400,-20", DynMask=4, DynInflate=4, Turbo=-1) but don't know what more to do, it just show up blurry, does it help to send the blurry exported file you mean? I did send you a print screen right now. Don't know why it removes the subtitle when you do it but when i use the same code it does not.
__________________
Automatic Colorization Last edited by color; 8th May 2023 at 08:39. |
|
![]() |
![]() |
![]() |
#13 | Link |
Banana User
Join Date: Sep 2008
Posts: 919
|
There is nothing received in my PM box.
No, I meant a sample of the original video. I can recreate same "export" on my end. EDIT: Share your full avs script too. EDIT2: Check if you are using latest InpaintDelogo version.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; 8th May 2023 at 09:11. |
![]() |
![]() |
![]() |
#14 | Link |
Registered User
Join Date: May 2016
Posts: 230
|
I did share the full script on your PM about one hour ago. I will send full file as well.
__________________
Automatic Colorization |
![]() |
![]() |
![]() |
#15 | Link |
Registered User
Join Date: May 2016
Posts: 230
|
I did update all plugins and now it works. Might have had one outdated.
__________________
Automatic Colorization |
![]() |
![]() |
![]() |
#16 | Link | |
Banana User
Join Date: Sep 2008
Posts: 919
|
Quote:
I'm not gonna download gigabytes of "full file" when a short sample is enough. There you can learn how to cut videos: https://www.youtube.com/watch?v=4ior3zoZ7b0 Your script looks OK. What is your InpaintDelogo version?
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
|
![]() |
![]() |
![]() |
#17 | Link | |
Registered User
Join Date: May 2016
Posts: 230
|
Quote:
__________________
Automatic Colorization |
|
![]() |
![]() |
![]() |
#18 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,880
|
Quote:
Code:
##================================================================================================## # # # ____ _ __ ____ __ # # / _/___ ____ ____ _(_)___ / /_/ __ \___ / /___ ____ ____ # # / // __ \/ __ \/ __ `/ / __ \/ __/ / / / _ \/ / __ \/ __ `/ __ \ # # _/ // / / / /_/ / /_/ / / / / / /_/ /_/ / __/ / /_/ / /_/ / /_/ / # # /___/_/ /_/ .___/\__,_/_/_/ /_/\__/_____/\___/_/\____/\__, /\____/ # # /_/ /____/ # # # ##================================================================================================## # InpaintDelogo is an advanced logo and watermark removal function using inpainting and deblending # with an adjustable fine process to hide artifacts and get best delogo results. # Can remove opaque, transparent, semi-transparent and some dynamic logos from video. # Can be used to remove hardcoded subtitles or extract them to images for OCR. # Inpainting refers to the application of sophisticated algorithms to reconstruct of lost # or deteriorated parts of images or videos. ##================================================================================================## # Version: 3.6 <<<=========== # ##================================================================================================##
__________________
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; 8th May 2023 at 20:52. |
|
![]() |
![]() |
![]() |
#19 | Link |
Registered User
Join Date: May 2016
Posts: 230
|
I have a new..similar problem. I got a old vhs-video that I don't manage, maybe this will not work?
https://we.tl/t-WIerLAfaHH also there is a light grey background behind the text. this is the best i get: InpaintDelogo(Loc="60,450,-60,-30", DynMask=4, DynInflate=10, Turbo=-1) ![]() EDIT: this is the full script: LWLibavVideoSource("VHS.mkv") QTGMC(Preset="Very Slow", Sharpness=1.0, InputType=0, FPSDivisor=1, ShowSettings=false) BicubicResize(720, 576) #.Crop(30,450,-30,-30) InpaintDelogo(Loc="60,450,-60,-30", DynMask=4, DynInflate=10, Turbo=-1)
__________________
Automatic Colorization Last edited by color; 18th June 2023 at 15:19. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|