---
name: "esreverse"
section: "1"
platform: "linux"
package: "tstools"
version: "1.13~git20151030-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/esreverse"
---

# esreverse(1)

Report on the contents of an ES

## NAME

**esreverse** – Report on the contents of an ES

## SYNOPSIS

**esreverse** \[**-err stdout**\] \[**-err stderr**\] \[**-verbose** \| **-v**\] \[**-quiet** \| **-q**\] \[**-host** *host*\[:*port*\]\] \[**-max** *max\_frames* \| **-m** *max\_frames*\] \[**-freq** *frame\_freq*\] \[**-tsout**\] \[**-pes** **-\|-ts**\] \[**-server**\] \[**-x**\] \[**-h264** \| **-avc** \| **-h262**\] *in\_file* *out\_file* \| **-stdout**

## DESCRIPTION

Output a reversed stream derived from the input H.264 (MPEG-4/AVC) or H.262 (MPEG-2) elementary stream.

If output is to an H.222 Transport Stream, then fixed values for the PMT PID (0x66) and video PID (0x68) are used.

### Files

- *in\_file*

  is the input elementary stream.

- *out\_file*

  is the output stream, either an equivalent elementary stream, or an H.222 Transport Stream (but see Fl stdout No and Fl host below).

### Switches

- **-err stdout**

  Write error messages to standard output (the default)

- **-err stderr**

  Write error messages to standard error (Unix traditional)

- **-v**, **-verbose**

  Output additional (debugging) messages

- **-q**, **-quiet**

  Only output error messages

- **-stdout**

  Write output to \<stdout\>, instead of a named file. Forces **-quiet** and **-err stderr**.

- **-host** *host*\[:*port*\]

  Writes output (over TCP/IP) to the named \<host\>, instead of to a named file. If \<port\> is not specified, it defaults to 88. Implies **-tsout**.

- **-max** *max\_frames* \| **-m** *max\_frames*

  Maximum number of frames to read

- **-freq** *frame\_freq*

  Specify the frequency of frames to try to keep when reversing. Defaults to 8.

- **-tsout**

  Output H.222 Transport Stream

- **-pes**, **-ts**

  The input file is TS or PS, to be read via the PES to ES reading mechanisms

- **-server**

  Also output as normal forward video as reversal data is being collected. Implies **-pes** and **-tsout**.

- **-x**

  Temporary extra debugging information

### Stream type:

If input is from a file, then the program will look at the start of the file to determine if the stream is H.264 or H.262 data. This process may occasionally come to the wrong conclusion, in which case the user can override the choice using the following switches.

- **-h264**, **-avc**

  Force the program to treat the input as MPEG-4/AVC.

- **-h262**

  Force the program to treat the input as MPEG-2.

## SEE ALSO

[esdots(1)](/esdots/1.md),
