Avisynth MSharpen
MSharpen is a masked sharpener by Donald Graft: it finds edge detail and sharpens only those pixels, so noise in flat areas is not amplified. It was made for anime but also works on normal video.
Filtering → Avisynth → Sharpen

What it does
The filter builds an edge mask from the picture. Threshold decides which pixels count as edge detail; only these are sharpened, with the amount set by Strength. Everything else stays as it is. With Mask on, the mask is shown as white on black, which helps to set the threshold and can also serve as a simple edge detector.
Typical uses:
- Sharpen anime or other clean line art without amplifying grain.
- Sharpen soft video while leaving flat, noisy areas alone.
Settings
| Control | Parameter | Range | Hybrid default | Meaning |
|---|---|---|---|---|
| Threshold | threshold | 0–255 | 15 | Decides what counts as edge detail. Use Mask to see the selection. |
| Strength | strength | 0–255 | 100 | How strongly the edge areas are sharpened; 255 is the strongest. |
| HighQ | highq | on/off | on | On: better detail detection. Off: fastest. |
| Mask | mask | on/off | off | Shows the sharpened areas as white on black instead of the picture. |
Example
Default settings on a 10-bit YUV 4:2:0 source. MSharpen only handles 8 bit, so Hybrid converts down and back up:
# Converting from 10 to 8bit for MSharpen ConvertBits(8) MSharpen() # Converting from 8 to 10bit for encoder ConvertBits(10)
How Hybrid calls it
- Loads msharpen.dll and calls
MSharpen(threshold, strength, highq, mask). Each parameter is only written when it differs from the default in the table; these are the plugin's own defaults. - The plugin works at 8 bit only (RGB32, YV12, YV16, YV24, YV411). Hybrid converts higher bit depths to 8 bit before the filter and back afterwards.
- All color planes are processed; luma-only sharpening is not offered.
- MSharpen also offers the common options and can be added to the filter queue several times.
Background
- msharpen.dll is a 64-bit build of MSharpen 1.10 beta 2 by Donald A. Graft. The original documentation also lists a
debugparameter, which this build does not have. - The VapourSynth version, Vapoursynth MSharpen, is a different implementation with percent scales and other defaults; its values are not interchangeable with the 0–255 values here.
Sources
- MSharpen documentation (old AviSynth site)
- Hybrid's tooltips
- The AviSynth+ documentation does not cover MSharpen.