Manatee

How to convert a TS transport stream to MP4 on a Mac

Converting a TS file to MP4 on a Mac is usually fast and often lossless, because the video inside most transport streams is already H.264, the same codec MP4 uses. When that is the case, the streams are copied into an MP4 container without being decoded, a step called remuxing that finishes in seconds and changes nothing. The simplest way is to drop the TS onto a converter, choose MP4, and let it handle the container swap. This post explains what a transport stream is, when the conversion keeps full quality, and how to do it.

What a TS transport stream is

TS stands for transport stream, the MPEG-2 transport stream format used to move video through the air and down a cable. Digital TV broadcasts, satellite and cable boxes, HDHomeRun tuners, DVR and PVR recordings, and some capture cards all produce .ts files. It is a close cousin of the .mts and .m2ts files that AVCHD camcorders write.

A transport stream was built for broadcasting, not for tidy storage. Instead of one clean header at the front, it is chopped into many small packets with timing markers sprinkled throughout, so a tuner can join a channel already in progress. That structure is robust over the air, but it is why the file feels awkward on a computer: it can be large, it sometimes carries several audio tracks or program streams, and it does not always seek smoothly. QuickTime Player may open some TS files and refuse others, and Preview and Photos will not touch them, which is why converting to MP4 makes the recording behave like a normal video.

When the conversion is lossless

The video stream inside a TS file is the thing that decides everything. Newer broadcasts and recordings use H.264, and some use HEVC. Both go straight into MP4, so the picture is copied over untouched and the conversion is lossless. Older standard-definition broadcasts often use MPEG-2 video, which MP4 can technically hold but which most phones and QuickTime will not play in that form, so MPEG-2 is re-encoded to H.264 for a file that actually works everywhere.

Audio in a transport stream is commonly AC-3 or MP2, sometimes AAC. AAC and AC-3 can ride along in an MP4 unchanged; MP2 is usually re-encoded to AAC. So a typical modern recording, H.264 video with AC-3 or AAC audio, converts to MP4 as a pure copy with no quality loss at all.

There is one wrinkle worth knowing. Because a transport stream scatters timing markers through the file and can contain gaps where reception dropped, a plain copy sometimes produces an MP4 whose audio and video drift out of sync or whose duration looks wrong. A good converter rebuilds the timestamps during the copy to keep sound and picture locked together, which is one reason converting is more reliable than simply renaming the file.

How to convert TS to MP4 on a Mac

With the open-source ffmpeg engine in Terminal, a lossless remux is one line. ffmpeg is not part of macOS by default, but a package manager installs it quickly. Type ffmpeg -i, drag the TS file onto the window, then add -c copy -fflags +genpts ~/Desktop/recording.mp4 and press Return. The -c copy copies the streams as they are, and +genpts regenerates clean timestamps so the result plays smoothly. If the video is MPEG-2, swap the copy for a re-encode with -c:v libx264 -crf 18 -preset slow -c:a aac.

To skip Terminal, Manatee does the same job from its window or the menu bar icon:

  1. Open Manatee and choose Convert.
  2. Pick MP4 as the target.
  3. Drop the TS file in, or several recordings at once. Each shows in the job list with progress.
  4. The MP4 lands next to the original, and the TS file is left in place.

Manatee copies the video when MP4 can hold it, re-encodes MPEG-2 when it cannot, and cleans up the transport stream timing so the finished MP4 seeks and syncs properly. Everything runs on the Mac, nothing is uploaded, and the ffmpeg engine is bundled, so there is nothing to install. It is a converter rather than an editor, so cutting out ad breaks or trimming the start and end is a job for other software after the conversion.

Size, sync, and multiple audio tracks

A lossless remux produces an MP4 that is close to the same size as the TS, because the streams are identical and only the packaging changed. If the MP4 comes out noticeably smaller, something was re-encoded, most likely MPEG-2 video or MP2 audio. That is expected and usually fine for playback.

If your recording had more than one audio track, for example a main mix and a described-audio or second-language track, a straight conversion keeps the first one and typically drops the rest, since MP4 for general playback expects a single track. That is normally what you want for a recording you just plan to watch.

Two habits keep quality high. First, convert directly from the original TS rather than from a copy that has already been through another tool, so you re-encode at most once. Second, if the finished MP4 needs to be smaller for a message or an upload, do that as a single deliberate step from the good MP4 rather than repeatedly, because every re-compression softens detail a little more.

Questions

Can I just rename the .ts file to .mp4?

No. The extension is only a label, and a transport stream is structured completely differently from an MP4. A player that ignores the name might stumble through it, but the timing markers and packet structure often cause sync problems or a file that will not seek. A real conversion rebuilds the container so it behaves.

Why is my converted MP4 almost the same size as the TS?

Because the conversion was lossless. The video and audio streams, which are nearly all of the bytes, were copied unchanged and only the container was swapped. A same-size file is the sign that no quality was lost.

The picture and sound are out of sync after converting. What went wrong?

Transport streams carry scattered timing markers and sometimes gaps from reception drops, and a naive copy can inherit that drift. Reconverting while regenerating the timestamps, which a proper converter does, locks the audio back to the video.

My TS file plays fine in some apps but not QuickTime. Do I still need to convert?

If you want it to play reliably in QuickTime, Photos, and on a phone, yes. Converting to MP4 gives you one file that every Apple app and device understands rather than one that only certain players will open.