Log in

View Full Version : flash3kyuu_deband 1.5.1 / 2.0pre2 with native VapourSynth support [2012-12-03]


Pages : 1 2 3 4 5 6 [7]

vood007
14th December 2013, 13:25
Dont know where i could tweak ffdshow in this regard since its perfectly quick when i take out f3kdb from the script. Well looks like i have to live with it, thanks anyway.

kabal223
3rd January 2014, 16:13
Hi!

Im sorry for my noob question, but I need help. I want to use this in real time with ffdshow but I dont have a clue of how to do that.

Please help, is there a tutorial anywere? thanks!

ryrynz
4th January 2014, 05:54
Since you're new to using Avisynth and ffdshow, consider using MadVR's deband feature which is based off of f3kdb if you have a semi decent GPU. At this point I think it's generally accepted that it offers better debanding.

Sparktank
30th May 2014, 02:32
debanding algorithm for madVRI will try to implement this when I have time later.

Any update on this update? :o

SAPikachu
30th May 2014, 03:16
Any update on this update? :o

I am too busy on my work and other projects recently, so this probably won't happen for some time, sorry.. Though if anyone can send me pull requests or patches, I can merge it into the main repository.

MonoS
8th March 2015, 22:17
I'm having problem compiling this plugin at 64bit on Windows using mingw64 and Msys 2.

I start waf using this
./waf configure --static --no-shared --disable-avs --mode=release
Then get this error
Setting top to : /f3kdb
Setting out to : /f3kdb/build
Shared library : no
Static library : yes
Checking for 'g++' (c++ compiler) : /mingw64/bin/g++
Checking for linker flags -Wl,-Bsymbolic : no
Checking for linker flags -Wl,-z,noexecstack : no
- alignas : no

Here's the log
# project f3kdb (2.0pre) configured on Sun Mar 8 22:16:01 2015 by
# waf 1.7.15 (abi 98, python 30303f0 on msys)
# using ./waf configure --static --no-shared --disable-avs --mode=release
#
----------------------------------------
Setting top to
/f3kdb
----------------------------------------
Setting out to
/f3kdb/build
----------------------------------------
Shared library
no
----------------------------------------
Static library
yes
----------------------------------------
Checking for 'g++' (c++ compiler)
find program=['g++', 'c++'] paths=['/mingw64/bin', '/usr/local/bin', '/usr/bin', '/bin', '/mingw32', '/c/ProgramData/Oracle/Java/javapath', '/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common', '/c/Windows/system32', '/c/Windows', '/c/Windows/System32/Wbem', '/c/Windows/System32/WindowsPowerShell/v1.0', '/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static', '/c/Program Files (x86)/Common Files/Roxio Shared/9.0/DLLShared', '/c/Program Files (x86)/QT Lite/QTSystem', '/c/Program Files (x86)/AMD/ATI.ACE/Core-Static', '/c/Program Files (x86)/CMake/bin', '/usr/bin/site_perl', '/usr/bin/vendor_perl', '/usr/bin/core_perl'] var='CXX' -> '/mingw64/bin/g++'
find program=['ar'] paths=['/mingw64/bin', '/usr/local/bin', '/usr/bin', '/bin', '/mingw32', '/c/ProgramData/Oracle/Java/javapath', '/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common', '/c/Windows/system32', '/c/Windows', '/c/Windows/System32/Wbem', '/c/Windows/System32/WindowsPowerShell/v1.0', '/c/Program Files (x86)/ATI Technologies/ATI.ACE/Core-Static', '/c/Program Files (x86)/Common Files/Roxio Shared/9.0/DLLShared', '/c/Program Files (x86)/QT Lite/QTSystem', '/c/Program Files (x86)/AMD/ATI.ACE/Core-Static', '/c/Program Files (x86)/CMake/bin', '/usr/bin/site_perl', '/usr/bin/vendor_perl', '/usr/bin/core_perl'] var='AR' -> '/mingw64/bin/ar'
/mingw64/bin/g++
----------------------------------------
Checking for linker flags -Wl,-Bsymbolic
==>

int main(int argc, char **argv) {
(void)argc; (void)argv;
return 0;
}

<==
[1/2] cxx: build/.conf_check_73cb2ad4dc7ec5ddbb2d8468622d975a/test.cpp -> build/.conf_check_73cb2ad4dc7ec5ddbb2d8468622d975a/testbuild/test.cpp.1.o

