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: 1508
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Jun 11, 2020 2:40 pm

Hybrid and VapourSynth are native 64bit apps. They should work on Catalina, but you need somehow bypass stupid additional Catalina quarantine and security checks for apps downloaded outside of AppleStore or something similar... https://forum.selur.net/showthread.php?tid=1224
http://www.vapoursynth.com/discussion/#comment-17537

I experiment earlier with turning on OpenCL support in some filters, but seems GPU processing don't work on macOS version.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

PDCarter

  • Posts: 7
  • Joined: Thu Jun 11, 2020 1:57 pm
  • Real Name: Douglas Carter

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Jun 11, 2020 10:13 pm

Thank you for the reply.

On further tinkering it seems that I actually CAN use vapoursynth now. Maybe your install did this or all of the crazy stuff I was trying to compile it all from source code did it.

For the curious, I was able to take an example VPY text file that I had been trying on Windows install and utilize the vpipe command in the macOS terminal to ffmpeg.

The result was a 29.97FPS interlaced mpeg2 file going thru QTGMC “Very Slow” preset writing out to 59.94 ProRes profile 2 with 16bit uncompressed audio QuickTime file at ~45fps processing on the MacPro. The CPUs were all showing heavy use but the GPU was very much idle.

I’m a pretty tech savvy enough guy to read and install things but I kept getting messed up with clang errors and openmp errors. The list of installed software was staggering just to get to THAT point.

I just want to deinterlace, it really should not be this difficult to do this.


[[ I made myself these notes to get full root access to macOS Catalina so that I could try all these things ]]

*** This makes your system ’insecure’ so handle with care ***

macOS Catalina FULL disk access (root)

Boot into recovery mode:

* hold CMD+R till Apple Logo
* Go to utilities -> Terminal
* In terminal type: csrutil disable
* Reboot to normal mode

In normal mode open terminal and type these separate commands:

Gives write access to root volume in current boot:
sudo mount -uw /

Allow install apps from third party developers:
sudo spctl --master-disable

Disable GateKeeper turning back on after 30 days:
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO

Disable quarantine for downloaded apps:
sudo defaults write com.apple.LaunchServices LSQuarantine -bool NO
Offline
User avatar

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSat Jun 13, 2020 1:14 am

VapourSynth + Plugins + Scripts + Hybrid package update 2020.06.13
Changes:
D2V Witch v4
FFmpeg 4.2.3 (Inside Hybrid.app)
MKVToolNix 47.0.0 (Inside Hybrid.app)
Updated plug-ins: BM3D, DCTFilter, DFTTest, EEDI3m, FFT3DFilter, MVTools, NNEDI3CL
Updated FAQ

: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
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Jun 22, 2020 8:18 pm

VapourSynth + Plugins + Scripts + Hybrid package update 2020.06.22
Changes:
Updated VapourSynth-R50 installer components to work with FFmpeg 4.3.0
FFmpeg 4.3.0 (Inside Hybrid.app)
Updated plug-ins: AddGrain, Descale, Fix Telecined Fades, HQDN3D, MinSharp, QRCodeSource, RemapFrames, Retinex, SangNom, SCrawl, SmoothUV, TCanny, ToneMap,VideoScope, W3FDIF, MiniDeen, SceneChange, SurfaceBlur, TimeCube, tc2cfr, TNLMeans (updated plug-ins are now self contained with all required libraries, so there is no need to install additional .dylibs dependencies to /Library/Frameworks/VapourSynth.framework/lib/).
Updated FAQ.

: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

Make sure you COMPLETELY UNINSTALL OLD VERSION before install new version.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

PDCarter

  • Posts: 7
  • Joined: Thu Jun 11, 2020 1:57 pm
  • Real Name: Douglas Carter

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Jun 29, 2020 3:14 pm

Thank you for your work updating this package.

I would like to attempt to use it again vs my messed up home-brew install attempts.

Do you have a resource somewhere that details how to completely remove everything in order to start over - besides reinstalling the whole operating system?
Offline
User avatar

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Jun 29, 2020 8:56 pm

PDCarter wrote:Do you have a resource somewhere that details how to completely remove everything in order to start over - besides reinstalling the whole operating system?


1. Make hidden files and folders visible by pressing CMD + SHIFT + .
Image

2. Delete these directories:
/usr/local/lib/vapoursynth
$HOME/Library/Application Support/VapourSynth

3. Uninstall Homebrew if you don't need it anymore https://osxdaily.com/2018/08/12/how-uni ... ebrew-mac/

