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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th November 2024, 21:01   #1  |  Link
Selur
Registered User
 
Selur's Avatar
 
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
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 12th November 2024, 12:24   #2  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
Quote:
Originally Posted by Selur View Post
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
Brew is the easiest way by far and as such probably what I'd recommend. Vsrepo has experimental support I haven't even tried myself so the rest (any plugin/editor not in brew) you'll have to compile manually.

Have fun
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 12th November 2024, 19:18   #3  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,501
Thanks for the info.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 13th November 2024, 16:14   #4  |  Link
yuygfgg
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.
yuygfgg is offline   Reply With Quote
Old 13th November 2024, 17:26   #5  |  Link
amayra
Quality Checker
 
amayra's Avatar
 
Join Date: Aug 2013
Posts: 294
we need a new plug-in system that run in every architecture and platforms

but i don't think this is possible with one developer for rewriting code and complexity of this task
__________________
I love Doom9
amayra is offline   Reply With Quote
Old 16th November 2024, 20:21   #6  |  Link
Selur
Registered User
 
Selur's Avatar
 
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)
__________________
Hybrid here in the forum, homepage

Last edited by Selur; 17th November 2024 at 06:42.
Selur is offline   Reply With Quote
Old 25th November 2024, 14:37   #7  |  Link
Julek
Registered User
 
Julek's Avatar
 
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.
__________________
CPU: AMD 3700X | GPU: RTX 3070Ti | RAM: 32GB 3200MHz
GitHub
Julek is offline   Reply With Quote
Old 25th November 2024, 18:43   #8  |  Link
Selur
Registered User
 
Selur's Avatar
 
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)
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 25th November 2024, 18:50   #9  |  Link
Julek
Registered User
 
Julek's Avatar
 
Join Date: Dec 2020
Posts: 96
Quote:
Originally Posted by Selur View Post
Does it work with zig 0.13.0 (this is the version homebrew offers) ?
( ran into that with zsmooth)
just download the executable from the site:
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
vszip always uses the latest zig-master version
__________________
CPU: AMD 3700X | GPU: RTX 3070Ti | RAM: 32GB 3200MHz
GitHub

Last edited by Julek; 25th November 2024 at 18:59.
Julek is offline   Reply With Quote
Old 26th November 2024, 19:11   #10  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,501
Quote:
vszip always uses the latest zig-master version
good to know. Should it also work with 0.13.0 ?
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.