Log in

View Full Version : Dering [VHS Deringing Plugin]


Reel.Deel
16th November 2022, 09:34
First off, big thanks to gispos for taking the time to compile this plugin and for not giving up after encountering some problems.

I found this plugin about a year ago and I added it to the wiki. But for some reason I could never get the plugin to work because it required some obscure Delphi dependency (userlib.bpl). Time went on and I forgot about the plugin and then I saw the "Remove halo and ghost effects (https://forum.doom9.org/showthread.php?t=184497)" thread and it reminded me about the plugin again. A few days after that I saw gispos mention Delphi so I contacted him and he was quite helpful and in the end managed to get the plugin compiled and most importantly, it works with AviSynth+ x64 :).

Download: dering_32_64.7z (https://files.videohelp.com/u/223002/dering_32_64.7z) /// archived (https://web.archive.org/web/20221116075932if_/https://files.videohelp.com/u/223002/dering_32_64.7z)

Bugs and limitations

The 32-bit version does not work with AviSynth+, only AviSynth 2.6. If 32-bit avs+ ever gets support for then "avisynth_c_plugin_init" export then it will work.
Input clip must be named, for example: Dering(last) or Dering(src=last), if not an error is given or it crashes.
Not compatible with MT mode 1 or 2, both crash with an access violation. Only mode 3 works but it's a bit slower than single threaded.
Crashes if SeparateFields() is used on the input clip.
"a" parameter must be less than 1.0 or you will get an error message: "Avisynth open failure: E" - see note below.
"w" parameter must be greater than 1.5 or you will get an error message: "Avisynth open failure: E" - see note below.
Stray white dot artifacts on luma levels less than 16, use Limiter() before hand.
Parameters PostFilterArea, Dump, Edges, UseEmphasis, OutPlane do not do anything.
Some defaults in the original documentation are wrong, I fixed them in the html docs but check the wiki for corrections: http://avisynth.nl/index.php/Dering
The orginal package contained "deringSample.exe", it's some sort of a gui for the filter and displays a graph. gispos managed to compile it but I can't get it to work, thus it's not included.
Note: parameters "a" and "w" not displaying the correct error message is a byproduct of the new compile. When compiled with Delphi 7, error messages are correct.


Before and after with the settings given in the docs:
https://i.ibb.co/Q6XNSsK/dering-before-after.png

If you encounter any problems, please share.

kedautinh12
16th November 2022, 10:06
This plugin only use for VHS??

Frank62
16th November 2022, 13:00
Looks interesting for a special VHS I have in mind. Will it work also with "multiple echo-"ringing (6 to 8 rings)? I will try...

lollo2
16th November 2022, 14:41
Thanks Reel.Deel!

I tried to dehalo that sample without success, if not blurring everything: https://www.digitalfaq.com/forum/video-restore/13041-removal-script-ghosts.html

Selur
16th November 2022, 15:35
Any change of a Vapoursynth port?

Reel.Deel
16th November 2022, 17:01
Looks interesting for a special VHS I have in mind. Will it work also with "multiple echo-"ringing (6 to 8 rings)? I will try...

I don't know. The only sample I've tried it on is the video on the first post.

Any change of a Vapoursynth port?

0% from me. I'm not the author nor a programmer :p

The plugin was released back in 2010, I think no one used it or got it to work because of the Delphi dependency. I only found one instance in the German Doom9 forum.

johnmeyer
16th November 2022, 23:51
Looks very intriguing. Thanks!