VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

Do you have questions about Desktop Video, Converters, Routers and Monitoring?
  • Author
  • Message
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSun Mar 15, 2020 3:36 am

This VapourSynth + Plugins + Scripts + Hybrid [2020.06.22] DMG package includes:
VapourSynth-R50
downloaded from https://forum.doom9.org/showthread.php?t=175522
All VapourSynth Plugins, Dependencies and Libraries
downloaded from https://forum.doom9.org/showthread.php?t=175522
D2V Witch v4 (it required by Hybrid to process VOB files and DVDs)
downloaded from https://forum.doom9.org/showthread.php?t=175522
JESExtensifier 3.0.5 (it helps to change aspect ratio and other metadata tags inside MOV container)
downloaded from http://jes.weiss.no
Hybrid 2018.08.05.1 (with updates)
downloaded from https://www.videohelp.com/software/Hybrid
Updates installed inside Hybrid:
Scripts for Hybrid
downloaded from https://github.com/Selur/VapoursynthScriptsInHybrid
FFmpeg 4.3.0
downloaded from https://evermeet.cx/ffmpeg/
MKVToolNix-47.0.0
downloaded from https://www.videohelp.com/software/MKVToolNix

:arrow: DOWNLOAD from Dropbox: https://www.dropbox.com/sh/hzy3f0zyuyu4 ... O5zla?dl=0
:arrow: DOWNLOAD from Google Drive: https://drive.google.com/drive/folders/ ... sp=sharing

Image


Quick FAQ for Beginners:

VapourSynth http://www.vapoursynth.com/ is a cross-platform Open Source application for video manipulation with command line interface. It also can be used as a plugin inside other video editing apps, video players and UI wrappers. It require Python https://www.python.org/ environment to work. VapourSynth support external Plugins (.dylib extension on macOS). Some plugins may require additional Dependencies Libraries (also .dylib extension on macOS). It also may require external Script files (.py extension) to automate some processes.
Current version of VapourSynth (including Python, Plugins, Dependencies Libraries and Scripts) is wrapped inside single Framework container. On macOS it is installed to:
/Library/Frameworks/VapourSynth.framework
Dependencies Libraries installed to:
/Library/Frameworks/VapourSynth.framework/lib/
External Plugins installed to:
/Library/Frameworks/VapourSynth.framework/lib/vapoursynth/
Scripts installed to:
/Library/Frameworks/VapourSynth.framework/lib/python3.8/site-packages/
Some legacy apps may read Dependencies Libraries and Pugins from legacy location:
/usr/local/lib/
Currently to fix this incompatibility problem VapourSynth installs to that directory special alias links from "libvapoursynth-script.dylib" and "libvapoursynth.dylib" files.

QTGMC http://avisynth.nl/index.php/QTGMC is a series of scripts for VapourSynth that combine chain of different plugins and produce Motion Compensation deinterlace with double frame rate and amazing artifacts-free quality.

Hybrid http://www.selur.de/ is a cross-platform UI wrapper for VapourSynth and a bunch of other video tools http://www.selur.de/licence It use well known FFmpeg library https://evermeet.cx/ffmpeg/ to read and write ProRes MOV files as well as many other file types. Starting from 2018 Hybrid is no more updated for macOS, but seems it still works well on macOS 10.14.6. Some important components like FFmpeg and MKVToolNix located inside Hybrid.app can be easily updated manually.
Hybrid combines a lot of video tools inside but it don't contains pre-installed VapourSynth. To make QTGMC work you need to install and adjust VapourSynth with all required plugins and scripts separately.

Image


Prepare to Installation FAQ:

Do NOT install VapourSynth with Homebrew https://brew.sh/. It seems Homebrew installation scripts are outdated and some sources don't compiled as they should.
Do NOT mix it with other VapourSynth versions or with different installers made by other people.
If you use any other VapourSynth installations before - delete old versions before install this one.

Disable SIP (System Integrity Protection):
Restart computer
Hold down Command-R to reboot into Recovery Mode
Click Utilities, select Terminal and type:
Code: Select all
csrutil disable
Press Return or Enter on keyboard and restart computer

Allow install apps from unidentified developers by typing in Terminal:
Code: Select all
sudo spctl --master-disable
Press Return or Enter on keyboard.
Type your password.
Press Return or Enter on keyboard.

Disable Gatekeeper turning back on automatically after 30 days by typing in Terminal:
Code: Select all
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
Press Return or Enter on keyboard.
Type your password.
Press Return or Enter on keyboard.

Disable quarantine for downloaded apps by typing in Terminal:
Code: Select all
sudo defaults write com.apple.LaunchServices LSQuarantine -bool NO
Press Return or Enter on keyboard.
Type your password.
Press Return or Enter on keyboard.

For more details see additional FAQs:
https://www.imore.com/how-open-apps-any ... and-mojave
https://www.imore.com/how-turn-system-i ... tion-macos
https://apple.stackexchange.com/questio ... -on-mojave
https://apple.stackexchange.com/questio ... t-to-the-t

I personally recommend to use 10.14.6 Mojave and don't see any practical reason move to macOS 10.15 Catalina with insane security restrictions on every step and without 32-bit apps support.


Installation FAQ:

