png2yuv(1)
β¨ png2yuv(1) β the MJPEG tools manual, but make it make sense β¨
okay bestie, sit down, we're learning a manual page π this one's png2yuv, from the MJPEG tools family, and it's here to turn your cute little PNG stills into a whole YUV4MPEG movie stream. no cap.
πΈ NAME πΈ
png2yuv β Convert PNG images to the YUV4MPEG stream format.
like literally, that's the whole job description π«Ά
π SYNOPSIS π
png2yuv [-b num] [-f num] [-I num] [-L num] [-n num] [-j filename]
heads up bestie: that's what the synopsis shows, but the OPTIONS section below has more flags than this β-Sand-vare down there too. read the whole thing, i'm begging π
π DESCRIPTION π
So here's the tea β png2yuv decompresses a sequence of PNG files and pipes the image data to stdout as a YUV4MPEG2 stream. Any 8bit/pixel PNG format supported by libpng can be read. periodt.
And the way stdout gets absolutely filled with the YUV4MPEG movie data stream? yeah, be prepared β you're gonna pipe it on to mpeg2enc or write it into a file. don't just let it spill onto your terminal, that's not the vibe π
π¨ real talk: this tool is incomplete. The alternative utility you are probably looking for is ppmtoy4m(1), which is also included in MJPEGtools. not me warning you before you commit, but like, i'm warning you π
β¨ OPTIONS β¨
png2yuv accepts the following options:
-b numβ Frame offset: skip output of the first num frames. (default:0) β¨ bye bye first frames-f numβ Set the frame rate of stream β accepts the same numbers. Not default, this option has to be specified. π no default bestie, you MUST say it-I numβ interlacing mode:p= none / progressivet= top field firstb= bottom field first
No default, this option has to be specified. π again, mandatory, no skipping
-L numβ0= non-interleaved (two successive fields per PNG file)1= interleaved fields
-S samp_modeβ chroma subsampling mode, only for professionals, for more info seeppmtoy4mand the YUV guide onhttp://www.mir.com/DMG/. default:420_jpegπ§ professionals only, i don't make the rules-n numβ Specifies the nummber of frames to process. (default: all =-1) π (yes, "nummber" β i'm keeping the typo, it's canon, it's iconic)-j {1}%{2}d{3}β Read PNG frames with the name components as follows:{1}PNG filename prefix (e g:picture_){2}Counting placeholder (like in C,printf, eg06)){3}File extension. Something like this:.pngA correct description of the files could look like this:picture_%06d.png
-v numβ Verbosity level (0,1or2) π
π BUGS π
The frame rate description does not seem to be up to date. The NTSC integer ratios are not supported (use floating point instead). As workaround specify a PAL (25) or native FILM (24) and set the right frame rate in mpeg2enc with the -F option. Interlaced handling is not implemented yet. π
like... it's giving workaround energy, but at least there's a workaround, yk?
π«Ά AUTHOR π«Ά
This man page was written by Gernot Ziegler.
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)
okay that's the whole page bestie, you ate π β¨ this lil manual dropped way back on 22 January 2020, brought to you by the MJPEG Tools Team β mwah, ty for your service ππ¦π
π¦ where this page comes from
- arch rolling: mjpegtools 2.2.1-4 Β· GPL-2.0-or-later
- 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 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