Avisynth vsMSharpen
vsMSharpen is an edge-directed sharpener. It builds an edge mask and sharpens only where the mask allows, so flat and noisy areas are left alone.
Filtering → Avisynth → Sharpen

What it does
The filter detects edges in the picture. Threshold sets how strong a difference must be to count as an edge; Strength sets how much sharpening is applied on those edges. Areas without edges stay as they are, which avoids amplifying noise or blocking in flat regions. Lower the threshold if important edges look blurred. With Mask enabled the filter returns the edge mask instead of the picture, which helps to tune the threshold.
Requirements
Windows only, CPU only. The plugin needs the Visual C++ 2022 runtime.
Settings
| Control | Parameter | Range | Hybrid default | Meaning |
|---|---|---|---|---|
| Threshold | threshold | 0.01–100 | 6.00 | Edge detection sensitivity in percent; independent of the bit depth. |
| Strength | strength | 0.01–100 | 39.00 | Amount of sharpening on edges. |
| Mask | mask | on/off | off | Return the edge mask instead of the sharpened picture. Planes that are not processed contain garbage then. |
| Luma | luma | on/off | on | Process the luma plane. |
| Chroma | chroma | on/off | off | Process the chroma planes. |
Example
Default settings on a 10-bit YUV 4:2:0 source. The plugin accepts the format directly, so Hybrid adds no conversion:
vsMSharpen()
How Hybrid calls it
- Hybrid loads vsMSharpen.dll and calls
vsMSharpen(threshold, strength, mask, luma, chroma). Each argument is only written when it differs from the plugin default, so default settings give a barevsMSharpen(). - The plugin works on integer YUV 4:2:0, 4:2:2 and 4:4:4 (8–16 bit) and YV411. Other formats are converted first.
- vsMSharpen also offers the common options and can be added to the filter queue several times.
Background
- The plugin is Asd-g's AviSynth port of the VapourSynth MSharpen plugin. It runs on AviSynth+ and AviSynth.
- Hybrid offers the older 8-bit plugin as a separate filter: MSharpen.
See also: Vapoursynth MSharpen
Sources
- AviSynth-vsMSharpen on GitHub
- Hybrid's tooltips
- The AviSynth+ documentation does not cover vsMSharpen.