TS to MKV Converter

Re-encode a TS recording as an H.264 and AAC Matroska file in your browser.

or drop files here

TS

TS Format

MPEG transport stream

A container standardized in MPEG-2 Systems (ISO/IEC 13818-1) for broadcasting. It splits video, audio and data into small fixed-size packets so streams survive transmission errors.

  • digital TV recordings
  • 188-byte packets
  • HLS segments
MK

MKV Format

Matroska video

An open, free container format that can hold unlimited video, audio, picture and subtitle tracks in one file. WebM is a subset of Matroska.

  • many tracks
  • chapters and metadata
  • open standard

How to convert TS to MKV

Follow these steps to convert TS to MKV online.

    1

    Choose your TS file, or several at once.

    2

    Wait while the converter turns each file into MKV.

    3

    Download each new MKV file. Your original file isn't changed.

What to know before converting TS to MKV

  • The video is re-encoded as H.264 and the audio as AAC at 96 kb/s.
  • The picture stays within 1920 px and 30 fps; a faster source loses frames but keeps its length.
  • An odd width or height loses 1 px.
  • For a copy without re-encoding, use FFmpeg -c copy or mkvmerge.

About TS files

What is a TS file?

A TS file holds an MPEG-2 transport stream, a system format from the ISO/IEC 13818-1 standard. Instead of defining a picture codec, it interleaves video and sound that were coded separately, cut into 188-byte packets. Several programs with their own clocks can share one stream.

Broadcast distribution and error-prone transmission are the important uses, and HLS streaming segments and Blu-ray and camcorder recordings rely on it too. Timestamps in the stream coordinate presentation and decoder buffering. The usual extension is .ts, with video/mp2t as the registered media type.

Programs that open TS files

  • Windows, Mac and Linux: FFmpeg reads transport streams, and on the Mac you use it from the command line.
  • Windows, Mac and Linux: VLC media player lists TS as one of its input formats.
  • Mobile: On a phone, VLC for Android lists TS input; decoding still depends on the media in the stream.

TS and MKV compared

  • Extensions: .ts and .mkv.
  • Purpose: TS suits broadcasting and survives transmission errors. Matroska is an open container for any number of video, audio, picture and subtitle tracks, and chapters and tags belong to its design.
  • Codecs: neither container prescribes a codec; Matroska doesn't fix a compression method or quality level.

On this page the video is rewritten as H.264 and the audio as AAC at 96 kb/s, with the picture held to 1920 px and 30 fps. IANA registers video/matroska as the media type for Matroska video.

Other ways to convert TS to MKV

  • FFmpeg: ffmpeg -i broadcast-segment.ts -c copy broadcast-segment.mkv copies the streams without re-encoding.
  • HandBrakeCLI: HandBrakeCLI -i recorder-input.ts -o recorder-output.mkv -f av_mkv -e x264 encodes the video with x264 into Matroska. HandBrake lists TS among the sources it reads.
  • MKVToolNix: mkvmerge -o channel-archive.mkv channel-capture.ts. mkvmerge reads MPEG transport streams.

Problems with TS files

  • Several programs in one stream: selecting the intended program matters.
  • The TS won't decode: recognizing the wrapper doesn't settle which codec its audio or video needs.
  • Damaged timing or missing packets: renaming the file won't fix them. FFmpeg usually logs the error and converts what it can read.

Frequently Asked Questions

Everything you need to know about our converter

Does TS to MKV re-encode the video?

What frame size and frame rate does the MKV have?

What happens to a TS above 30 fps?

How do I change containers without re-encoding?

My TS recording has errors. Will it still convert?

Is there a size limit or a time limit?

Can I convert several TS files at once?

How is the MKV named, and what happens to the TS?