1. Open VapourSynth + Plugins + Scripts + Hybrid [2020.06.22] DMG package
2. Install "VapourSynth-R50.pkg"
3. Open "Apps" folder and move all .app files to "Applications" alias
4. Open "Scripts" folder and move all .py files to "site-packages" alias
5. Open "Plugins" folder and move all .dylib files and nnedi3_weights.bin file to "vapoursynth" alias

VapourSynth installer creates "VapourSynth" folder on your Desktop with quick alias links to Plugins, Dependencies, Scripts and Uninstall script. You can move this folder to any location, if you want to keep it.

When you start Hybrid first time, it may give you a message: “Hybrid.app” can’t be opened because the identity of the developer cannot be confirmed.
Image
To fix this problem go to "Applications" folder, mouse right-click on "Hybrid.app", select in menu "Open", and next press "Open" button in pop-up window.
Image
Sometimes after installing new plugins or doing other internal changes "Hybrid" may force quit after start. Just open it again and it should work well.


Usage FAQ:

Filtering -> QTGMC (Vapoursynth)
Filtering -> Overwrite input scan type to: (For Hi8 tape sources set it to "Top Field List", For DV tape sources set it to "Bottom Field List". If rendered video plays back with with "jumping/strobing" effect, change Field List order setting)
Filtering -> Preset: Slow (in "Custom mode" you can also experiment with other settings)
Filtering -> Bob (use for double frame rate deinterlace mode)
Image Open File
Image Set Output Folder
Image Render file (Command-F1 keyboard shortcut)
Base -> Video: ProRes
Base -> Audio: passthrough all
Base -> Default container: mov
Base -> Generate
ProRes -> Profile: Even if you render to SD, set preset to ProRes422HQ (HD)
Filtering -> Filtering -> ColorMatrix: From Rec.601 to Rec.709 (apply only If you upscale SD to HD with Crop/Resize tools in Hybrid)
Filtering -> VapourSynth -> Line -> Resizer -> NNEDI3
Neural network resizer NNEDI3. It removes jaggies upscale artifacts on contrast diagonal lines, but don't adds artificial oversharpening. Recommended settings: Neurons 32(64 max), Level 1(2 max), Network 2. On higher settings it is very slow. NNEDI3 use its own internal resize algorithm and don't depends of resize algorithm selected in "Crop/Resize" tab.

Some tips to speedup workflow:
Instead of "Open File" dialog it is possible to drag and drop file directly to path field.
For batch processing you can select multiple files in "Open File" dialog or drag and drop multiple files directly to path field.
Config -> Internals -> FFmped/MEncoder threads: (set it according your CPU)
Config -> Output -> Container Settings -> Standard output container: mov
Config -> Output -> Filename Generation -> Suffix:
Config -> Path -> Default input path:
Config -> Path -> Default temp path:
Config -> Path -> Adjust: Output path to source path
Config -> Profiles -> Auto save defaults (this allow to remember all program settings on next launch)
Jobs -> Misc -> Delete jobs when finished