['/mingw64/bin/g++', '-fPIC', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fvisibility=hidden', '-fvisibility-inlines-hidden', '-Werror', '-std=c++11', '../test.cpp', '-c', '-o', 'test.cpp.1.o']
err: ../test.cpp:1:0: error: -fPIC ignored for target (all code is position independent) [-Werror]

^
cc1plus.exe: all warnings being treated as errors

from /f3kdb: Test does not build: Traceback (most recent call last):
File "/f3kdb/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Tools/c_config.py", line 458, in run_c_code
bld.compile()
File "/f3kdb/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Build.py", line 188, in compile
raise Errors.BuildError(self.producer.error)
waflib.Errors.BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
{task 7696569521744: cxx test.cpp -> test.cpp.1.o}
['/mingw64/bin/g++', '-fPIC', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fvisibility=hidden', '-fvisibility-inlines-hidden', '-Werror', '-std=c++11', '../test.cpp', '-c', '-o', 'test.cpp.1.o']

no
from /f3kdb: The configuration failed
--------------------------------------------
Checking for linker flags -Wl,-z,noexecstack
==>

int main(int argc, char **argv) {
(void)argc; (void)argv;
return 0;
}

<==
[1/2] cxx: build/.conf_check_1fb68c99b0b8fa44c9dc9af28b04c8de/test.cpp -> build/.conf_check_1fb68c99b0b8fa44c9dc9af28b04c8de/testbuild/test.cpp.1.o

['/mingw64/bin/g++', '-fPIC', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fvisibility=hidden', '-fvisibility-inlines-hidden', '-Werror', '-std=c++11', '../test.cpp', '-c', '-o', 'test.cpp.1.o']
err: ../test.cpp:1:0: error: -fPIC ignored for target (all code is position independent) [-Werror]

^
cc1plus.exe: all warnings being treated as errors

from /f3kdb: Test does not build: Traceback (most recent call last):
File "/f3kdb/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Tools/c_config.py", line 458, in run_c_code
bld.compile()
File "/f3kdb/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Build.py", line 188, in compile
raise Errors.BuildError(self.producer.error)
waflib.Errors.BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
{task 7696569193424: cxx test.cpp -> test.cpp.1.o}
['/mingw64/bin/g++', '-fPIC', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fvisibility=hidden', '-fvisibility-inlines-hidden', '-Werror', '-std=c++11', '../test.cpp', '-c', '-o', 'test.cpp.1.o']

no
from /f3kdb: The configuration failed
--------------------------------------------
- alignas
==>
int main() { alignas(8) int x = 0; return x; }
<==
[1/2] cxx: build/.conf_check_e3129656e5b3600e23d9ba3a04379822/test.cpp -> build/.conf_check_e3129656e5b3600e23d9ba3a04379822/testbuild/test.cpp.1.o

['/mingw64/bin/g++', '-fPIC', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fvisibility=hidden', '-fvisibility-inlines-hidden', '-Werror', '-std=c++11', '-O3', '../test.cpp', '-c', '-o', 'test.cpp.1.o']
err: ../test.cpp:1:0: error: -fPIC ignored for target (all code is position independent) [-Werror]
int main() { alignas(8) int x = 0; return x; }
^
cc1plus.exe: all warnings being treated as errors

from /f3kdb: Test does not build: Traceback (most recent call last):
File "/f3kdb/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Tools/c_config.py", line 458, in run_c_code
bld.compile()
File "/f3kdb/.waf3-1.7.15-9c6c439a6416a92b3e844736c4ef3c7b/waflib/Build.py", line 188, in compile
raise Errors.BuildError(self.producer.error)
waflib.Errors.BuildError: Build failed
-> task in 'testprog' failed (exit status 1):
{task 7696569195024: cxx test.cpp -> test.cpp.1.o}
['/mingw64/bin/g++', '-fPIC', '-Wall', '-Wextra', '-Wno-unused-parameter', '-fvisibility=hidden', '-fvisibility-inlines-hidden', '-Werror', '-std=c++11', '-O3', '../test.cpp', '-c', '-o', 'test.cpp.1.o']

no
from /f3kdb: The configuration failed

Myrsloik
8th March 2015, 22:23
Remove -Werror from the build script. It shouldn't be there.

Are_
8th March 2015, 22:42
I think I did try that and was no good. Here is a compile with msvs12 for vapoursynth-flash3kyuu_deband-2.0.20140721 (https://www.amazon.es/clouddrive/share/RmcltkloTt9EyRhks3C7rKAgiETEJTfJaLQgD2xkyvo), and that's the date for the last time code updated on github. It includes 32/64 bit binaries and docs.

MonoS
8th March 2015, 22:56
In fact seems that it's not compilable with gcc, i continue to get errors.

Your build works perfectly, thanks Are_

Magik Mark
25th July 2016, 11:10
Got an 8bit video.

Executed this command f3kdb(keep_tv_range = true, output_depth = 10)

Rencoded using staxrip x265 2pass 10bit

Got green screen

Any work around?

~ VEGETA ~
29th September 2016, 05:59
I am using vapoursynth (portable x64) on windows 7 x64. I have this :


import vapoursynth as vs
import sys
core = vs.get_core()
video = core.lsmas.LWLibavSource(source=r'.......\file.mkv')

db = core.f3kdb.Deband(video)
db.set_output()



I get this:


Failed to evaluate the script:
Python exception: Failed to load C:......\flash3kyuu_deband.dll. GetLastError() returned 126.
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1491, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:26905)
File "C:/....../Untitled.vpy", line 4, in <module>
core.std.LoadPlugin(path=r'C:.......\flash3kyuu_deband.dll')
File "src\cython\vapoursynth.pyx", line 1383, in vapoursynth.Function.__call__ (src\cython\vapoursynth.c:25212)
vapoursynth.Error: Failed to load C:\........\flash3kyuu_deband.dll. GetLastError() returned 126.





I also tried loading it manually via LoadPlugin but didn't work. I installed the windows update that is needed for this to work and everything works like lsmash... I guess the problem is it doesn't load the f3kdb plugin.

trip_let
29th September 2016, 08:27
I also tried loading it manually via LoadPlugin but didn't work. I installed the windows update that is needed for this to work and everything works like lsmash... I guess the problem is it doesn't load the f3kdb plugin.

You grabbed the 2.0, right?

~ VEGETA ~
29th September 2016, 09:33
You grabbed the 2.0, right?

yes that.

jackoneill
29th September 2016, 11:01
yes that.

If you got it from the first post in this thread, it's a 32 bit binary. You can find a 64 bit binary a few posts up.

~ VEGETA ~
29th September 2016, 18:46
thanks, I already got it after your post. it is better than GrainFactory3 which puts lots of grain and doesn't really work fine with dark area masking.

Stereodude
2nd May 2018, 16:16
Any possibility for an updated link to download the 2.0pre2 (64-bit and 32-bit)?

sneaker_ger
2nd May 2018, 16:23
https://mega.nz/#F!Y10U2LiJ!2H29c5mv5npZiTMdtSwveg
("f3kdb-b98d6bc.7z" is newer. Don't remember exactly what is different, I think some crash-fix or something. So I'd use that instead of the older official build.)

sl1pkn07
2nd May 2018, 16:43
any compilation with avs+ 2.6 API?

DJATOM
2nd May 2018, 20:56
Sure, http://www.mediafire.com/file/92025c9lsj4546b/flash3kyuu_deband.dll

sl1pkn07
2nd May 2018, 21:24
32 and 64 bits if is posible

Mani thanks!!

DJATOM
2nd May 2018, 21:48
http://www.mediafire.com/file/l1mgo50p9k27zb1/f3kdb_latest_AvisynthPluginInit3.7z

sl1pkn07
2nd May 2018, 22:19
tnx bro!!

tuanden0
4th May 2018, 15:21
@DJATOM Could you build x64 lastest version (9f3042e) for vapoursynth?

https://github.com/SAPikachu/flash3kyuu_deband

DJATOM
4th May 2018, 16:00
My builds are from latest commit, it should work with Vapoursynth
https://i.imgur.com/IPIRcaL.png

tuanden0
4th May 2018, 16:05
My builds are from latest commit, it should work with Vapoursynth
https://i.imgur.com/IPIRcaL.png

:thanks:

ChaosKing
4th May 2018, 16:52
https://mega.nz/#F!Y10U2LiJ!2H29c5mv5npZiTMdtSwveg
("f3kdb-b98d6bc.7z" is newer. Don't remember exactly what is different, I think some crash-fix or something. So I'd use that instead of the older official build.)

It should be this one https://github.com/SAPikachu/flash3kyuu_deband/commit/b98d6bc. So it's not the latest commit, but almost ;)

Oh and Myrsloik forked it if no one saw it yet: https://github.com/myrsloik/flash3kyuu_deband

Stereodude
4th May 2018, 17:58
It should be this one https://github.com/SAPikachu/flash3kyuu_deband/commit/b98d6bc. So it's not the latest commit, but almost ;)

Oh and Myrsloik forked it if no one saw it yet: https://github.com/myrsloik/flash3kyuu_deband
What unique about his fork? I looked at the commits, but don't see anything elated to algorithm improvements ie: Madshi's suggestions.

What's the state of AVIsynth+ high color depth support with 2.0pre2??

Myrsloik
4th May 2018, 18:25
What unique about his fork? I looked at the commits, but don't see anything elated to algorithm improvements ie: Madshi's suggestions.

What's the state of AVIsynth+ high color depth support with 2.0pre2??

I only forked it to bring more sanity to the codebase. Only got halfway on that project though. All the ancient avisynth support and such makes it impossible to compile with clang-cl so I removed it. Not really planning to do much more than clean it up so it's sane to compile and debug. Having the intel compiler tentacles everywhere is just rude!

Stereodude
4th May 2018, 18:56
I only forked it to bring more sanity to the codebase. Only got halfway on that project though. All the ancient avisynth support and such makes it impossible to compile with clang-cl so I removed it. Not really planning to do much more than clean it up so it's sane to compile and debug. Having the intel compiler tentacles everywhere is just rude!
So your fork will not support AVIsynth or AVIsynth+, only VapourSynth, or did I misunderstand you?

foxyshadis
4th May 2018, 23:41
So your fork will not support AVIsynth or AVIsynth+, only VapourSynth, or did I misunderstand you?

AviSynth+ should work, and maybe 2.6? AviSynth 2.5 won't. A few other plugins have already been through the VS carwash and come out much better on the AVS end.

Myrsloik
5th May 2018, 16:24
As I said, not even remotely done yet. But probably VS and Avs+ support. I hade needlessly complicated code like this...

JKyle
4th June 2021, 05:06
http://www.mediafire.com/file/l1mgo50p9k27zb1/f3kdb_latest_AvisynthPluginInit3.7z

@DJATOM,

StaxRip ships with your build of flash3kyuu_deband as of version v2.6.0, but it's been pointed out since a while ago that it suffers from a dependency issue.
Without DFTTest and masktools2, it crashes StaxRip or any other AVS script renderer such as AvsPmod preview or VirtualDub2.

https://cdn.discordapp.com/attachments/583884484743790614/850013798499614720/AvsPmod_preview_f3kdb_issue_1_20210603.png

But if DFTTest and masktools2 are loaded, it's OK.

https://i.imgur.com/oPZ34ss.png


One of StaxRip users came up with an independent build (https://gitlab.com/uvz/AviSynthPlus-Plugins-Scripts/-/blob/master/plugins64+/flash3kyuu_deband.dll) by the maintainer of Avisynth+ plugins pack (https://gitlab.com/uvz/AviSynthPlus-Plugins-Scripts), and it does turn out to be dependency free.

https://cdn.discordapp.com/attachments/583884484743790614/850023781208555530/AvsPmod_preview_f3kdb_issue_3_20210603.png

Reading the CHANGELOG (https://gitlab.com/uvz/AviSynthPlus-Plugins-Scripts/-/blob/master/CHANGELOG.md), I could see that he built his binary with Clang but there's no more detailed info on whether and how he modded the official source code. As a matter of fact, it's not even clear if he did build the binary with Clang 'cuz he had built a previous version with an Intel compiler according to the CHANGELOG.

Anyway, do you have any idea about what caused the dependency issue in your build and why a different build does not raise the same issue? :confused:

Shuichiyagami
8th September 2024, 16:17
Hello, i got green preview like this when i use this settings
flash3kyuu_deband(range=16, y=48, cb=48, cr=48, grainy=48, grainc=48, dither_algo=3, input_depth=8, output_depth=10)

My point is just to make sure 8-bit video source to became 10-bit after encode.

https://i.ibb.co.com/FhfdTwD/TYUI.png (https://ibb.co.com/FhfdTwD)