Linux command
ppmtoyuvsplit 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Split PPM into YUV component files
ppmtoyuvsplit [base] [input.ppm]
Read from stdin
cat [input.ppm] | ppmtoyuvsplit [base]
说明
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.
FAQ
What is the ppmtoyuvsplit command used for?
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.
How do I run a basic ppmtoyuvsplit example?
Run `ppmtoyuvsplit [base] [input.ppm]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more ppmtoyuvsplit examples?
This page includes 2 examples for ppmtoyuvsplit, plus related commands for nearby Linux tasks.