It is also possible to change font size and use native system buttons instead of custom UI icons (see more info here https://forum.selur.net/showthread.php?tid=10):
1. Create hidden folder ".hybrid" in home directory (~/.hybrid/)
2. Create TXT file and rename it to "misc.ini"
3. Put misc.ini inside ".hybrid" folder (~/.hybrid/misc.ini)
4. Add this text to "misc.ini" file:
Code: Select all
[General]
disableIcons=true
fontSize=14
toolTipFontSize=14


Bugs and Fixes:

Hybrid on macOS can't read interlaced AVI DV files.
:arrow: Problem fix: Remux AVI to MOV container without recompression. You can do it with legacy QuickTime 7.6.6 Player (File -> Save as self contained movie) or something similar.

Mistake in ProRes presets. ProRes422HQ (SD) use standard basic ProRes422 compression.
:arrow: Problem fix: If you want your result in ProRes422HQ, always set preset to ProRes422HQ (HD), even if your footage is SD.

Hybrid/FFmpeg ProRes files don't match exactly to original Apple ProRes specs. No correct codec names, no color tags, etc...
:arrow: Problem fix: Edit tags with JESExtensifier or with AMCDXVideoPatcher http://mogurenko.com/

Hybrid FFmpeg renders ProRes422HQ as 10 bit and ProRes444 also only as 10 bit. Seems like known FFmpeg limitation https://trac.ffmpeg.org/ticket/7163

Hybrid adds additional empty frame to MP4 x264/265 transcoded video. Probably due outdated MP4Box/GPAC muxer components.
No problem when transcode to MKV or MOV container with same x264/265 settings.
:arrow: Problem fix: Config -> Output -> Container Settings -> FFmpeg instead of MP4Box

Hybrid can't passthrough 24bit audio if use default FFmbc muxer.
:arrow: Problem Fix: Use FFmpeg muxer instead of FFmbc muxer.
Config -> Output -> Container Settings -> uncheck FFmbc for .mov muxing
Or you can just transcode from 24bit to 24bit instead of passthrough.

Preview window in this version of Hybrid seems totally broken. When i click VapourSynth Preview button in Filtering tab, VS icon jumps in Dock and disappears. No any error log and no any Preview window. Other (non Vapoursynth) Preview button works well.
Preview button in Crop/Resize tab also cause permanent program hang and crash.
:arrow: Problem fix: Don't use Preview window in Hybrid.

Too small font size in some Tooltips and Help Info panel.
:arrow: Partial problem fix: Copy/Paste text to external TXT document and read it there.

When switching QTGMC presets to custom mode, Sharpness parameter is always inactive. Even if Sharpness is unchecked in UI, it is always force used in VapourSynth script, so QTGMC always use Sharpness=1.0. This bug was confirmed by developer of the Hybrid.
:arrow: Problem fix (if you want to experiment with Sharpness strength):
Export QTGMC preset from Hybrid.
Open .json file in Text Editor.
Change "vsQTGMCSharpness": "1.0" to "vsQTGMCSharpness": "0.0"
Save changes.
Apply same preset in Hybrid.
Image
Last edited by Dmitry Shijan on Mon Jun 22, 2020 8:21 pm, edited 90 times in total.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

David E King

  • Posts: 6
  • Joined: Sun May 28, 2017 4:18 am
  • Location: Big D Texas

Re: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macO

PostSun Mar 15, 2020 4:54 am

Nice Work!!...... Is there a Windows Version for all of this?
If not any chance you could put one together?
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macO

PostSun Mar 15, 2020 9:26 pm

Hybrid simply has bug in its preset for ProRes HQ SD.
profile:v should say 3 not 2.
HD presets (except different name) is exactly the same. No idea why you need 2 of them at all :D
Well Hybrid default ProRes presets are very plain, without any attempt to make final files more "correct" ones (no correct codec names, color tags etc).
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid UI FAQ for macO

PostSun Mar 15, 2020 9:36 pm

Yes, i also noticed there are no any tags in Hybrid rendered ProRes files.
I add tags and aspect ratio presets with JES Extensifier to fix this problem.
for Hi8 sources i use "PAL Integer" preset, so Resolve can read proper aspect ratio.
For DV sources seems you can just use in PAL preset. It is exact same ratio as PAL in Resolve Clip Attributes settings.
Image
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSun Mar 15, 2020 9:41 pm

This is old "analog" flagging.
I prefer digital one based on full 720 as active lines.

Resolve use to have many bugs related to non-square pixel based SD formats.

Hybrid is overloaded with all setting and possibilities, but lacks any polish. It's all very "default" based.
Way too much is happening behind you. I prefer pure ffmpeg and vs, so I know what exactly is happening. Hybrid is also not very good for beginners as it's overloaded with possibilities.
Last edited by Andrew Kolakowski on Sun Mar 15, 2020 10:07 pm, edited 4 times in total.
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSun Mar 15, 2020 9:53 pm

Interesting... Hi8 souses always have black borders from left and right and also some tiny artifacts from top and bottom. This affects aspect ratio.
DV tapes are true digital, don't have those additional black borders and seems fit exact to PAL ratio.

Also Resolve ignores virtual cropping "Clean aperture" tag. It always show real pixel data from DV files.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSun Mar 15, 2020 10:01 pm

Yes, it's all just flagging and most tools don't respect them. This is exactly why I prefer "proper" digital tags.
Those 9 pixels on side comes from analog world where only 702 lines were used for active image.
I found it useless/wrong for modern TVs (it worked on CRT). DPP spec still says you should resize based on 702 active pixels (creating 9 pixels black bars on sides), but for me it's simply wrong as no one watches it on CRT TVs anymore. On current TVs it will give slightly wrong aspect- at leats it was on Pioneer KURO which I tested it on. BBC had article about it, but quickly removed it. Adobe did moved to this new (based on old analog spec) scaling though. I think is's causing more problems than good things.
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSun Mar 15, 2020 10:13 pm

Agree, but it is impossible to capture tape on Mac without those black bars. I usually zoom image in Resolve to crop those borders, so i need somehow preserve original analogue aspect ratio.
In early days i done a lot of captures on Windows with consumer TV tuner card, and capture card (or DV codec?) always crop those black fields automatically and always record 720 pixels wide without black borders. It seems like force cropping of analogue borders was some part of AVI DV specification.
But on Mac Intensity pro card+MediaExpress always record MOV DV as 720 pixels wide with black borders (but it may crop them virtually with "Clean Aperture" tag)
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSun Mar 15, 2020 11:04 pm

Yes, you can crop them (and clean all edges) and this is probably best you can do.
Are you capturing to DV (I meant it gets encoded from HDMI/SDI feed to DV, not 1:1 DV copy)?
Worse codec ever (if you not just copying DV data 1:1).
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSun Mar 15, 2020 11:13 pm

Andrew Kolakowski wrote:Yes, you can crop them (and clean all edges) and this is probably best you can do.
Are you capturing to DV (I meant it gets encoded from HDMI/SDI feed to DV, not 1:1 DV copy)?
Worse codec ever (if you not just copying DV data 1:1).


My mistake in text. Sure i capture to ProRes422HQ on Mac. I also discovered that ProRes444 is sort of useless because it anyway produce 422 when tapes captured with Intensity Pro.

DV codec is bad. Motion scenes full of square block artifacts. But when tape is lost you have no choice and deal with old AVI DV file captured from consumer TV tuner card.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 2:15 am

I'd like to do both cropping and resizing to square pixels (768 x 576 for PAL) in Hybrid. Unfortunately, I get this message:
Bildschirmfoto 2020-03-16 um 09.06.48.png
Bildschirmfoto 2020-03-16 um 09.06.48.png (153.24 KiB) Viewed 7755 times


Some old digital camcorders produce black sides too, and not even the regular 9+9.

I'm aiming for a clean picture with square pixels to feed it into Topaz Video Enhance AI, which can do miracles.
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 3:00 am

I can crop and resize. No any problem. Seems something wrong from your side with settings.

But i personally don't see any practical point to deal with resize inside Hybrid. Tiny intermediate resizes always produce quality loss. It is always better to keep original pixel size (720x576 for PAL) and do noise reduction, crop and resize to HD in single step inside Resolve. SuperScale resize in Resolve may work near same as Topaz Video AI (or may not)
Last edited by Dmitry Shijan on Mon Mar 16, 2020 4:14 am, edited 1 time in total.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 3:37 am

:arrow: Here is another interesting discovery:

When i capture from Hi8 tape to ProRes422 MOV, there are always some slightly clipped highlights and overloaded colors. It looks clipped in color managed QuicktimeX player as well as in non color managed VLC player.

I see same "clipped" look when i remux AVI DV source captured on Windows to MOV DV container without recompression.

That clipping amount is less than Full vs Video levels difference, so wrong Levels setup is not a source of this problem i guess.

If i put that "clipped" file to Resolve on mac OS, it also looks clipped but i can magically bring back large amount of clipped data by adjusting Gain down.

If i put that "clipped" file to Vegas Pro on Windows, and render again to native ProRes422 MOV, and then put it into Resolve - there is no clipping. It looks exact like with manually adjusted Gain.

It looks like some another very specific and strange macOS-related problem with some transformations between video and RGB...
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 4:04 am

Maybe just wrong flagging or some 'superwhite' from a Sony camera.

Topaz Video Enhance AI is doing better than Super Scale. Only marginally so for HD to UHD, but very visible from SD to HD if you set it to LQ. That doesn't mean a low-quality result, but such a source and doubles rendering time. You should have a strong Nvidia GPU or it will take ages. Well, even then it's slow and only worth it for important archival footage.

This is my DV clip: https://www.dropbox.com/s/7zet51ys8aqfm ... V.mov?dl=0

And this is the result from Topaz Video Enhance AI (obviously wrong gamma):
https://www.dropbox.com/s/7zet51ys8aqfm ... V.mov?dl=0

Have a look at the buildings and at small detail like cars or trees.
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 6:07 am

You are right, Dmitry, let's continue in the proper thread.
Regarding that sound issue: it was a bit surprising since the source has good old stereo PCM 48 kHz 16 bits, nothing exotic.
But at a closer look, it has two extra tracks (empty) with 32 kHz 12 bits, I think from some Sony camcorder.
That might have upset Hybrid when set to pass-trough.
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 6:11 am

Uli Plank wrote:Maybe just wrong flagging or some 'superwhite' from a Sony camera.


Superwhites, maybe...

:arrow: UPDATE. In DaVinci Resolve, if i render these videos with hidden clipped data to ProRes422HQ with render setting "Retain sub-black and super-white data" and import back to Resolve - it keeps that hidden clipped data, and i can recover it when adjust Gain down.

If i render without render setting "Retain sub-black and super-white data" and import back to Resolve - that hidden clipped data is lost and i see only plain digital clipping when adjust Gain down.

It feels like i deal with some kind of magic Hi8 RAW that never clips :)
I am not against adjusting in Resolve like this, but i just can't understand the nature of this phenomenon. Seems is not related specially to Hi8 or DV. I also noticed that hidden highlights are very different. Sometimes they so deep, that they are not fully recovered even if i change Video to Full levels in clip attributes.