4. Download EasyFind app https://www.devontechnologies.com/apps/freeware and do a deep search for additional hidden files and folders for "VapourSynth" and "Homebrew" to delete them.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostWed Jul 01, 2020 6:43 am

Hybrid works OK for basic deinterlace operations with ProRes input and output, but it is still slightly outdated and buggy because developer lost interest to macOS development in 2017. Same time VapourSynth and plug-ins for macOS are recently updated.
:arrow: Last week Selur (Hybrid developer) on the forums noticed that he may change his mind, and may setup Mac virtual machine to continue development on macOS version.
Hybrid is more like hobby project, it is a free and not too advertised tool that is supported by community donations https://forum.selur.net/showthread.php?tid=2 I guess if developer will see that more people interested in macOS version, it may stimulate him to update macOS version faster. He explained on forums that there is nothing special in macOS code of the Hybrid, and that he compile it from same source as Windows version, but he just has no Mac computer for that.

:arrow: So i can only urge to send a donations to developer with notice in PayPal transaction that you are interested in update for macOS.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

PDCarter

  • Posts: 7
  • Joined: Thu Jun 11, 2020 1:57 pm
  • Real Name: Douglas Carter

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostWed Jul 01, 2020 2:47 pm

I removed everything and started again - that EasyFind is a great utility!

Okay, so now I'm only focusing on trying to get this install package working.

Trying to launch Hybrid fails with: ffmbc

I checked and it is 32bit which is why I'm sure it isn't working in Catalina. Eventually this all has to get resolved since Big Sur will have the same issues and beyond.

Thankfully most things in the package are 64bit, the only other things I could find immediately are:

- ffmbc
- lsdvd
- sox

pretty much everything else shows 64bit so I'm wondering how to get these 3 recompiled for 64bit as it may allow the software to load up and work
Offline
User avatar

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostWed Jul 01, 2020 2:50 pm

Yes, there where some reports on other forum about ffmbc error. Seems you find a source of this problem. ffmbc is a native muxer for mov container. As a workaround it was suggested try disabling "Config->Output->Container Settings->FFmbc for .mov muxing" before creating the job.

I personally use 10.14.6 because i have a lot of 32 bit apps and plug-ins.

Selur wrote:ffmbc -> used for mov muxing (ffmpeg can be used instead, but might be less compatible with some editing tools)
lsdvd -> used for DVD input
sox -> needed for audio processing
All those can be compiled with 64bit and Hybrid should have no problem with them being 64bit.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

PDCarter

  • Posts: 7
  • Joined: Thu Jun 11, 2020 1:57 pm
  • Real Name: Douglas Carter

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostWed Jul 01, 2020 5:23 pm

I temporarily removed the 32bit executables from the .app folder structure which allowed Hybrid to attempt to continue loading.

It looks like an endless stream of issues that will continue to arise from lack of 32bit support.

Now I am getting many org.qt-project.QtCore errors which tells me that the actual Hybrid interface must be using Qt to draw its interface. It seems this is currently 32bit as well on this build package and will not open.

D2Witch will open, but as soon as you try to index a video file it crashes with whatever executable it was trying to invoke (likely 32bit).

I simply cannot install Mojave on a 2019 Mac Pro tower so that isn't an option.

Also, I don't want to use a virtual machine to install Mojave because this doesn't do any good for trying to get acceleration from this machine.

I think the answer is getting a full 64bit-only rebuild of everything in the package so that it can function in the years ahead.

Also, in another thread I REALLY like the idea of an OFX plugin for at least QTGMC so that the majority of all of this can be sidestepped in favor of a plug-in that could function to end users in a much better fashion.

Who do I need to throw money at to make this happen? LOL

Hey Blackmagic...can you include QTGMC along side the deinterlace plugins sitting in Fusion already (that can already separate fields etc) ?

Maybe there's a way to grab the math out of QTGMC scripts and apply them in the deinterlace custom fields in Fusion...hmmmm
Offline

Andrew Kolakowski

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostWed Jul 01, 2020 6:08 pm

QTGMC is a monster script which uses many separate plugins. I asked to make a single dll just for avisynth or vapoursynth and no one was even close to be interested :D I don't think money will help much- it's just an insane task.
Offline

Andrew Kolakowski

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostWed Jul 01, 2020 6:10 pm

PDCarter wrote:
Hey Blackmagic...can you include QTGMC along side the deinterlace plugins sitting in Fusion already (that can already separate fields etc) ?

