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 14th October 2024, 08:33   #1  |  Link
yuygfgg
Registered User
 
Join Date: Oct 2024
Posts: 8
Use libavfilter in vapoursynth?

I'm encoding on Apple Silicon Macs. However, KNLMEANSCL and libavfilter's nlmeans_opencl don't work correctly here for some reason. Luckily, libavfilter as a nlmeans_vulkan. Is it possible to use it inside vpys? Or I will have to port the code myself?
yuygfgg is offline   Reply With Quote
Old 14th October 2024, 09:41   #2  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,595
Quote:
Originally Posted by yuygfgg View Post
I'm encoding on Apple Silicon Macs. However, KNLMEANSCL and libavfilter's nlmeans_opencl don't work correctly here for some reason. Luckily, libavfilter as a nlmeans_vulkan. Is it possible to use it inside vpys? Or I will have to port the code myself?
You have to port it.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is offline   Reply With Quote
Old 14th October 2024, 12:46   #3  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,821
CPU version of KNLMEANSCL https://github.com/AmusementClub/vs-nlm-ispc
I have no idea if can be compiled for mac or not.

EDIT: I'm blind https://github.com/AmusementClub/vs-...me-ov-file#arm
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 14th October 2024, 12:55   #4  |  Link
yuygfgg
Registered User
 
Join Date: Oct 2024
Posts: 8
Quote:
Originally Posted by ChaosKing View Post
CPU version of KNLMEANSCL https://github.com/AmusementClub/vs-nlm-ispc
I have no idea if can be compiled for mac or not.

EDIT: I'm blind https://github.com/AmusementClub/vs-...me-ov-file#arm
I've used that for a long time. It's good and very fast, but I'm still seeking if I can offload some work from CPU to GPU. Currently the gpu only works for nnedi3cl and eedi3cl.
yuygfgg is offline   Reply With Quote
Old 14th October 2024, 19:09   #5  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 198
If you are going to port somthing, is a somewhat general interface of libavfilters possible? So most of the FFmpeg's filters can be used...
(Talk about general interfaces I think vs-placebo, then I think perhaps you can use nlmeans shader)

Last time I checked, vs-nlm-ispc got completely "smashed" by the opencl version in terms of speed, is it different in Apple Silicon chips? What performance is it that you would call it "very fast"?
What is the "not work correctly" mean by the way? Is it crashing, or is it have corrupted output frames?
Z2697 is offline   Reply With Quote
Old 14th October 2024, 21:59   #6  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,821
Performance king would be vs-nlm-cuda, but I don't think cuda is supported on mac?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 15th October 2024, 01:47   #7  |  Link
yuygfgg
Registered User
 
Join Date: Oct 2024
Posts: 8
Quote:
Originally Posted by Z2697 View Post
If you are going to port somthing, is a somewhat general interface of libavfilters possible? So most of the FFmpeg's filters can be used...
(Talk about general interfaces I think vs-placebo, then I think perhaps you can use nlmeans shader)

Last time I checked, vs-nlm-ispc got completely "smashed" by the opencl version in terms of speed, is it different in Apple Silicon chips? What performance is it that you would call it "very fast"?
What is the "not work correctly" mean by the way? Is it crashing, or is it have corrupted output frames?
nlm_ispc is about 45 fps, it's high performance compared with bm3dcpu(~6fps)

not work correctly means it output broken images.
yuygfgg is offline   Reply With Quote
Old 15th October 2024, 10:48   #8  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 198
Quote:
Originally Posted by yuygfgg View Post
nlm_ispc is about 45 fps, it's high performance compared with bm3dcpu(~6fps)

not work correctly means it output broken images.
Can you elaborate on what parameters is used in that speed comparison, and share a screenshot of the broken output?
Z2697 is offline   Reply With Quote
Old 16th October 2024, 02:44   #9  |  Link
yuygfgg
Registered User
 
Join Date: Oct 2024
Posts: 8
Quote:
Originally Posted by ChaosKing View Post
Performance king would be vs-nlm-cuda, but I don't think cuda is supported on mac?
yeah cuda don't support mac. I'm now learning apple's metal, it's like 80% similar with cuda. But it's swift that made it hard to use in vapoursynth plugins.

Last edited by yuygfgg; 16th October 2024 at 13:26. Reason: typo
yuygfgg is offline   Reply With Quote
Reply

Tags
ffmpeg, libavfilter, vapoursynth

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 10:29.


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