gv45 gv45

TS to MP4 Converter - Convert MPEG-TS to MP4 Online

Convert MPEG Transport Stream (.ts) files to MP4 format entirely in your browser. No uploads, no server processing.

Supported formats: .ts, .mts, .m2ts (MPEG Transport Stream)

Privacy: All processing runs in your browser. We never upload your files.

How It Works

Understanding TS and MP4 Containers

Video files consist of two main components: the container format and the encoded media streams inside. The container is like an envelope that holds video, audio, and metadata together. Two of the most common container formats in streaming and video production are MPEG Transport Stream (TS) and MP4 (MPEG-4 Part 14).

The MPEG Transport Stream (.ts) format was originally designed for broadcasting over unreliable networks such as satellite, cable, and terrestrial television. Its key design principle is error resilience: each 188-byte packet is self-contained with synchronization markers, allowing decoders to recover quickly from transmission errors. This makes TS ideal for live streaming protocols like HLS (HTTP Live Streaming), where video is split into small .ts segments that can be independently decoded. However, TS files lack efficient random-access seeking and carry overhead from their packet-based structure.

The MP4 container, based on the ISO Base Media File Format (ISO 14496-12), was designed for storage and on-demand playback. It uses an atom/box structure with a central index (the moov atom) that enables instant seeking to any point in the file. MP4 supports rich metadata including chapters, subtitles, and cover art. Nearly every media player, video editor, and mobile device natively supports MP4, making it the universal format for video storage and sharing.

How Browser-Based Conversion Works

This tool uses ffmpeg.wasm, a WebAssembly port of the FFmpeg multimedia framework. WebAssembly (Wasm) allows compiled C/C++ code to run at near-native speed inside your browser's sandboxed environment. When you initiate a conversion, the following steps occur:

  1. Lazy Loading: The ffmpeg.wasm binary (~31MB) is downloaded only when you click "Start Conversion" for the first time. This ensures the page loads instantly without unnecessary bandwidth usage.
  2. File Reading: Your selected .ts file is read into the browser's memory using the File API. The data never leaves your device.
  3. Remuxing: FFmpeg performs a container remux operation (-c copy), which copies the video and audio streams from the TS container into an MP4 container without re-encoding. This preserves original quality and completes in seconds.
  4. Output Generation: The resulting MP4 file is created in browser memory and offered as a download link. No server interaction occurs at any point.

Why Remux Instead of Re-encode?

Since both TS and MP4 containers typically hold the same codecs (H.264 video and AAC audio), converting between them does not require re-encoding the actual media data. A remux operation simply repackages the existing compressed streams into a different container structure. This approach is dramatically faster than re-encoding (seconds vs. minutes), produces zero quality loss, and requires minimal CPU resources. The output file will be slightly smaller than the input because MP4's container overhead is lower than TS's packet-based structure.

The entire process leverages your device's processing power through WebAssembly, providing a private, fast, and free conversion experience without any software installation or account registration.

Use Cases

HLS Stream Segment Conversion

Convert .ts segments downloaded from HLS streams into MP4 files that can be played in any media player or imported into video editing software.

Mobile Device Compatibility

Many mobile devices and apps cannot play .ts files directly. Convert them to MP4 for universal playback on iOS, Android, and smart TVs.

Video Editing Preparation

Prepare broadcast recordings or DVR captures in .ts format for import into video editors like Premiere Pro, DaVinci Resolve, or Final Cut Pro.

Social Media Upload

Convert .ts recordings to MP4 before uploading to platforms like YouTube, Twitter, or Instagram that require MP4 format.

Storage Optimization

MP4 containers have less overhead than TS. Converting archived .ts recordings to MP4 can reduce file size by 1-3% while improving seek performance.

Frequently Asked Questions

TS (Transport Stream) is a container format designed for broadcasting and streaming, optimized for error recovery in unreliable transmission. MP4 is a container format designed for storage and playback, with better metadata support and wider device compatibility. Both can hold the same video and audio codecs (like H.264/AAC), but MP4 is more universally supported by media players and editing software.

No. The entire conversion process runs locally in your browser using WebAssembly (ffmpeg.wasm). Your video file never leaves your device. There is no server-side processing involved, ensuring complete privacy.

The maximum file size depends on your device's available RAM since the conversion runs entirely in your browser. Most modern devices can handle files up to 2GB. For very large files, you may experience slower performance or memory limitations on devices with less than 4GB of available RAM.

No. This tool performs a container remux, not a re-encode. It copies the video and audio streams from the TS container into an MP4 container without any transcoding. The video quality, resolution, bitrate, and codec remain exactly the same.

This converter works in all modern browsers that support WebAssembly and SharedArrayBuffer, including Chrome 89+, Firefox 79+, Edge 89+, and Safari 15.2+. For best performance, use the latest version of Chrome or Edge.

Related Tools & Articles

Related Tools