Selur's Little Message Board
[GUIDE] VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: [GUIDE] VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS (/thread-1279.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - shijan - 27.04.2020

UPDATE: As it was suggested by other people i use DeHalo filter. I find it at: Filtering -> VapourSynth -> DeHalo/-Ring. I tested DeHalo_Alpha with default settings and it really makes edges less aggressive:
[Image: sZwa7Rb.jpg]

Quick question: I see there are few different DeHalo filters but no any quick help info about them:

[Image: VEmCbxC.jpg]
Which is recommended to produce the best quality?


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - Selur - 27.04.2020

From my experience:
DeHalo_Alpha is good for otherwise good quality sources.
EdgeCleaner is good for Cartoon like content.
BlindDehalo3 is nice when doing oversharpening before it.
YAHR no clue. Smile

I usually try DeHalo_Alpha adn EdgeCleaner and if those two don't really help I try the other two.

Cu Selur


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - shijan - 27.04.2020

Ok, thanks for info. In AviSynth Wilki DeHalo_alpha described as "Very powerful filter to remove edge enhancement artifacts." So seems it is really best filter to go.

Some oversharpening really exists due QTGMC itself. Even if Sharpness mark is unchecked in UI, it is always used in VapourSynth script. So QTGMC always force use Sharpness=1.0. This is bad. Is it possible somehow to edit Hybrid VapourSynth script manually to fix this problem?
Here is what i see when i click to "Show VapourSynth Script" button:

# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Slower", TFF=True, InputType=0, TR2=1, Sharpness=1.0, SourceMatch=0, Lossless=0)

Arrow UPDATE: Seems i find a problem fix:
Export QTGMC preset from Hybrid.
Open .json file in Text Editor.
Change "vsQTGMCSharpness": "1.0" to "vsQTGMCSharpness": "0.0"
Save scahges.
Apply same preset in Hybrid.

Now the code in "Show VapourSynth Script" looks like this:
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Slower", TFF=True, InputType=0, TR2=1, Sharpness=0.0, SourceMatch=0, Lossless=0)

This is not a replacement for DeHalo_alpha filter but this can make things looking slightly more smoother and softer.
This needs some tests to proof, but usually it is always better to apply sharpen filter on already upscaled HD video but not on SD video before upscaling.

[Image: SOBIhCx.jpg]


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - Selur - 28.04.2020

Sharpness 1 is the default, if you don't want you can set preset to 'Custom', chose the base preset and change the Sharpness to the value you want,...

Even if Sharpness mark is unchecked in UI, it is always used in VapourSynth script.
if you want to overwrite the default value you have to enable Sharpness in the UI in the Custom preset,...

Cu Selur


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - shijan - 28.04.2020

One more time: When i switch QTGMC presets to custom mode, Sharpness parameter is always inactive. I can not change it from GUI at all. This a bug on macOS Hybrid version that you confirmed here https://forum.selur.net/showthread.php?tid=1279&pid=7083#pid7083
[Image: uqJqQaY.jpg]

That's why i use manually edited .json preset file to set Sharpness. It is the only way to change Sharpness on macOS.
[Image: b0sdQ52.jpg]


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - Selur - 28.04.2020

Okay, that then is an old bug, that was fixed some time since the last MacOS release. Smile
And instead of loading a preset, better change the defaults in your settings folder.


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - shijan - 28.04.2020

Can you explain further? Did you mean edit .xml files located in ~/Library/Application Support/Hybrid/ folder? Or some config inside Hybrid.app contents?
There is a large amount of those files with rather large amount of code inside. I really have no idea where to search for QTCMC Sharpness setting there.


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - Selur - 28.04.2020

The .xml files are hold the defaults that are used.
FilteringModelDefaults.xml is the file you are interested in and 'vsQTGMCSharpness' is the field which holds the Sharpness value for Vapoursynths QTGMC.

Cu Selur


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - shijan - 28.04.2020

I edited that .xml file as you suggested, but it don't work as expected. It switches Sharpness to 0.0, but when i change QGTMC preset - Sharpness always switches back to 1.0.

Custom edited .json presets are way easier and safer way to go.


RE: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macOS - Selur - 28.04.2020

Okay. Smile