Here are few examples. Capture chain: Hi8 Sony CCD-TR3100E S-Video OUT -> Kramer FC-400 Time Base Corrector -> BlackMagic Intensity Pro PCI card S-Video IN -> MediaExpress -> ProRes422HQ -> Resolve YRGB non color managed project Rec709/gamma2.4

Test pattern generated by Kramer TBS corrector looks ok. No clipping:
Image

Some extremely bright and saturated clipped experimental stuff. Hi8 tape:
Image

Same video with adjusted Gain:
Image

Other not so bright example but also clipped. Hi8 tape:
Image

Adjusted Gain:
Image

Here is another example from MiniDV tape. AVI DV was captured in WIndows directly from camera with FireWire interface.

Image
Image
Last edited by Dmitry Shijan on Tue Mar 17, 2020 12:58 am, edited 5 times in total.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 6:25 am

Took some time to upload (everybody at home and bringing down the internet?), but here is one of the possible versions from QTGMC plus Super Scale (preset very slow): https://www.dropbox.com/s/tsd5c5w08amic ... e.mp4?dl=0

I second the notion that it has too much noise reduction, but it's also Super Scale contributing to it's slightly 'painted' look. Topaz AI delivers more texture, it looks more, hmm, kind of 'tangible'.
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 9:41 am

