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

# m2ts2ts(1)

convert .m2ts to .ts

## NAME

**m2ts2ts** – convert .m2ts to .ts

## SYNOPSIS

**m2ts2ts** \[**-err stdout**\] \[**-err stderr**\] \[**-verbose** \| **-v**\] \[**-quiet** \| **-q**\] \[**-buffer** *buf\_pkts* \| **-b** *buf\_pkts*\] *in\_file* \| **-stdin** *out\_file* \| **-stdout**

## DESCRIPTION

Converts BDAV MPEG-2 Transport Stream file (M2TS) to an 'ordinary' TS file

### Files

- *in\_file*

  is a BDAV MPEG-2 Transport Stream file (M2TS)(but see **-stdin** below).

- *out\_file*

  is an H.222 Transport Stream file (but see **-stdout** below).

### General switches

- **-err stdout**

  Write error messages to standard output (the default)

- **-err stderr**

  Write error messages to standard error (Unix traditional)

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

  Output extra information

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

  Only output error messages

- **-stdin**

  Input from standard input instead of a file

- **-stdout**

  Output to standard output instead of a file. Forces **-quiet** and **-err stderr**.

- **-b** *buf\_pkts*, **-buffer** *buf\_pkts*

  Number of TS packets to buffer for reordering \[default = 4\]

## SEE ALSO

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