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

# tsfilter.tstools(1)

Output a filtered or truncated version of a transport stream

## NAME

**tsfilter** – Output a filtered or truncated version of a transport stream

## SYNOPSIS

**tsfilter** \[**-verbose** \| **-v**\] \[**-i** *in\_file*\] \[**-o** *out\_file*\] \[**-max** *max\_pkts* \| **-m** *max\_pkts*\] \[**-!** \| **-invert**\] *pid\_no* \[*pid\_no*\] ...

## DESCRIPTION

Filter the given *pid\_no*s out of stdin and write the result on stdout.

- **-i** *in\_file*

  Take input from this file and not stdin.

- **-o** *out\_file*

  Send output to this file and not stdout.

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

  Be verbose.

- **-m** *max\_pkts,* **-max** *max\_pkts*

  All packets after the nth are regarded as not matching any pids.

- **-!**, **-invert**

  Invert whatever your decision was before applying it - the output contains only pids not in the list up to max packets and all packets in the input from then on.

## SEE ALSO

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