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 06: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:
I managed to find the logo in good quality and for the mask I painted red the areas where I wanted transparency.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 10:08.
-
Something like this:
You could use a graphic tool ("magic wand") to cut a more precise part out of the logo for the overlay.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 10:05.
-
-
Use it like that:
Use Photoshop or similar.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:
It should be used on your full video, after deinterlace. Here what I got from your sample (no idea if it's good):Code:InpaintDelogo(Loc="1540,100,-70,-876", mask="d:\xxx.bmp", Automask=1, Analyze=3)
-
It was a simple 'overlay' example only for demo. Glad you found your way.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, 03:01 -
Can this flicker be removed?
By DavidS in forum EditingReplies: 0Last Post: 29th Jan 2023, 05:58 -
Logo animations made with slides in the past?
By Paultx in forum Off topicReplies: 0Last Post: 5th Oct 2020, 12:32 -
QTGMC, some static elements flicker
By Hackerpcs in forum Video ConversionReplies: 5Last Post: 7th Aug 2020, 20:28 -
the following formula not only removes logo, but also subtitle in logo area
By jraju in forum Newbie / General discussionsReplies: 33Last Post: 21st Jul 2020, 00:43


Quote