TS to MP4 Converter

Turn a .ts recording into an MP4 that browsers and phones play, in your browser.

or drop files here

TS

TS Format

MPEG transport stream

A packetized container used to carry synchronized media, including television program streams.

  • Transport packets
  • Several component streams possible
  • Not a guarantee of one codec
MP

MP4 Format

MPEG-4 Part 14

A multimedia container that organizes encoded streams and timing information for playback.

  • Audio and video streams
  • Different codec combinations
  • Not a single video codec

How to convert TS to MP4

Follow these steps to convert TS to MP4 online.

    1

    Choose your TS file, or several at once.

    2

    Wait while the converter turns each file into MP4.

    3

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

What to know before converting TS to MP4

  • The video is re-encoded with x264 (CRF 32, ultrafast) and the audio is AAC at 96 kbps.
  • The picture is limited to 1920 px and 30 fps, with sides rounded to even numbers.
  • A deinterlace filter is applied and +faststart is set.
  • FFmpeg's defaults choose the streams; the page maps none.
  • Each TS downloads as its own MP4.

About TS files

What is a TS file?

TS identifies an MPEG-2 transport stream, one of the system formats specified by ISO/IEC 13818-1. A transport stream doesn't define a picture codec. It multiplexes separately coded video and sound, and one stream can carry several programs with independent clocks. Its syntax uses timestamps to coordinate presentation and decoder buffering. Broadcast distribution and transmissions vulnerable to errors are important uses of TS. Besides television, TS is used for HLS segments in streaming and for footage from Blu-ray discs and camcorders, and its fixed 188-byte packets help streams survive transmission errors.

The usual extension is .ts and the registered media type is video/mp2t. You tend to meet it as a recording from a TV tuner, a stream or a capture, where the file is long and not tidy.

MP4 is the MPEG-4 Part 14 format, ISO/IEC 14496-14, first published in 2003. Typically it holds H.264 video and AAC audio, and all major browsers play it. That is the reason for the conversion: MP4 opens in places a .ts file doesn't. Because TS is a wrapper rather than a codec, the video inside may already be H.264. Even so, this page encodes it again, so the result is a new file with its own quality settings, not a copy of the original streams.

Programs that open TS files

Windows, Mac and Linux

  • FFmpeg: reads transport streams.
  • VLC media player: its input list includes TS.

Mobile

  • Android: the VLC app lists TS among its inputs, and decoding depends on the stream's media.

TS and MP4 compared

  • What it is: TS is a system format for multiplexed streams and broadcast. MP4 is a file container built on the ISO Base Media File Format.
  • Codecs: neither fixes the codec. An MP4 often has H.264 and AAC, and may use AV1, VP9, MP3 or Opus instead.
  • Programs: one TS can carry several programs. An MP4 normally holds one movie.
  • Playback: browsers play MP4; a .ts file needs a player that understands transport streams.
  • Timing: a TS leans on timestamps for presentation and decoder buffering, which suits a broadcast that may lose packets. An MP4 is built for files you store and play back.
  • Extensions and types: .ts and video/mp2t; .mp4 or .m4v and video/mp4.

This page encodes new video. In your browser, FFmpeg uses libx264 (preset ultrafast, CRF 32, tune zerolatency) for video and AAC at 96 kbps for audio, adds +faststart so the MP4 can start before it has fully loaded, and applies a deinterlace filter (yadif). The longer side stays at or under 1920 px and the frame rate at or under 30 fps. Sides round down to even numbers, which costs an odd dimension one pixel. No -map is passed, so FFmpeg's defaults pick the streams.

Other ways to convert TS to MP4

  • FFmpeg, copy: run ffmpeg -i input.ts -c copy output.mp4. It doesn't re-encode, so the streams stay as they are, but MP4 must be able to hold them.
  • HandBrake: choose Open Source, pick a preset, set the file name in Save As and the folder in To, then press Start. HandBrake's container page says it may switch an MP4 to the .m4v ending when AC3 pass-through, SRT subtitles or chapter markers are on, and a preference turns that off.
  • VLC: under Media > Convert/Save, add the recording, select the Video - H.264 + MP3 (MP4) profile, name a destination and start. The profile's name says MP3 sound.

Problems with TS files

  • It won't play in a browser: browsers read MP4 rather than TS, so this is expected and not a fault in the file.
  • The codec isn't supported: recognizing the TS wrapper doesn't settle which codec decodes its audio or video.
  • Glitches or jumps in the picture: a TS is built to survive transmission errors, but lost packets can still leave flaws. The MP4 follows the stream as written, so it shows the same flaws. Try another copy of the recording.
  • The MP4 is smaller than the TS: the picture is capped in size and frame rate, and CRF 32 compresses hard.
  • Fine detail looks worse: the video is encoded again. Convert from the original TS each time.
  • A long recording is slow: the conversion is single-threaded in your browser, so a longer file means a longer wait.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert TS to MP4?

How do I convert .ts to MP4 on my computer?

Is converting TS to MP4 lossless?

Will my 4K recording stay 4K?

Why does the MP4 start playing before it finishes loading?

Which video and audio streams does the MP4 get?

Why is the converted video softer than the broadcast?

Can I convert more than one TS recording?

Does it work for a very long recording?

Why does the TS file not play in my browser?