---
name: "ppmtoyuvsplit"
section: "1"
platform: "linux"
package: "netpbm"
version: "10.86.51-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ppmtoyuvsplit"
---

# ppmtoyuvsplit(1)

convert a PPM image to 3 subsampled raw YUV files

## NAME

ppmtoyuvsplit - convert a PPM image to 3 subsampled raw YUV files

## SYNOPSIS

**ppmtoyuvsplit** *basename* \[*ppmfile*\]

## DESCRIPTION

This program is part of **Netpbm**(1) .

**ppmtoyuvsplit** reads a PPM image as input.  Produces 3 raw files *basename*.Y, *basename*.U and *basename*.V as output.

The output files are the subsampled raw YUV representation of the input PPM image, as required by the Stanford MPEG codec.  The Y output file contains a byte for each pixel in the image, with the rows going from top to bottom and the columns within each row going left to right.  The U and V output files are arranged similarly, except that each byte represents a square of 4 pixels of the image.  The value is the arithmetic mean of the value for each of those 4 pixels.  Hence, the Y file is 4 times the size of the U file or V file.

The YUV values are scaled according to CCIR.601, as assumed by MPEG.

## OPTIONS

There are no command line options defined specifically for **ppmtoyuvsplit**, but it recognizes the options common to all programs based on libnetpbm (See \
  Common Options ⟨index.html#commonoptions⟩ .)

## SEE ALSO

[**yuvsplittoppm**(1)](/yuvsplittoppm/1.md) , [**ppmtoyuv**(1)](/ppmtoyuv/1.md) , [**ppmtoeyuv**(1)](/ppmtoeyuv/1.md) , [**ppmtompeg**(1)](/ppmtompeg/1.md) , **ppm**(1)

## AUTHOR

Copyright (C) 1993 by Andre Beck. (*Andre\_Beck@IRS.Inf.TU-Dresden.de*)

Based on ppmtoyuv.c

## DOCUMENT SOURCE

This manual page was generated by the Netpbm tool 'makeman' from HTML source.  The master documentation is at

-

  **http://netpbm.sourceforge.net/doc/ppmtoyuvsplit.html**
