LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmtoyuvsplit

Split PPM into YUV component files for MPEG encoding

TLDR

Split PPM into YUV component files
$ ppmtoyuvsplit [base] [input.ppm]
copy
Read from stdin
$ cat [input.ppm] | ppmtoyuvsplit [base]
copy

SYNOPSIS

ppmtoyuvsplit basename [ppmfile]

DESCRIPTION

ppmtoyuvsplit reads a PPM image and produces three separate raw output files: basename.Y (luminance), basename.U, and basename.V (chrominance). The output is subsampled YUV as required by the Stanford MPEG codec, with YUV values scaled according to CCIR.601.The Y file contains one byte per pixel. The U and V files use 4:1 downsampling — each byte represents a 2x2 block of pixels (the arithmetic mean of those 4 pixels). As a result, the Y file is four times the size of the U or V file.Part of the Netpbm toolkit.

PARAMETERS

basename

Base name for output files. Produces basename.Y, basename.U, and basename.V.
ppmfile
Input PPM image file. Reads from stdin if omitted.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid