Log in

View Full Version : Fighting colorbanding?


asarian
14th April 2016, 06:32
Looking at the output of some rendered scenes (x264 output), I just realize what I really need is a filter like GradFun2DBmod for VapourSynth, or the DitherTools, as I'm gettting too much unwanted colorbanding.

I couldn't find anything like that for VapourSynth? Does it exist even?!

Thanks.

Tormaid
14th April 2016, 06:36
http://forum.doom9.org/showthread.php?t=161411

This has native VS support.

asarian
14th April 2016, 06:45
^^ Thanks. ;) That looks very promising!

asarian
14th April 2016, 13:59
Alas, F3kdb doesn't appear to be 64-bit. ( I should have mentioned I was looking for a 64-bit debander.

l33tmeatwad
14th April 2016, 14:04
It's available in both x86 and x64 for AviSynth and VapourSynth. All the binaries can be found here (https://www.nmm-hd.org/newbbs/viewtopic.php?f=7&t=239) (VapourSynth is the 2.0 release).

asarian
14th April 2016, 14:32
It's available in both x86 and x64 for AviSynth and VapourSynth. I'm not sure if there are binaries for VapourSynth, but you can compile an x64 from the source.

Well, YOU probably can. :) Me? Did a lot of compiling in FreeBSD, but in Windows I generally just click.

I was planning on installing Visual Studio 2015 as it is, so this might be a good first project.

Reel.Deel
14th April 2016, 14:46
You can find f3kdb binaries here also: https://www.nmm-hd.org/newbbs/viewtopic.php?t=1590

asarian
15th April 2016, 09:33
You can find f3kdb binaries here also: https://www.nmm-hd.org/newbbs/viewtopic.php?t=1590

No 64-bit binaries, though. (At least, I don't see them. It's a Japanese site, though, so it's hard to tell). Keep getting this error (from the f3kdb_2.0pre2 package):


Python exception: There is no function named F3kdb
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1491, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:26897)
File "f:\jobs\test.vpy", line 11, in <module>
vid = core.f3kdb.F3kdb (vid, y=49, dither_algo=2)
File "src\cython\vapoursynth.pyx", line 1264, in vapoursynth.Plugin.__getattr__ (src\cython\vapoursynth.c:23480)
AttributeError: There is no function named F3kdb

Are_
15th April 2016, 09:45
The three links people linked to you all of them contain 64bit binaries, two in Chinese and one in English.

The error is telling you the name of the function your are calling does not exist, it should be:

vid = core.f3kdb.Deband(vid)

f3kdb online help (https://f3kdb.readthedocs.org/en/latest/usage.html)

asarian
15th April 2016, 09:58
The three links people linked to you all of them contain 64bit binaries, two in Chinese and one in English.

The error is telling you the name of the function your are calling does not exist, it should be:

vid = core.f3kdb.Deband(vid)

f3kdb online help (https://f3kdb.readthedocs.org/en/latest/usage.html)


Okay, thx. :)

In my defense, I took that line straight off the test.vpy included with the package:

import vapoursynth as vs
import sys

core = vs.Core()
core.std.LoadPlugin(r"D:\Microsoft Visual Studio 10.0\Projects\ffms2_src\build-msvc\Win32\Release\ffms2.dll")
core.std.LoadPlugin(r"D:\Dropbox\Projects\flash3kyuu_deband\Debug\flash3kyuu_deband.dll")
core.std.LoadPlugin(r"D:\VapourSynth\filters\histogram.dll")

last = core.ffms2.Source(r"E:\torrent\20100228 pokemon ranger.mp4")
last = core.f3kdb.F3kdb(last, y=49, output_depth=10, dither_algo=2)[:10]
# last = core.hist.Luma(last)

last.output(sys.stdout, y4m=True)

Bloax
15th April 2016, 14:18
Nice file location. :D

asarian
16th April 2016, 22:43
Works great! :)

Any chance we'll ever see KNLMeansCL support on F3kdb for the 'opt' paramater?

Leinad4Mind
25th April 2016, 20:08
I was hoping to see GradFun3 for vapoursynth. Since I wanted a Ordered Dither. Does flash3kyuu_deband do ordered dither, or it works like GradFun2DBmod?

Mystery Keeper
25th April 2016, 20:10
I was hoping to see GradFun3 for vapoursynth. Since I wanted a Ordered Dither. Does flash3kyuu_deband do ordered dither, or it works like GradFun2DBmod?
clip = core.f3kdb.Deband(clip, dither_algo=2)You should read the documentation before asking questions about a plugin.

Leinad4Mind
25th April 2016, 20:23
Thanks! I just didnt had time today to check that. But thanks a lot for the quick reply. I'll put encoding and compare with gradfun3 on avisynth. Hope to be similar result. :)

Mystery Keeper
25th April 2016, 20:27
Thanks! I just didnt had time today to check that. But thanks a lot for the quick reply. I'll put encoding and compare with gradfun3 on avisynth. Hope to be similar result. :)Also, you can process your clip in 16 bits and then use f3kdb.Deband to deband AND dither down to 8 bits.