~/.config/mpv/vapoursynth/flash3kyuu.vpy
# vim: set ft=python:
## Use flash3kyuu to deband the video, with reasonable (mildly grainy) default settings. Obsolete: mpv now ships with a similar debanding filter as shader.
import vapoursynth as vs
core = vs.get_core()
clip = video_in
clip = core.std.Trim(clip, first=0, length=500000)
clip = core.f3kdb.Deband(clip, output_depth=16, dynamic_grain=True, grainy=16, grainc=16)
clip.set_output()