Using QTGMC generates an annoying flicker on a static logo (at "10 Edicao") which already looks ok even in interlaced form. Is there any way to "tell" QTGMC to ignore a certain x1, y1, x2, y2 area with the logo? How to make that top right logo stay static?
+ Reply to Thread
Results 1 to 12 of 12
-
-
Make a mask of the logo then use it to overlay the logo back from the original video.
-
There is no 'ignore region' option for QTGMC.
What should a deinterlacer do with the separate fields when it should ignore a region?
You could try BWDIF instead of or in combination with QTGMC. (or some field matcher, in case the source isn't interlaced to start with)
Got a sample of the source? (the provided clip seems progressive)
What does your script look like?users currently on my ignore list: deadrats, Stears555, marcorocchini -
-
Strange, must be due to some scaling on my laptop.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Ah, the progressive logo was added on the fields. BWDIF or TDeint are better than QTGMC for such sources.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
Yes, try something like this:
Code:assumeTFF() TDeint(mode=1,tryweave=true) QTGMC(inputType=1)
Last edited by Sharc; 21st Apr 2025 at 05:36. Reason: Clip added
-
Thanks. But I don't care about the logo itself (just the flicker to be gone), the priority is the main image to look as good as possible. Perhaps those tiny horizontal lines from the logo's yellow ribbon trick QTGMC to treat them as combing artifacts. I'll use logo masking suggested by VoodooFX.
Anyway, good to know. I added that code to my Avisynth templates (I keep a collection of useful snippets for various scenarios).
Edit: I finally managed to get good results with logo masking. That's the script I used:
Code:SetFilterMTMode("QTGMC", 2) LWLibavVideoSource("sample.mkv") AssumeTFF() AssumeFPS(29.970) QTGMC(Preset="Slow", FPSDivisor=1, MatchPreset="Slow", Sharpness=0.5, TR2=3) maskclip = ColorKeyMask(FFmpegSource2("logomask.png"), $ff0000, 60) Overlay(FFmpegSource2("logo.png"), mask=maskclip.ShowAlpha, mode="blend", opacity=1, x=1554, y=116, output="YV12") Prefetch(4)
Last edited by elektro; 21st Apr 2025 at 09:08.
-
Something like this:
Code:clip_base=ffms2("sample.mkv") #your video clip_base=clip_base.AssumeTFF().QTGMC() #deinterlace clip_overlay=ImageSource("logo.png") #your logo snippet overlay(clip_base,clip_overlay,x=1739,y=114) #adjust x and y to fit the position exactly
Or you could try with Avisynth's masktools.Last edited by Sharc; 21st Apr 2025 at 09:05.
-
-
Use it like that:
Code:original_video = LWLibAvVideoSource("D:\sample.mkv") processed_video = original_video # pseudo code, insert your own, like QTGMC mask=ImageSource("D:\xxx.bmp").ConvertToY8.Trim(0,-1) Overlay(processed_video, original_video, mask=mask)
You can use InpaintDelogo to get a mask, for example:
Code:InpaintDelogo(Loc="1540,100,-70,-876", mask="d:\xxx.bmp", Automask=1, Analyze=3)
-
In your code snippet, is it not required to paint the areas for transparency and use the existing transparency channel from PNG?
Similar Threads
-
Qtgmc-GUI. A simple encoder for your Qtgmc scripts.
By ProWo in forum Video ConversionReplies: 17Last Post: 4th Mar 2023, 02:01 -
Can this flicker be removed?
By DavidS in forum EditingReplies: 0Last Post: 29th Jan 2023, 04:58 -
Logo animations made with slides in the past?
By Paultx in forum Off topicReplies: 0Last Post: 5th Oct 2020, 11:32 -
QTGMC, some static elements flicker
By Hackerpcs in forum Video ConversionReplies: 5Last Post: 7th Aug 2020, 19:28 -
the following formula not only removes logo, but also subtitle in logo area
By jraju in forum Newbie / General discussionsReplies: 33Last Post: 20th Jul 2020, 23:43