How to convert TS to MP4
- Drop your .ts files. Drag the files, or the folder that holds them, onto the box above. You can also use the buttons to choose files or a folder.
- Check the order. Numbered pieces, such as
1.ts,2.tsand so on, are sorted by number. Make sure the list starts and ends where you expect. - Convert. Press Convert to MP4. Your browser copies the video and audio into a new MP4 file.
- Save. In Chrome and Edge on a computer, the file is written straight to disk as it converts. In other browsers, a Save file button appears when the file is ready.
TS vs MP4
TS (MPEG transport stream) is built for broadcasting and live streaming, which is why HLS streams often arrive as hundreds of small .ts pieces. MP4 is built for saving and sharing. Both are containers: wrappers that hold the video and audio, which are compressed separately with a codec such as H.264.
| TS | MP4 | |
|---|---|---|
| Container | MPEG transport stream: a long run of small, self-contained packets with no index | MPEG-4 Part 14: one file with an index that says where everything is |
| Where it is used | Broadcast TV and live streaming, including the pieces of many HLS streams | Saving, sharing, editing and uploading video |
| Seeking | Slow or imprecise, because players have to search the file | Fast, because the index tells the player where each moment is |
| File size | A little larger, because the packets repeat small headers throughout | A little smaller for the same video and audio |
| Compatibility | Plays in VLC and many media players, but some phones, editors and websites won't accept it | Plays almost everywhere: phones, computers, TVs, editors and websites |
Why no quality is lost
The tool remuxes the video. Remuxing means taking the compressed video and audio out of one container and putting them, unchanged, into another. Nothing is re-encoded, so the picture and sound are identical to the original, and it is much faster than re-encoding.
If you use the command line, this is the same thing ffmpeg does with stream copy:
ffmpeg -i input.ts -c copy output.mp4
The guide to saving streams with ffmpeg explains more of its options.
Limits
- Codecs. Because the video and audio are copied as they are, they must use codecs MP4 supports, such as H.264 or H.265 video and AAC or MP3 audio. Most streaming .ts files use H.264 and AAC. Files with other codecs need re-encoding with a desktop tool such as ffmpeg.
- Playback of H.265. An MP4 with H.265 (HEVC) video is a valid file, but whether it plays depends on your browser and device.
- Very large files. In Chrome and Edge on a computer, the file is written straight to disk. Other browsers build the whole file in memory first, so very large files need enough free memory. On a phone, very long videos are better converted on a computer.
- Encrypted pieces. Pieces saved from an encrypted stream can't be converted. m3u8.cloud never decrypts.
Your files stay on your device
Your browser reads the .ts files and builds the MP4 on your device. The files are never uploaded, and m3u8.cloud never sees them. The privacy policy has the details.
Have a stream link rather than files? Paste it on the home page to save it as MP4 directly. To join pieces without converting them, use Merge TS files.
Questions
Does converting TS to MP4 lower the quality?
No. The picture and sound are copied exactly; only the container around them changes. That's also why it's fast.
Are my files uploaded?
No. Your browser reads the files and builds the MP4 on your device. Nothing is sent to m3u8.cloud.
Is there a size limit?
In Chrome and Edge on a computer, the MP4 is written straight to disk, so the main limit is your free disk space. Other browsers build the file in memory, so a very large conversion can fail if your device runs out of memory.
Does it work on a phone?
Yes, in a mobile browser. Phones have less memory than computers, so very long videos are better converted on a computer.
Why won't my converted MP4 play?
Check the codecs. MP4 files with H.265 (HEVC) video don't play in every browser or on every device. If the file plays in VLC, the conversion worked and the player is the problem.