It seems in VapourSynth have some sort of neural network resizer :shock: Could it be similar to Topaz AI ? Only need to understand how to use it instead of normal resize filters...

:arrow: Check it in Hybrid at: Filtering -> VapourSynth -> Line -> Resizer -> NNEDI3
Network:
The number of different neural network predictions that are blended together to compute the final output value. Each neural network was trained on a different set of training data. Blending the results of these different networks improves generalisation to unseen data. Possible values are 1 and 2.
A value of 2 is recommended for image enlargement.
Last edited by Dmitry Shijan on Mon Mar 16, 2020 11:27 am, edited 2 times in total.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 11:01 am

NNEDI3 exists many years. It was probably first usable neural based scaler for use in video.
Last edited by Andrew Kolakowski on Tue Mar 17, 2020 10:18 am, edited 1 time in total.
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Mar 16, 2020 11:18 am

Nice! Seems i just need to turn on NNEDI3 and it works in combination with any algorithm in "Crop/Resize" tab.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 3:23 am

Uli Plank wrote:I'd like to do both cropping and resizing to square pixels (768 x 576 for PAL) in Hybrid. Unfortunately, I get this message: Some old digital camcorders produce black sides too, and not even the regular 9+9.
I'm aiming for a clean picture with square pixels to feed it into Topaz Video Enhance AI, which can do miracles.


Seems i was able to replicate your problem. I guess it is something related to crop and pixel ratio supported by internal processing. For 1440x1080 if i set Left/Right crop to 9/9 and Top/Bottom crop to 7/7 I got warning message: "Input requires ffmpeg as decoder, but mencoder for filtering!"
Image

But if i set Left/Right crop to 9/9 and Top/Bottom crop to 0/0 render goes without any problems.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 4:05 am

Some thoughts about Resize filters:

Lanczos Resize filter in Hybrid is slightly sharper than Resolve "Sharp" resize filter in project settings. But difference is very small and overall they produce 99% the same result.

Resolve SuperScale filter in Clip Attributes is with Sharpen/Noise Reduction set to Low/Low is definitely sharper than Lanczos Resize filter in Hybrid. For my subjective opinion it look too sharp and too plastic for SD sources upscaling.

Lanczos + NNEDI3 neural network resizer seems the best. It removes jaggies upscale artifacts on contrast diagonal lines, but doesn't add artificial oversharpening. On maximum settings it is very slow.

Here are SD to 1440x1080 renders additionally 200% magnified to see the difference:
Image
Image
Image
Last edited by Dmitry Shijan on Tue Mar 17, 2020 11:56 am, edited 3 times in total.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 5:05 am

You are right, it works if I don't try to crop the line with the heads switching (top line).
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 10:15 am

You can't crop odd numbers from height. You should always crop even ones (odd should work for 4:4:4 sources). It's key rule.
Also I prefer Spline64 over Lanczos.
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 10:52 am

There is no Spline64 in outdated Hybrid menu. Maybe it is the same as Bicubic Spline? That Bicubic Spline in Hybrid menu also could be variation of too soft and blurry Cubic Spline resize. Need to test it...
Image
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 12:27 pm

Dmitry Shijan wrote:Some thoughts about Resize filters:

Lanczos Resize filter in Hybrid is slightly sharper than Resolve "Sharp" resize filter in project settings. But difference is very small and overall they produce 99% the same result.

Resolve SuperScale filter in Clip Attributes is with Sharpen/Noise Reduction set to Low/Low is definitely sharper than Lanczos Resize filter in Hybrid. For my subjective opinion it look too sharp and too plastic for SD sources upscaling.

Lanczos + NNEDI3 neural network resizer seems the best. It removes jaggies upscale artifacts on contrast diagonal lines, but doesn't add artificial oversharpening. On maximum settings it is very slow.

Here are SD to 1440x1080 renders additionally 200% magnified to see the difference:
Image
Image
Image


Resolve and deinterlacing is big NO GO :)
Destroys progressive parts as hell. There is fundamental design flaw which was reported ages ago and still not changed.
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 12:29 pm

Dmitry Shijan wrote:There is no Spline64 in outdated Hybrid menu. Maybe it is the same as Bicubic Spline? That Bicubic Spline in Hybrid menu also could be variation of too soft and blurry Cubic Spline resize. Need to test it...
Image


No- looks like not exposed in Hybrid. It's vs feature.
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 12:54 pm

Andrew Kolakowski wrote:You can't crop odd numbers from height. You should always crop even ones (odd should work for 4:4:4 sources). It's key rule.


I know, I cut one from the bottom too, but the error message came up.
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 1:18 pm

Just an idea - don't crop in Hybrid at all. Keep original frame. Those black borders (as well as top and bottom line artifacts) are very random from tape to tape and from camera to camera and it is very complicated to guess how to crop them in Hybrid. Even if you do upscale in Hybrid, in most cases you still need to do some work in Resolve.

