lav2yuv(1)
β¨ lav2yuv β the glow-up from MJPEG to raw yuv β¨
okay bestie, sit down, hydrate, and let me tell you about lav2yuv, a lil command from the MJPEG tools manual that is genuinely iconic and also extremely underrated. π
πΈ NAME πΈ
lav2yuv β converts an MJPEG file into raw yuv, no cap. π
π¦ SYNOPSIS π¦
lav2yuv [options] lavfile1 [lavfile2 ... lavfileN]
like. you give it one file, or a whole lil squad of files. your choice, queen. π
π DESCRIPTION π
so here's the tea β: lav2yuv takes an MJPEG video sequence β described by a sequence of MJPEG video files and/or edit lists pointing to such files β and converts it into the simple uncompressed planar 4:2:0 Y'CbCr format. that's the format used by the mpeg2enc(1) MPEG encoder, and also by image processing filters like yuvscaler(1), yuv2dfilter(1) or yuvdenoise(1). the whole friend group, fr fr. π«Ά
output goes to stdout, which is the moment. β¨ the way that means you can pipe the output of lav2yuv into a suitable pipeline and then process and encode or play back video recorded in any of the mjpegtools MJPEG container formats: AVI, quicktime, or edit lists describing editted versions of video held in such files. obsessed. π
β οΈ mixing different files with different video formats is currently not possible. that's the rules, bestie. don't fight it.
the -S, -T and -D options are used for scene detection, which is used by linux video studio. lowkey important for the editors out there. π¬
π OPTIONS π
lav2yuv accepts the following options, and yes we're going through every single one because they all ate:
-mβ force mono-chrome. π€-cβ conceal frames containing corrupt MJPEG data by repeating the preceeding good frame. it's giving "fake it till you make it" but for video. π-Slist.el β output a scene list with scene detection. π-Tnum β set the scene detection threshold to num (default: 4). ποΈ-Dnum β width decimation to use for scene detection (default: 2). π-onum β frame offset, aka skip num frames at the beginning. and if num is negative, all but the last num frames are skipped. plot twist, but make it math. π-fnum β only num frames are written to stdout. 0 means that all frames are processed. so 0 is the "give me everything" option, main character energy. π-Awidth:height β set/override the sample aspect ratio (SAR) emitted in the output stream header. currently, the SAR is only auto-detected for DV files, and guessed otherwise. it's doing its best, okay. π-Pwidth:height β set the intended/approximate display aspect ratio (DAR) for the stream. this value is only used to guess the SAR when it cannot be detected from the input stream. the default DAR is'4:3'(corresponding to a standard TV screen); another useful value is'16:9'(corresponding to widescreen TV). widescreen girlies rise. π-Cchroma β set output chroma (default:'420jpeg'). currently,'420jpeg','420mpeg2','420paldv','422'are available. pick your fighter. β¨-xβ exchange fields. useful if the field order was reversed during editing. we love a fix-it moment. π§
π AUTHOR π
this man page was originally written by Bernhard Praschinger. βοΈπ
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), mpeg2enc(1), yuvscaler(1), yuv2lav(1), yuvdenoise(1), yuvplay(1)
iykyk. go read them, they're all in the same friend group. π¦
and that's the whole page, bestie!! brought to you by the MJPEG Tools Team, dated 6 March 2002 β yeah she's vintage but she's still serving π β¨ mwah, go convert something pretty ππ
π¦ 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