Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,700
|
Vapoursynth on Mac (ARM), setup?
Can anyone in detail describe how to setup Vapoursynth on MacOS for ARM?
Is using brew the recommended way to install Vapoursynth? Should one use vsrepo to install plugins? (doesn't seem like brews Vapoursynth install comes with vsrepo) Any step-by-step for n00bs on how to get this working? Cu Selur ![]() |
![]() |
![]() |
![]() |
#2 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,619
|
Quote:
Have fun
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
![]() |
![]() |
![]() |
#4 | Link |
Registered User
Join Date: Oct 2024
Posts: 13
|
I do a lot of encoding with Vapoursynth on Apple Silicon Macs. You can find some of the plugins I’ve ported (or just built) in this repository: https://github.com/yuygfgg/Macos_vapoursynth_plugins.
These plugins are built on an M2 Pro CPU, so they may not work on M1 (not sure), and they don’t use SVE on M4. A few tips: std.Expr is slow on non-x86 platforms; akarin.Expr (LLVM-based) performs better. sse2neon.h and the Simde library can help port almost all SIMD code to ARM, which is crucial for certain plugins (e.g., BM3DCPU). KNLM compiles and runs without errors or warnings, but the output is broken, so it’s better to use nlm_ispc. vsmlrt’s ort_coreml sometimes crashes on large clips (≥1080p) and keeps generating files in a directory, so you’ll need to manually clean them up. You may also want to translate SSE routines inside vapoursynth, but I modified the VS-C fork and found hardly any improvement and it's probably the same in upstream. Last edited by yuygfgg; 14th November 2024 at 05:53. |
![]() |
![]() |
![]() |
#6 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,700
|
@yuygfgg: dependencies of the plugins in your repository seem to be broken (created an issue entry over @github)
=> got an answer on github. (read https://github.com/yuygfgg/Macos_vap...flows/main.yml) Last edited by Selur; 17th November 2024 at 06:42. |
![]() |
![]() |
![]() |
#7 | Link |
Registered User
Join Date: Dec 2020
Posts: 99
|
You can get a faster boxblur and bilateral by compiling vszip plugin, Zig can generate SIMD for ARM natively.
|
![]() |
![]() |
![]() |
#8 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,700
|
Does it work with zig 0.13.0 (this is the version homebrew offers) ?
( ran into that with zsmooth) |
![]() |
![]() |
![]() |
#9 | Link | |
Registered User
Join Date: Dec 2020
Posts: 99
|
Quote:
https://ziglang.org/download/ zig-macos-aarch64-0.14.0-dev.2293+6d781e095.tar.xz And run this: Code:
git clone https://github.com/dnjulek/vapoursynth-zip cd ./vapoursynth-zip PATH-TO/zig-macos-aarch64-0.14.0-dev.2293+6d781e095/zig build -Doptimize=ReleaseFast Last edited by Julek; 25th November 2024 at 18:59. |
|
![]() |
![]() |
![]() |
#11 | Link |
Fighting spam with a fish
Join Date: Sep 2005
Posts: 2,740
|
Just FYI - I'm going to look into building binaries for Mac for Zsmooth going forwards, which removes the need for consumers to care about specific Zig versions. I already do this for my Windows DLL builds today.
This will all be part of a refactor to use Github Workflows to autobuild everything when I make releases. It will likely be a month or two, since I'm finishing up some projects with work, but after that I'll have a lot more time on my hands. |
![]() |
![]() |
![]() |
#14 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,700
|
Does anyone have build instructions how to build https://github.com/sekrit-twc/timecube.git on MacOS (silicon) or an alternative filter that can be built on MacOS, which can be used to apply LUTs?
|
![]() |
![]() |
![]() |
#15 | Link | |
Registered User
Join Date: Nov 2019
Posts: 12
|
Quote:
|
|
![]() |
![]() |
![]() |
#18 | Link |
Registered User
Join Date: Nov 2019
Posts: 12
|
I'm pretty noob/unconfident with Github. For posterity and to help other fellow mac vapoursynth users, what should I do to preserve the macOS arm64 "buildability"?
- Post an issue in timecube's repo and ask the dev to integrate macOS in the makefile? - Create a Pull Request? Thanks |
![]() |
![]() |
![]() |
#19 | Link | |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,269
|
Quote:
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|