jpeg2yuv(1)
β¨ jpeg2yuv(1) β¨ β the MJPEG tools manual, but make it a group chat π
okay bestie, sit down, hydrate, and let me tell you about jpeg2yuv π
this lil icon lives in the MJPEG tools manual and it's literally here to turn your JPEGs into YUV. no cap.
πΈ NAME πΈ
jpeg2yuv β Convert jpeg images to the yuv format. that's it, that's the job, she's a converter and she's serving π«Ά
π SYNOPSIS π
jpeg2yuv [-b num] [-f num] [-I num] [-A ratio] [-L num] [-n num] [-l
num] [-j filename]
π DESCRIPTION π
so here's the vibe: jpeg2yuv decompresses a sequence of JPEG files and pipes that image data to stdout as a YUV4MPEG2 stream. she's not picky either β any JPEG format supported by libjpeg can be read. queen behavior honestly π
stdout is gonna be absolutely filled with the YUV4MPEG2 movie data stream, so be prepared, bestie: pipe it on to mpeg2enc, or write it into a file. do not just let it scream into your terminal, it's giving chaos π
β¨ OPTIONS β¨
jpeg2yuv accepts the following options:
-b numβ Frame offset: skip output of the firstnumframes. (default:0) like, we're not starting at the beginning, we're starting at the vibe we chose π-f numβ Set the frame rate of stream, accepts the same numbers. No default, this option has to be specified. no default means no default, bestie, you will be typing this π-A ratioβ Sample aspect ratio. Default is square pixels (1:1) β¬-I numβ interlacing mode:p= none / progressivet= top field firstb= bottom field first
No default, this option has to be specified. again: mandatory. she needs to know your fields π§
-L numβ the field situation:0= non-interlaced (two successive fields per JPEG file)1= interlaced fields
-l numβ Specifies the number of loops (default:0loops). When this option is not used the given range of images is only processed once. If you use this option withnumof-1jpeg2yuv will loop forever, writing the image tostdout(forever is a long time, just so we're clear π₯). When you usen > 0it will loop n-times till it finishes. iconic.-j {1}%{2}d{3}β Read JPEG frames with the name components as follows:{1}JPEG filename prefix (e g:picture_){2}Counting placeholder (like in C,printf, eg06)){3}File extension. Something like this:.jpgA correct description of the files could look like this:picture_%06d.jpg
If this option is omited, the filenames are read from stdin. For example:
$ls *jpg | jpeg2yuv -f 25 -I p > result.yuv
(yes, "omited" is how it's spelled up in here, we don't gatekeep typos, we gatekeep flags π«Ά)
-R 1 or 0β rescale YUV color values from0-255to16-235(default:1) π-v numβ Verbosity level (0,1or2). pick your level of yapping π£οΈ
π BUGS π
The frame rate description seems not to be up to date. The NTSC integer ratios seem not to be supported. As a workaround specify a PAL (25) or FILM (24) and set the right frame rate in mpeg2enc with the -F option.
not me having to work around a bug in 2001 energy π but fr fr, that's the workaround, use it.
π AUTHOR π
This man page was 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), ppmtoy4m(1), yuv2lav(1), yuvdenoise(1), yuvmedianfilter(1), yuvscaler(1)
and that's the whole page, bestie!! brought to you by the MJPEG Tools Team, dated 8 December 2001 β yes she's an elder but she still ate π β¨ periodt. go convert something. π
π¦ 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