Maybe there's a way to grab the math out of QTGMC scripts and apply them in the deinterlace custom fields in Fusion...hmmmm


There is no easy (or at all) way as QTGMC is just a script which uses many separate plugins.

For BM easier way is to talk to Cinnafilm people and produce plugin for their tool, which is also very good. In this case problem would be cost as Tachyon's math is expensive and it also eats a lot of GPU resources.

BM has good enough math under their own motion adaptive engine- they just need to polish it and properly apply for deinterlacing needs.
Offline

Uli Plank

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostWed Jul 01, 2020 6:54 pm

Since QTGMC is running pretty well on a few CPU cores too, just keep an older Mac under High Sierra or Mojave.
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: 1508
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostThu Jul 02, 2020 1:47 am

Ok, now it is clear that Hybrid have too many outdated components to run on macOS 10.15. It works well on 10.14. VapourSynth and Hybrid is a complicated system of scripts plugins and different internal apps and in most cases it is impossible just remove or replace something without damage.

Current thread is more like customer oriented. It is for deinterlace workflow and further integration with Resolve post processing. Even it we find some code related bug here, there is not so many things that we can do to fix it.
:arrow: For some more technical questions, donations and macOS development requests it is better to connect developer directly on Selur's Little Message Board at similar VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS thread here https://forum.selur.net/showthread.php?tid=1279
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Jul 06, 2020 12:10 pm

Here is another strange little problem:
If i use Config -> Output -> Container Settings -> FFmpeg instead of MP4Box to fix problem with "Hybrid adds additional empty frame to MP4 x264/265 transcoded video" and transcode non interlaced ProRes source to H264 - the final render plays back with strobbing or frame skipping effect inside macOS QuickLook window. Same time in plays back well and smooth in any other video players including macOS QuickTime player.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Zack_W

  • Posts: 11
  • Joined: Sat Jun 27, 2020 9:38 pm
  • Real Name: Zack Wilson

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Jul 13, 2020 10:15 pm

Dmitry - thank you for all of your work assembling the QTGMC-VaporSynth-Hybrid package!

You mention in the FAQ that the way to turn off sharpening while using QTGMC to de-interlace footage is to "Export QTGMC preset from Hybrid" and then edit the .json file in TextEdit. I've been unable to find the QTGMC preset; could you let me know how to export it? I'm still running Mac OS X 10.12.6 Sierra in case that makes a difference. (Uli Plank generously tried to help me find this file, but the folder hierarchy on his system differs from mine.)
Offline
User avatar

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Jul 13, 2020 10:29 pm

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

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Jul 13, 2020 11:06 pm

:idea: Seems it was some bug with new versions of plug-ins that cause deinterlace problems with some settings. Currently as temporary solution it is recommended to download and install older version of MVTools and FFTW dependency from this post https://forum.doom9.org/showthread.php? ... ost1918272
(Have no idea which is more stable MVTools v19 or MVtools v20)

Put and replace libmvtools.dylib plug-in in /Library/Frameworks/VapourSynth.framework/lib/vapoursynth

Put libfftw3f_threads.3.dylib and libfftw3f.3.dylib dependencies to /Library/Frameworks/VapourSynth.framework/lib
Last edited by Dmitry Shijan on Mon Jul 20, 2020 11:59 am, edited 2 times in total.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Zack_W

  • Posts: 11
  • Joined: Sat Jun 27, 2020 9:38 pm
  • Real Name: Zack Wilson

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostFri Jul 17, 2020 3:09 am

Thanks Dmitry. Your screenshot helped me figure out my problem. I hadn't realized that I first had to create the QTGMC preset by saving a configuration in the VapourSynth pane. Once I did this, the script showed up in the Hybrid>Profiles>Scripts>VapourSynth folder just as it was supposed to. I also hadn't realized that in order to force Hybrid to utilize the newly edited script with sharpness set to 0.0, I had to select Custom as the preset and then check the Sharpness box. Everything seems to be working properly now, and Hybrid is no longer adding any sharpening.

One other question: I see no difference between the results of using the "slow" preset and the "medium" preset, other than the fact that processing with "slow" takes about 66% longer. Am I missing something? I do see a very slight difference when using the "fast" preset - in frames during which the camera was panning I see just the tiniest loss of resolution of very fine low contrast detail and tiniest bit of artifacting on high-contrast horizontal edges.
Offline

Andrew Kolakowski

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostFri Jul 17, 2020 11:16 am

