y4munsharp(1)
y4munsharp π β¨
okay bestie, so this is the manual page for y4munsharp, one of the MJPEG tools, and it's basically the glow-up filter for your video streams π
β¨ NAME β¨
y4munsharp β the Unsharp filter for YUV4MPEG2 streams π¦
πΈ SYNOPSIS πΈ
y4munsharp [options]
that's it. that's the whole vibe. options only, no positional args, we're low maintenance π
π DESCRIPTION π
so y4munsharp is literally an implementation of the GIMP unsharp filter, except for YUV4MPEG2 streams instead of still images. iconic crossover moment fr π«Ά
the usual 3 parameters for unsharp mask processing β radius, amount and threshold β get specified on the command line. no config files, no drama.
by default only the Y' (luma) component is processed. the CbCr (chroma) can be processed too, but ONLY if you ask for it with a command line option. she doesn't do it unprovoked π
β οΈ output must be either to a pipe or a file. if you leave stdout as a terminal, that's an error and the program will exit. no cap. redirect it, bestie.
β¨ OPTIONS β¨
y4munsharp accepts the following options:
-v numβ set verbosity level (0 = quiet, 1 = normal, 2 = debug). default is 1, so normal-girl behaviour unless you say otherwise π-hβ print a usage summary and exit. the classic "help me" button π-L radius,amount,thresholdβ the Y' (luma) unsharp parameters. the radius and amount arguments are floating point numbers, and the threshold argument is an integer. default:3.0,0.3,4β¨-C radius,amount,thresholdβ the CbCr (chroma) unsharp parameters. bestie listen: the chroma is not processed unless this option is given, so this is a whole opt-in situation. arguments are the same type as for the-Loption above. default: none π-Nβ filtering can produce output outside the 16 to 240 range for Y' and 16 to 235 for CbCr. by default, values outside the legal range get clipped/cored (so values over 240 for Y' are set to 240, for example). using-Nuses the limits 0 and 255 instead π₯
π¦ EXAMPLES π¦
a mild setting, she's being gentle:
y4munsharp -L 2.0,0.3,0
an aggressive setting, she's in her main character era:
y4munsharp -L 5.0,0.5,0
π§ NOTES π§
the radius, amount, threshold parameters mean the exact same thing as GIMP's unsharp plugin. which is actually so useful β it means you can open the GIMP on selected frame still images to figure out suitable settings for y4munsharp. test on a still, then run it on the stream. iykyk π
the key thing to remember is to be subtle. you just barely want to notice the sharpening effect. if the effect is obvious (like, "jumps out at you" obvious π) then the parameters are set too aggressively. girl, dial it back.
the chroma is not processed for several reasons:
- the eye is much more sensitive to changes in brightness π
- the chroma is usually subsampled and doesn't contribute much to the perceived sharpness of an image β so not processing the chroma gives you a boost in speed of processing the image πβοΈ
- possible artifacting β changes in Y' just make an image brighter/darker, but changes in Cb or Cr can change colors and possibly lead to shifts in hue π
use the -C option to enable processing of the chroma planes. that's your permission slip π
π BUGS π
- only the 3 plane YUV4MPEG2 formats are supported. that's the whole list of supported formats, don't come for her.
- only progressive, top field first or bottom field first interlaced streams are handled. the mixed interlaced stream format is not supported. periodt.
that's the whole page bestie π«Ά this one comes from the MJPEG Tools Team and it's dated 11 November 2004 β vintage manual, still slaying, no notes β¨ππ
π¦ where this page comes from
- arch rolling: mjpegtools 2.2.1-4 Β· GPL-2.0-or-later
- debian bookworm: mjpegtools 1:2.1.0+debian-7
- debian trixie: mjpegtools 1:2.1.0+debian-8.1+b1
- fedora 43: mjpegtools 2.2.1-11.fc43 Β· GPL-2.0-or-later AND GPL-2.0-only AND GPL-1.0-or-later
- fedora 44: mjpegtools 2.2.1-12.fc44 Β· GPL-2.0-or-later AND GPL-2.0-only AND GPL-1.0-or-later
- nixos 26.05: mjpegtools 2.2.1
- nixpkgs unstable: mjpegtools 2.2.1
- opensuse-leap 16.0: mjpegtools 2.2.1-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: mjpegtools 2.2.1-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: mjpegtools 2.2.1-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: mjpegtools 2.2.1-160000.2.2 Β· GPL-2.0-only
- ubuntu jammy: mjpegtools 1:2.1.0+debian-6build1
- ubuntu noble: mjpegtools 1:2.1.0+debian-8.1build1
- ubuntu questing: mjpegtools 1:2.1.0+debian-8.1build1
- ubuntu resolute: mjpegtools 1:2.2.1-3
- ubuntu stonking: mjpegtools 1:2.2.1-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms