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 3rd February 2025, 00:29   #1  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,981
Compiling RGSF

I'm trying to compile RGSF on Linux. It'd be an understatement to say I'm new to this sort of thing. The following seems to work:

g++ -shared -o librgsf.so RGVS.cpp -O3 -march=native

but according to VS Edit the plugin won't load.

Failed to load /usr/lib/x86_64-linux-gnu/vapoursynth/librgsf.so. Error given: /usr/lib/x86_64-linux-gnu/vapoursynth/librgsf.so: undefined symbol: _Z12clenseCreatePK5VSMapPS_PvP6VSCorePK5VSAPI

Any help would be appreciated.
Thanks.
hello_hello is offline   Reply With Quote
Old 3rd February 2025, 13:47   #2  |  Link
Julek
Registered User
 
Julek's Avatar
 
Join Date: Dec 2020
Posts: 99
Code:
g++ -fPIC -c file1.cpp file2.cpp file3.cpp
g++ -march=native -shared -o libname.so file1.o file2.o file3.o
but if you want just RemoveGrain filter, you can use zsmooth:
https://github.com/adworacz/zsmooth
__________________
CPU: AMD 3700X | GPU: RTX 3070Ti | RAM: 32GB 3200MHz
GitHub
Julek is offline   Reply With Quote
Old 3rd February 2025, 17:35   #3  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,981
Julek,
Unfortunately it's the Repair filter I'm after rather than RemoveGrain.
Thanks for the help though. I now have a working plugin.

I'd only been vaguely aware of zsmooth until now, but I wouldn't mind giving it a look. I've been using focus2.TemporlSoften2 in a function but it also requires the miscellaneous filters plugin for scene change detection. Would you mind sharing the incantations and spells required to download and compile zsmooth? It appears I'll need to install Zig first. Is that correct?

Cheers.
hello_hello is offline   Reply With Quote
Old 3rd February 2025, 18:50   #4  |  Link
Julek
Registered User
 
Julek's Avatar
 
Join Date: Dec 2020
Posts: 99
current zsmooth uses zig-0.12 so you can download 0.12.1 here, extract in a folder and run:

Code:
git clone https://github.com/adworacz/zsmooth
cd ./zsmooth
path-to-zig build -Doptimize=ReleaseFast
you can do the same thing with vszip, but you'll need zig-0.14.0-dev
https://github.com/dnjulek/vapoursynth-zip
__________________
CPU: AMD 3700X | GPU: RTX 3070Ti | RAM: 32GB 3200MHz
GitHub

Last edited by Julek; 3rd February 2025 at 18:58.
Julek is offline   Reply With Quote
Old 4th February 2025, 03:38   #5  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,981
Thanks.

I really should have paid more attention to "current zsmooth uses zig-0.12", because I downloaded the latest version which wouldn't work.

error: no field named 'path' in union 'Build.LazyPath'

I got there eventually, but to think a year or two ago I could add a plugin by downloading a dll.

I discovered zsmooth.TemporalSoften also requires the misc filters plugin for scene change detection, which is fine as I have it installed, but I couldn't get the scene change detection to work. SCDetect doesn't need to be added to the script manually does it?

Cheers.
hello_hello is offline   Reply With Quote
Old 4th February 2025, 03:50   #6  |  Link
Julek
Registered User
 
Julek's Avatar
 
Join Date: Dec 2020
Posts: 99
I don't know about zsmooth operation, you can ask it here:
https://forum.doom9.org/showthread.php?t=185465
__________________
CPU: AMD 3700X | GPU: RTX 3070Ti | RAM: 32GB 3200MHz
GitHub
Julek is offline   Reply With Quote
Old 4th February 2025, 14:52   #7  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 359
Do you specifically need the Floating Point support?
Z2697 is offline   Reply With Quote
Old 5th February 2025, 01:41   #8  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,981
Yeah, that's the only reason for needing it.
To be more specific Repair is used in part of a function and ideally I'd like the function to support any bitdepth (half float is supported in a few places by converting it to full float and back as there's no other way around it, aside from converting to an integer bitdepth).
hello_hello is offline   Reply With Quote
Old Yesterday, 07:26   #9  |  Link
xyx98
Registered User
 
Join Date: Dec 2020
Posts: 1
https://aur.archlinux.org/cgit/aur.g...lugin-rgsf-git
You can find most vs plugin in aur.
Read PKGBUILD file for help when build on other linux.
xyx98 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 22:17.


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