Difference is there if you compare side by side, but it will be small. It may depend on content nature etc.
You have to figure out which preset is a good compromise between speed vs. quality for you.
Slow and above preset are in most cases overkill. They are good for SD content (specially when you want to upscale later to HD).
Offline

Zack_W

  • Posts: 11
  • Joined: Sat Jun 27, 2020 9:38 pm
  • Real Name: Zack Wilson

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSat Jul 18, 2020 6:41 pm

Any difference is certainly subtle. I could only see the difference with "fast" processing by toggling between matched still frames and looking VERY closely.

My source footage is 1080 60i (actually 59.94 fields per second) AVCHD from a Sony RX 100 Mk1 camera. I'm outputting to 1080 29.97P ProRes 422 HQ, so upscaling is not an issue.

Also, I could see no difference whether or not "Bob" was checked in the Filtering>(De-)interlacing pane. If I understand the tool tips description correctly, QTGMC will create a frame from every field in the source material regardless of whether Bob is checked. The only difference is that if "Bob" is unchecked QTGMC will discard every other frame in order to maintain the original frame rate of the source material, but if "Bob" is checked QTGMC will keep all of the frames, thereby doubling the frame rate of the source material. So I guess it makes sense that still frames looked identical either way, and motion looked identical if I took the 59.94P video created with "Bob" checked and scaled the frame rate back to the original 29.97. Assuming I want to end up with footage having the same frame rate as the original, I'm best off leaving "Bob" unchecked?
Offline
User avatar

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostMon Jul 20, 2020 11:53 am

:arrow: l33tmeatwad just added MVtools v20, v21 and v22 to the downloads (seems they all self contained versions now and don't need libfftw3f_threads.3.dylib and libfftw3f.3.dylib external dependency) https://www.mediafire.com/folder/wvdlnj ... vg8my3xf71

If anyone who had issues with v23 please test and post the results here or in original thread here https://forum.doom9.org/showthread.php? ... ost1918897
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline
User avatar

Cary Knoop

  • Posts: 1276
  • Joined: Sun Mar 12, 2017 6:35 pm
  • Location: Newark, CA USA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostWed Jul 22, 2020 12:58 am

Dmitry Shijan wrote:Let's back to topic.
In AviSynth Wilki DeHalo_alpha described as "Very powerful filter to remove edge enhancement artifacts." So seems it is really best filter to go.

I would be very careful using this filter, using it the wrong way destroys more things than it fixes.

A filter that comes close to doing a good dehalo is in the Vine package.

But be prepared to be very patient!

https://github.com/IFeelBloated/Vine
Last edited by Cary Knoop on Sun Aug 09, 2020 9:42 pm, edited 1 time in total.
Offline
User avatar

Dmitry Shijan

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Jul 28, 2020 2:24 am

VapourSynth + Plugins + Scripts + Hybrid package update 2020.07.20
Changes:
Updated VapourSynth-R50 installer components.
FFmpeg 4.3.1 (Inside Hybrid.app).
MKVToolNix 48.0.0 (Inside Hybrid.app).
MVTools plug-in downgraded to stable v20 (new self contained version).
Updated FAQ.

: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

THIS IS A CRITICAL UPDATE! MVTools plug-in was downgraded to v20 because some reports that newer versions of MVTools (v23) produce problems and freezes during deinterlace.
Make sure you COMPLETELY UNINSTALL OLD VERSION before install this new version.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Offline

Uli Plank

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

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostTue Jul 28, 2020 9:19 am

As always: thank you for continued support. 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: 1508
  • Joined: Wed Sep 17, 2014 7:15 pm
  • Location: UA

Re: VapourSynth + QTGMC Deinterlace + Hybrid FAQ for macOS

PostSat Aug 08, 2020 6:14 pm

Here is small incompatibility bug that will be fixed in next package release.

Scripts for Hybrid where updated about a month ago and gives error with "Very Slow" or "Placebo" QTGMC deinterlace settings:
Aborting '06_15_03_5110_02_video' due to: ERROR

From developer explanation https://forum.selur.net/showthread.php? ... 29#pid8329
"QTGMC no longer uses fft3dfilter, but neo_FFT3D
So either neo_FFT3D needs to be build or the script needs to be adjusted."

So we just need to wait for updated qtgmc/neo-fftd filter compiled l33tmeatwad.

Anyway i still recommend use "Slow" preset. It is not affected by this problem and it still gives the best speed vs quality ratio.
All my custom made accessories for BMMCC/BMMSC now available here https://lavky.com/radioproektor/
Previous

Return to Post Production

Who is online

Users browsing this forum: No registered users and 7 guests