yuvmedianfilter(1)
π yuvmedianfilter(1) β the MJPEG tools manual, bestie edition π
okay so. you opened the manual for yuvmedianfilter, part of the MJPEG tools family. and honestly? she's giving glow-up filter for your yuv images. let's get into it π¦
β¨ NAME β¨
yuvmedianfilter β a filter for yuv images produced by the mjpeg tools
β¨ SYNOPSIS β¨
yuvmedianfilter [-r num] [-R num] [-t num] [-T num] [-I num] [-f] [-w
num] [-s num] [-v num] [-h]
β¨ DESCRIPTION β¨
so yuvmedianfilter is literally designed to enhance/filter images. she takes the input from STDIN and writes output to STDOUT. that's the whole vibe, no files, just pipes π
here's the tea on what she actually does: this filter looks around the current point for a radius and averages the values that fall inside a threshold. so the image is softened and the edges become more sharp. yes, both. she's multi-talented. β¨
if your input material is noisy (and ngl, it is always noisy, you just don't always see it π) the output images are improved and the encoder spends less bandwidth encoding noise. iconic behavior tbh.
the more sophisticated version of image filtering is yuvdenoise. but bestie, you can use both programs in the encoding procces. (their spelling, not mine, love them anyway π«Ά)
β οΈ heads up: it cannot process a recorded file and write the improved version to another file. she's a pipe girlie. STDIN in, STDOUT out, periodt.
β¨ OPTIONS β¨
yuvmedianfilter accepts the following options:
-r numβ Radius for luma median (default:2pixels)-R numβ Radius for chroma median (default:2pixels)-t numβ Trigger threshold for luma (default:2[0=disable])-T numβ Trigger threshold for chroma (default:2[0=disable])-I numβ Interlacing type (0=no,1=yes, default: taken from yuv stream)-fβ Fast mode, i.e. the threshold is ignored, and a simple mean of the surrounding values is calculated. she's not being careful, she's being quick π¨-w numβ In fast mode, the weight given to the current value versus the surrounding values. Default is8. Note that certain combinations of radii and weights have been optimized to be even faster -- radius1and weight2.667, radius1and weight8, and radius2and weight8. so if you pick one of those, you're lowkey getting the speedrun build π₯-c numβ In slow mode, more than this fraction of the pixels must be within the threshold; otherwise the pixel is simply the weighted mean of pixels within a radius of1. Default is0.33333.-s numβ Number of beginning frames to skip. The firstnumframes are written to stdout unfiltered. This is useful for resuming an interrupted job without having to duplicate work. (no redoing your homework, bestie, we don't do that here π)-v numβ Verbosity level (0,1or2)-hβ Print out a help message
π BUGS π
It is slow. Using a radius greater than the default of 2 is painfully slow.
like. painfully. we're talking waiting-for-your-iced-coffee-in-a-long-line slow. you have been warned. π
π AUTHOR π
This man page was written by Bernhard Praschinger.
The yuvmedianfilter program was written by Mike Bernson, and adapted to the yuv4mpeg2 stream header format by Steven M. Schultz.
If you have questions, remarks, problems or you just want to contact the developers, the main mailing list for the MJPEG-tools is:
mjpeg-users@lists.sourceforge.net
For more info, see our website at
http://mjpeg.sourceforge.net
π SEE ALSO π
mjpegtools(1), jpeg2yuv(1), lav2yuv(1), mpeg2enc(1), ppmtoy4m(1), yuv2lav(1), yuvdenoise(1), yuvscaler(1)
and that's the whole page, bestie π this one came out of the y4mutils corner of the world, dated 24 February 2003 β an absolute vintage icon, ahead of her time, still slaying. go forth and filter, and remember: radius 2 or you're gonna be waiting forever πβ¨
π¦ 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