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

# tsplay(1)

stream a file

## NAME

**tsplay** – stream a file

## SYNOPSIS

**tsplay** **-help** \[*subject*\]

**tsplay** \[**-details**\] \[**-err stdout**\] \[**-err stderr**\] \[**-quiet** \| **-q**\] \[**-verbose** \| **-v**\] \[**-loop**\] \[**-max** *max\_pkts* \| **-m** *max\_pkts*\] \[**-mcastif** *mcast\_if* \| **-i** *mcast\_if*\] \[**-tcp** \| **-udp**\] *in\_file* \| **-stdin** *host*\[:*port*\] \| **-output** *out\_file* \| **-o** *out\_file* \| **-stdout**

## DESCRIPTION

Act as a server which plays the given file (containing Transport Stream or Program Stream data). The output is always Transport Stream.

### Input

- *in\_file*

  Input is from the named H.222 TS file.

- **-stdin**

  Input is from standard input.

### Output

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

  Normally, output is to a named host. If *port* is not specified, it defaults to 88. Output defaults to UDP.

- **-o** *out\_file*, **-output** *out\_file*

  Output is to file *out\_file*.

- **-tcp**

  Output to the host is via TCP.

- **-udp**

  Output to the host is via UDP. \[default\]

- **-stdout**

  Output is to standard output. Forces **-quiet** and **-err stderr**.

- **-i** *mcast\_if*, **-mcastif** *mcast\_if*

  If output is via UDP, and *host* is a multicast address, then *mcast\_if* is the IP address of the network interface to use. This may not be supported on some versions of Windows.

### General Switches

- **-details**

  Print out more detailed help information, including some less common options.

- **-err stdout**

  Write error messages to standard output (the default)

- **-err stderr**

  Write error messages to standard error (Unix traditional)

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

  Output additional diagnostic messages

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

  Suppress informational and warning messages

- **-help**

  Summarise the *subject*s that can be specified

- **-help** *subject*

  Show help on a particular subject

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

  Maximum number of TS/PS packets to read. See -details for more information.

- **-loop**

  Play the input file repeatedly. Can be combined with **-max**.

## SEE ALSO

[tsinfo(1)](/tsinfo/1.md), [pcapreport(1)](/pcapreport/1.md)