So here is workflow example (maximum quality but slow):
in Hybrid
- QTGMC Deinterlace
- NNEDI3 neural network resizer upscale from 720x576 to 1440x1080 without cropping borders.
- ColorMatrix: From Rec.601 to Rec.709
- Render to ProRes422HQ
In Resolve:
- Crop borders and zoom as you like
- Chroma Temporal Noise Reduction
- White balance
- Highlights recovery
- Optional color and artifacts correction
- Small amount of Film Grain to bring back fine texture
- Render to ProRes422HQ master video

Another Example (faster)
in Hybrid
- QTGMC Deinterlace. Keep 720x576 Don't crop.
- Render to ProRes422HQ
In Resolve:
- Upscale to 1440x1080 Timeline (SuperScale if you prefer sharp plastic look)
- Crop borders and zoom as you like
- Chroma Temporal Noise Reduction
- White balance
- Highlights recovery
- Optional color and artifacts correction
- Small amount of Film Grain to bring back fine texture
- Render to ProRes422HQ master video
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 2:18 pm

There are special scripts for avisynth and VapourSynth which will automatically detect needed crop size (taking into account whole master length).
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Mar 17, 2020 11:34 pm

Seems Auto crop in Hybrid is also broken.

Found some info about cropping and color space restrictions here https://forum.selur.net/showthread.php?tid=12

RGB: (4:4:4)

width no restriction
height no restriction if video is progressive
height mod-2 if video is interlaced

YUY2: (4:2:2)

width mod-2
height no restriction if video is progressive
height mod-2 if video is interlaced

YV12: (4:2:0)

width mod-2
height mod-2 if video is progressive
height mod-4 if video is interlaced
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Mar 19, 2020 2:52 am

How slow is NNEDI3 on your hardware (which GPU)?
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Mar 19, 2020 3:19 am

Even simple Resize without NNEDI3 is 2x slower than original straight transcoding. NNEDI3 is very slow only when you max settings to something like 256 neurons and Prescreening level 2 which is seems like useless.
Seems it don't use AMD GPU. At least i can't see any active switch to turn on OpenCL.

I didn't measure exact render times, but on Hackintosh based on 6 core/12 threads i7-8700K overclocked to 4.7ghz, QTMC with "Very Slow" preset takes about 2x time of original video length. QTMC "Very Slow" + Resize with default NNEDI3 settings takes something like 3x-4x of original video length. Also seems render time slightly depends of moving parts complexity in source video.
Last edited by Dmitry Shijan on Thu Mar 19, 2020 7:46 am, edited 1 time in total.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Mar 19, 2020 6:02 am

Thanks!
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Mar 19, 2020 10:34 am

