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. |
11th November 2024, 21:01 | #1 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,501
|
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 |
12th November 2024, 12:24 | #2 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
|
Quote:
Have fun
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
13th November 2024, 16:14 | #4 | Link |
Registered User
Join Date: Oct 2024
Posts: 8
|
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. |
16th November 2024, 20:21 | #6 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,501
|
@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. |
25th November 2024, 14:37 | #7 | Link |
Registered User
Join Date: Dec 2020
Posts: 96
|
You can get a faster boxblur and bilateral by compiling vszip plugin, Zig can generate SIMD for ARM natively.
|
25th November 2024, 18:43 | #8 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,501
|
Does it work with zig 0.13.0 (this is the version homebrew offers) ?
( ran into that with zsmooth) |
25th November 2024, 18:50 | #9 | Link | |
Registered User
Join Date: Dec 2020
Posts: 96
|
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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|