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. |
|
|
Thread Tools | Search this Thread | Display Modes |
10th December 2024, 17:02 | #1021 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,804
|
you just Trim++Trim, something like that:
Code:
source=<yoursourcefilterhere("yoursourcepathhere")> lastlogoframe=180*Round(framerate(source))# 180 is a placeholder for seconds of logoduration Trim(InpaintDeLogo(source),0,lastlogoframe)++Trim(source,lastlogoframe+1,0)
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." Last edited by Emulgator; 10th December 2024 at 17:04. |
11th December 2024, 08:50 | #1022 | Link | |
Registered User
Join Date: Nov 2023
Posts: 18
|
Quote:
My video is 1h 30m long. The whole video has a logo (upper left) For the first 180 seconds there is also another logo (bottom right) I made 2 BMP file (https://file.io/L1Wa6jqFCCuO): - the first with 2 white logo masks - the second only for logo on upper left How can I write the script with InpaintDeLogo ? Last edited by buddha9; 11th December 2024 at 08:55. |
|
11th December 2024, 09:53 | #1023 | Link |
Banana User
Join Date: Sep 2008
Posts: 1,062
|
The script would look something like this:
PHP Code:
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; 11th December 2024 at 11:21. |
11th December 2024, 22:11 | #1024 | Link |
Registered User
Join Date: Nov 2023
Posts: 18
|
red pill or blue pill ? :)
PHP Code:
upper_left.bmp: I'm hapy with the result! Anyway, any hints to improve it? Thanks! Last edited by buddha9; 15th December 2024 at 20:44. |
13th December 2024, 16:12 | #1025 | Link |
Banana User
Join Date: Sep 2008
Posts: 1,062
|
Looks very good I think.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling |
Yesterday, 07:31 | #1026 | Link |
Registered User
Join Date: Sep 2023
Posts: 18
|
Hope this is the right place to post a question.
I, too, am stuck trying to use InpaintDelogo... Using InpaintLoc() in a script, I have identified the Loc values for the mask. It works. I see a light yellow region in the video preview. But then when I try to automatically create the mask, MeGUI fails with the error "The video stream cannot be opened". I.e., InpaintLoc() works, but InpaintDelogo() doesn't. Here's my script: Code:
Import("C:\Program Files (x86)\AviSynth+\plugins64\InpaintDelogo.avsi") LoadPlugin("C:\MeGUI-2944-64\tools\lsmash\LSMASHSource.dll") LoadPlugin("C:\MeGUI-2944-64\tools\avisynth_plugin\TIVTC.dll") LWLibavVideoSource("C:\MyMovie 1080i HDTV MPEG-2 AAC2.0.mkv") tfm(order=1).tdecimate() # InpaintLoc(Loc="1144,950,70,88") InpaintDelogo(mask="C:\Program Files (x86)\AviSynth+\plugins64\Logo Database\MyMask.1080_v1_1144-950.bmp", Loc="1144,950,70,88", Automask=1, aMix=5) What am I doing wrong? |
Yesterday, 21:46 | #1027 | Link |
Banana User
Join Date: Sep 2008
Posts: 1,062
|
Post full MeGUI's Log.
And you could cut and share a small sample of video to reproduce.
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; Today at 01:20. |
Yesterday, 23:31 | #1028 | Link |
Registered User
Join Date: Sep 2023
Posts: 18
|
Thanks for your message. After restarting my PC, curiously the error changed to something different. The error was due to a missing DLL (AvsInPaint.dll).
I fixed that, but now there's another error. Evidently I'm still doing something wrong. Here's the log and a short sample of the video: https://www.sendspace.com/file/zodixv (3 KB) https://www.sendspace.com/file/5egptg (36 MB) I'm trying to set up the logo file, remove the logo, convert the video from 29.97 fps, fix the aspect ratio and remove the black bars on the sides. |
Today, 02:14 | #1029 | Link | |
Banana User
Join Date: Sep 2008
Posts: 1,062
|
Tested your shared script and file - no problems.
Quote:
You could share what "AVSMeter64 -avsinfo" shows. Code:
-[NoImage] RT_ReadTxtFromFile: Cannot Open file C:\Program Files (x86)\AviSynth+\plugins64\Logo Database\NihonEiga.1080_v1_1144-950.bmp_InpaintDelogo3_1144-950-226-42_A2-16.txt -[NoImage] (C:\Program Files (x86)\AviSynth+\plugins64\InpaintDelogo.avsi, line 2977) -[NoImage] (C:\Program Files (x86)\AviSynth+\plugins64\InpaintDelogo.avsi, line 2994) -[NoImage] (C:\Program Files (x86)\AviSynth+\plugins64\InpaintDelogo.avsi, line 1885) -[NoImage] (C:\Program Files (x86)\AviSynth+\plugins64\InpaintDelogo.avsi, line 1890) -[NoImage] (C:\Program Files (x86)\AviSynth+\plugins64\InpaintDelogo.avsi, line 1892) -[NoImage] (C:\Program Files (x86)\AviSynth+\plugins64\InpaintDelogo.avsi, line 1906) -[NoImage] (C:\Users\xxx\Documents\Kinugasa-1.avs, line 9) Check if that txt file exists. What is "NihonEiga.1080_v1_1144-950.bmp"? There is only "NihonEiga.1080_v2_1310-948.ebmp" in the current "Logo Database".
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; Today at 02:26. |
|
Today, 03:11 | #1030 | Link |
Registered User
Join Date: Sep 2023
Posts: 18
|
Thanks. I believe I have installed all the requirements (though of course maybe I flubbed something).
Here is the AviSynth Info Tool readout: https://www.sendspace.com/file/ty4y9s Running the AVS script took hours, so before I post that, could I confirm that I'm on the right track? Probably I need to change the script first. As you see, there is already a logo in the database, but its position in the frame is different, and the frame in the video I've got appears horizontally squished, so I assumed that I need(?) to create a new BMP file for the logo. And that's where I'm stuck. The TXT file is missing because I didn't create it. I don't know what it's supposed to be about. Basically, I am unclear on the steps that I need to take. TIA ! Last edited by frobber; Today at 10:34. Reason: clarification |
Today, 11:18 | #1031 | Link | ||
Banana User
Join Date: Sep 2008
Posts: 1,062
|
You can run tests on smaller portion of video, you can limit video with Trim().
Quote:
Quote:
Basically we are not clear what you are doing out there as you didn't described your steps. I don't see any fatal issues Code:
C:\Program Files (x86)\AviSynth+\plugins64\FrameSel_x64.dll [2.20.0.0] # latest is [2.21.0.0, 2021-07-27] C:\Program Files (x86)\AviSynth+\plugins64\LSMASHSource.dll [2021-04-23] # very old C:\Program Files (x86)\AviSynth+\plugins64\mvtools2.dll [2.7.45.0] # latest is [2.7.46.0, 2024-05-03] C:\Program Files (x86)\AviSynth+\plugins64\RT_Stats_x64.dll [2.0.12.0] # latest is [2.0.13.0, 2020-12-29] C:\Program Files (x86)\AviSynth+\plugins64\TIVTC.dll [1.0.26.0] # latest is [1.0.29.0, 2024-03-02] Code:
C:\Program Files (x86)\AviSynth+\plugins64+\AddGrainC.dll [1.8.4.0, 2022-02-15]
__________________
InpaintDelogo, DoomDelogo, JerkyWEB Fixer, Standalone Faster-Whisper - AI subtitling Last edited by VoodooFX; Today at 11:34. |
||
Today, 16:24 | #1032 | Link |
Registered User
Join Date: Sep 2023
Posts: 18
|
OK, here's the script and log file:
https://www.sendspace.com/file/dz2j4c I tried updating the old DLLs and adding the missing AddGrainC.dll, but I still get the same error. What next? Last edited by frobber; Today at 16:26. |
Tags |
delogo, hardsubs, ocr, remove, watermark |
Thread Tools | Search this Thread |
Display Modes | |
|
|