QTGMC at 'very slow' is in most cases overkill (unless it's SD which is not that slow).
Don't go crazy with those settings as you will be gaining 1-5% of quality for 2-10x slowdown.
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Mar 19, 2020 1:57 pm

In addition problem with highlights clipping on Hi8/DV tapes captured with MediaExpress to ProRes422HQ on macOS, here is another example of very strange hidden highlights clipping problem in Hi8 and DV tapes captured earlier on Windows with consumer TV tuner card or digitally with FireWire card to AVI DV.

AVI DV -> QT Player 7 remux-to MOV DV -> Vegas CLIPPING

AVI DV -> Vegas NO CLIPPING

AVI DV -> QT Player 7 remux-to MOV DV -> Hybrid convert-to MOV ProRes422HQ -> Vegas NO CLIPPING

MediaExpress capture-to MOV ProRes422HQ -> Vegas NO CLIPPING

Same time on macOS tape captured to DV as well as to ProRes422HQ in ANY player or ANY app ALWAYS looks with clipped highlights.
But as described earlier, those hidden highlights are very easy to bring back in Resolve, or keep during render for future recovery by selecting render setting "Retain sub-black and super-white data". But it is impossible to bring them back in Vegas, even if switch Vegas project to 32 bit.

Clipping difference examples directly from Vegas 16 Preview:

Image
Image
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostFri Mar 20, 2020 10:02 am

Here is another interesting problem.
I decide to transcode with Hybrid some archived Cineform AVI files to ProRes MOV just to keep things more compatible and unified. It was a little shock for me when some files where rendered with wired rainbow artifacts. It appears that early versions of Cineform coder and decoder where very different from current versions and backward compatibility sometimes not possible. Or it could be some sort of corrupted interlaced fields reading.
I checked those problematic Cineform AVI files in different apps:
VLC player - no rainbow, but feels like lower resolution.
Switch player - rainbow artifacts during playback.
Resolve - rainbow artifacts during playback.

As you may remember, I updated legacy FFmpeg component inside Hybrid to current stable 4.2.2 version. I was thinking - maybe it is due too modern version of Cineform in FFmpeg? So i downloaded original unchanged Hybrid from 2017, transcode Cineform file with it, and ... No any problem with rainbow artifacts anymore

:!: UPDATE: Seems old version of Cineform decoder in VLC and FFmpeg don't preserve original interlaced fields and output lower resolution single progressive field. Looking to this i do not recommended to use FFmpeg 4.0.2 and earlier versions as a reader for Cineform files.
Problem with corrupted legacy AVI Cineform files was finally fixed by installing old version of GoProStudioPC-2.5.7.549 Cineform codec to Windows and transcoding with Vegas 16 to Intermediate ProRes422HQ MOV.

Image
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSat Mar 21, 2020 11:24 am

VapourSynth + Plugins + Scripts + Hybrid package update 2020.03.23
Changes:
Package now includes D2V Witch.app required by Hybrid to process VOB files.
Updated FAQ.
Links to discussion forums.
:arrow: Download from same Dropbox folder: https://www.dropbox.com/sh/hzy3f0zyuyu4 ... O5zla?dl=0
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostWed Mar 25, 2020 5:12 pm

Higher quality QTGMC presets adds higher amount of "Final temporal smoothing". As a result footage looks cleaner but may miss some fine "breathing" analogue texture. Too large amount of "Final temporal smoothing" in combination with NNEDI3 Resize also attempt to fix tape shake artifacts and in some situations may produce some strange "fluid wavy" look to straight vertical lines. Also too many noise reduction may slightly distort original colors.

If i set QTGMC preset to "Very Slow", then switch to "Custom" and set "Final temporal smoothing" to 0, i got quality deinterlace with original tape grain structure. In combination with NNEDI3 Resize to 1440x1080 default settings (Neurons: 32, Network: 2, Prescreening: 1) it produce 100% no jaggies artifacts.

I also noticed that in some videos "Placebo", "Very Slow" and "Slower" produce strange "micro jumping" effect on small static objects visible only when inspect video frame by frame. Preset "Slow" don't have this problem probably because it combines and averages fields in simpler way.
Overall preset "Slow" with "Final temporal smoothing" 0 or 1 looks like very nice compromise when used together with NNEDI3 Resize to 1440x1080 default settings (Neurons: 32, Network: 2, Prescreening: 1)

Bug found:
Presets works great, but when switching to "Custom mode" i noticed a problem with one test video when some frames where not processed correctly and stay partially interlaced. Sometimes instead same frames where jumping back and forward. Also final video renders have slightly different amount of frames. It was tested on ProRes422HQ MOV files captured with MediaExpress and trimmed without recompression with QuickTime 7 player.
Bug fix:
It seems this problem was caused by damaged MOV file itself, because when i remux same video from MOV to MKV again - there was no error and no jumped or interlaced frames on render, but instead i got first black frame.
When i trimmed new file from same original source with QuickTime 7 player it don't produce artifacts anymore.

Image

Anyway, to be 100% on safe side with custom settings i suggest do it like this:
1. Open Hybrid, but don't import video yet.
2. Make sure to activate Config -> Profiles -> Auto save defaults
3. Adjust all custom settings.
4. Close Hybrid.
5. Open Hybrid, import video, render.

Other custom settings:
EZKeepGrain - (value 0-100) still can't understand how it works. No any visible effect on rendered image. Needs more testing
Source matching - can't see any profit, seems it only increase jaggies artifacts. Needs more testing.
Lossless - can't understand yet how it works. Needs more testing

QTGMC options are well described here http://avisynth.nl/index.php/QTGMC#Nois ... _Denoising
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Mar 26, 2020 1:50 am

Thanks for all this testing, much appreciated!
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Mar 26, 2020 11:16 pm

Here is another interesting discovery:

It appears that if you use NNEDI3 Resize, it always use only its internal resize method (looks like based on Lanczos) and don't depends of Resize method selected in "Crop/Resize" tab at all.

In case if for some reason you decide don't use NNEDI3 Resize, here are some test results of different Resize methods in "Crop/Resize" tab:
8 - Sinc: adds very aggressive sharpening effect
9 - Lanczos: tiny sharpening, crisp looking, OK for everyday.
3 - Experimental: sharpness somewhere between Bicubicspline and Lanczos.
10 - Bicubicspline: slightly softer than Lanczos
2 - Bicubic: softer than Bicubicspline
7 - Gauss: softer than Bicubic
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

SergeS

  • Posts: 23
  • Joined: Sun Jan 28, 2018 8:04 am
  • Real Name: Serge Stauffer

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSat Mar 28, 2020 2:36 pm

Finally a real solution for QTGMC Deinerlace on MacOS.
I have installed everything on High Sierra and it just works.

Right now I am doing tests, comparing best settings in HandBrake (Decomb / EEDI2 Bob) with Hybrid from your package (QTGMC fast Bob). The latter deinterlaces SD-Video at a quite usable speed (MP 5.1 12-Core, < 25fps) while best settings in HandBrake process about 2.5fps ...

Also the quality difference is clearly visible. QTGMC looks like there was no degradation at all while HandBrake ist ok, but obviously fails with lines (for example from shutters) and details partly look softer.

Thank you for putting everything together.
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSat Mar 28, 2020 5:43 pm

VapourSynth + Plugins + Scripts + Hybrid package update 2020.03.28
Changes:
Package now includes JESExtensifier.app (it help to change aspect ratio and other metadata tags inside .MOV container)
Updated FAQ.

VapourSynth + Plugins + Scripts + Hybrid package update 2020.03.29
Changes:
VapourSynth R49
Updated FAQ.

:arrow: Download from same Dropbox folder: https://www.dropbox.com/sh/hzy3f0zyuyu4 ... O5zla?dl=0
Last edited by Dmitry Shijan on Sun Mar 29, 2020 9:47 am, edited 1 time in total.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSun Mar 29, 2020 7:36 am

Here is another interesting test. Poor quality chroma edges from miniDV camera where magically fixed by NNEDI3 resize. Further NNEDI3 Upscale to QHD (1920x1440) and UHD4K (2880x2160) compare to HD makes no real difference in quality even if compare side by side on UHD4K timeline.
Some people recommend 960x720 as a master copy for deinterlaced video because 1280x720 @50fps allows to playback from bluray disc, but as you can see NNEDI3 resize to 960x720 looks softer than NNEDI3 resize to HD.

Another interesting option is 1556x1152 (this is dual 768x576). It allow to crop black borders and fit source to 1440x1080 in Resolve without additional upscaling step.

Tests made on UHD 4K timeline:

QTGMC SLOW-FTS0, NO RESIZE
Image

QTGMC SLOW-FTS0, RESIZE to 720p NNEDI3-32-N2-P2
Image

QTGMC SLOW-FTS0, RESIZE to 1080p NNEDI3-32-N2-P2
Image

QTGMC SLOW-FTS0, RESIZE to 1440p NNEDI3-32-N2-P2
Image

QTGMC SLOW-FTS0, RESIZE to 2160p NNEDI3-32-N2-P2
Image
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

carlomacchiavello

  • Posts: 1122
  • Joined: Tue Aug 28, 2012 6:04 pm
  • Location: italy

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Apr 07, 2020 9:24 am

Dear Dmitry, thanks a lot
from many times i searching a solution for a good de interlacer and good scaler, i found your thread tonight, i start with test and it's near to be magic. many other payed solution give me worst result against that.
i had many shooting to manage, with more noise and defects, but you give me a way to explore.
Thanks a bunch.
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Apr 07, 2020 1:48 pm

Here is one more important thing. Seems that extended highlights data needs proper processing. When you simply adjust gain or highlights down, it may produce some hard edges in luma. The effect is very subtle but just to be 100% safe in any situation i suggest always add Gamut Mapping node in the end (set gamma to Timeline and Tone Mapping to Luminance Mapping). Same node could be useful for adjusting chroma.
The effect is better visible on desaturated image. Here are some examples:

Old AVI DV capture. Most Super-Whites data clipped during capture, but dark-to-light gradients always looks very smooth:
Image

New ProRes422HQ capture with MediaExress. All Super-Whites data is there but when gain adjusted down, there is a hard transition line appears on dark-to-light gradients.
Image

New ProRes422HQ capture with MediaExress with Fixed with Luminance Mapping Node. Gain adjusted, but dark-to-light gradients now looks very smooth.
Image
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Apr 14, 2020 6:38 am

Some bit depth tests...

Test Setup:
32 bit Gradient generated in Resolve, rendered to ProRes444 and next rendered again with different apps, settings, codecs and bit depths. Next it was opened in Resolve and applied extreme Levels adjustment to illustrate bit depth limits.
Image
Hybrid and Handbrake x264/265 compression was set to near lossless quality RF1 L4.1 slow grain --ref 3 --bframes 0 --keyint 25 --min-keyint 1
Resolve x264/265 compression was set to L4.1 Max bitrate 200000, Frame Reordering turned OFF (same as B-frames turned off)

Test Results:
Hybrid FFmpeg renders ProRes422HQ as 10 bit and ProRes444 also only as 10 bit (odd FFmpeg limitation or some bug in Hybrid :( )
Hybrid FFmpeg renders honest 8 bit and 10 bit x264/x265 files and even real 12 bit depth x265 files.

Handbrake always use some sort of dithering. It may be useful in 8 bit files but probably useless in 10 bit.

DaVinci Resolve renders ProRes422HQ as 10 bit and ProRes444 as true 12 bit.
DaVinci Resolve even with maximum bitrate settings produce rather poor quality x264 because there is no any fine manual controls for x264.265 parameters.

Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
Image
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Uli Plank

  • Posts: 7068
  • Joined: Fri Feb 08, 2013 2:48 am
  • Location: Germany and Indonesia

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Apr 14, 2020 8:09 am

Thanks again for all that research!
Resolve Studio 16.2.2 and Fusion Studio under MacOS Mojave 10.14.6
iMac 2017 Radeon Pro 580 8 GB VRAM and 32 GB RAM
Mac mini 16 GB RAM plus eGFX Breakway Radeon RX 580
Offline
User avatar

Dmitry Shijan

  • Posts: 1468
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Apr 14, 2020 8:13 am

Seems like 10 bit limit for ProRes is due FFmpeg limitation. It was discussed here https://trac.ffmpeg.org/ticket/7163
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Andrew Kolakowski

  • Posts: 6574
  • Joined: Tue Sep 11, 2012 10:20 am
  • Location: Poland

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Apr 14, 2020 8:53 am

10bit limit for 444 mode in ffmpeg was there for long time, but it was removed good few months ago. Definitely for decoding, not sure about encoding.

You have to be careful even with Hybrid as some filtering paths may not preserve 10bit. This is why 'pure' vs+ffmpeg is much better as then you know what exactly is happening in your processing chain.
Handbrake internal precision was always 8bit which was mentioned already few times.
Next

Return to Post Production

Who is online

Users browsing this forum: antoine, Bing [Bot] and 14 guests