---
name: "ppm2raw"
section: "1"
platform: "linux"
package: "smilutils"
version: "0.3.2+cvs20070731-4.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ppm2raw"
---

# ppm2raw(1)

Convert a PPM pipe to a Raw DV stream

## NAME

ppm2raw - Convert a PPM pipe to a Raw DV stream

## SYNOPSIS

**ppm2raw** \[ **options** \]

## DESCRIPTION

**ppm2raw** converts a PPM to a Raw DV stream.

## OPTIONS

- **-n**

  NTSC output required.

- **-a**

  Maintain aspect ratio when scaling images.

- **-s**

  Scale images to the full frame size, regardless of aspect ratio

- **-w**

  Wide screen output (default: off).

- **-p** *number*

  Number of encoder passes (default is 3).

- **-q** *qno*

  Encoder qno.

- **-b** *colour*

  Use the *colour* triple for backgrounds - default is 000000. Format must be a hex string representing red, green, blue. For example, ffffff would be  white.

- **-A** *wav*

  Use the *wav* to dub the output. The wav file must contain stereo, 16 bit samples at a frequency of 32khz, 44.1khz or 48khz.

- **-2**

  Two pass encoding (default: off).

## HELP OPTIONS

- **--help**

  Show help message.

## EXAMPLES

ppm2raw needs a PPM input provided on stdin. Fortunately, many tools generate PPM on stdout.

For example, to re-encode any ffmpeg compatible file or stream format to a PAL Raw DV stream which rescales the images according to the aspect ratio of the input using the following command:

ffmpeg -i 'some-file' -f ppmpipe - \| \
 ppm2raw -a \> file.dv

For NTSC, you would add -n to the ppm2raw command.

## SEE ALSO

[**smilutils**(1)](/smilutils/1.md)

## AVAILABILITY

See http://kino.schirmacher.de/ for the latest version.

## AUTHORS

**ppm2raw** was written by Charles Yates \<charles.yates@pandora.be\>.
