What is an MTS File?

An MTS file is an MPEG transport stream file, commonly produced by AVCHD cameras. Camera recordings use the Blu-ray-derived variant whose 192-byte source packets add a four-byte timestamp header to each standard 188-byte packet. The stream stores compressed video, audio, timing information, and related stream data in a transmission-oriented container.

How MTS Files work

Files ending in .mts are typically camera-recorded transport streams inside an AVCHD directory structure. AVCHD reuses the Blu-ray BDMV layout with short 8.3 file names, so .MTS is the short form of .m2ts and the two extensions do not indicate different containers. The stream packetizes video and audio with clock references, timestamps, and stream tables, and in AVCHD recordings each 188-byte transport packet is preceded by a 4-byte extra header that holds a 30-bit timestamp and two copy-control bits. AVCHD adopts MPEG-4 AVC/H.264 video with either compressed Dolby Digital or uncompressed linear PCM audio. Playlist and clip-information files elsewhere in the card hierarchy describe the recordings, so a standalone stream is not the whole camera package. In post-production, ingest software detects the packet size first, because the sync byte of a 192-byte source packet sits at offset 4, and then probes the codecs before preserving, remuxing, or transcoding according to editor support.

Key facts

  1. AVCHD places MTS clips under BDMV/STREAM, next to PLAYLIST and CLIPINF directories, which is the Blu-ray layout with 8.3 names (.MTS, .MPL, .CPI for .m2ts, .mpls, .clpi). In the Blu-ray format each stream file has exactly one clip information file holding the timestamps of its access points, and playlists refer to clips. Copying only the MTS files discards that data, which players and tools that navigate by playlist rely on.
  2. Do not infer the packet size from the suffix. FFmpeg’s transport stream demuxer measures whether a file uses 188-, 192-, or 204-byte packets, and TSDuck notes that auto-detection can fail in rare cases when the first timestamp begins with the sync value 0x47. In the other direction, FFmpeg registers mts for its transport stream muxer but switches to 192-byte packets automatically only for a .m2ts output name, so an .mts file it writes has plain 188-byte packets unless mpegts_m2ts_mode is enabled.
  3. The AVCHD format adopts H.264 video with Dolby Digital (AC-3) or linear PCM audio. The audio channel count depends on the camera model: Sony’s Handycam guide lists Dolby Digital 2-channel for some models and 2-channel or 5.1-channel for others. The suffix guarantees none of this, since any transport stream can be saved under .mts. Read the stream types and audio channel layout from the file before choosing between remuxing and transcoding.
  4. One long recording can span several MTS files: Sony documents an AVCHD file size limit of about 2 GB, after which the camera starts a new file automatically. Transport streams with the same codecs and codec parameters can be joined at the file level, but timestamps are not guaranteed to continue across separately recorded clips. MPEG-2 systems permits time-base discontinuities, FFmpeg flags the format as allowing them, and the 33-bit, 90 kHz presentation timestamp wraps after about 26.5 hours. Check timestamps after joining clips.

When MTS Files matter

Inspect the packet size and codecs of MTS files before moving camera footage into editing or web-delivery workflows. Copy the whole AVCHD folder, not only the clips, and expect one long recording to arrive as several files. Remux compatible streams to avoid quality loss, or transcode when the target editor or player lacks support.

How Transloadit helps with MTS Files

Transloadit’s audio and video formats table lists mpegts (MPEG-2 Transport Stream) as a format its FFmpeg-based Robots, such as /video/encode, can read and write.

The table is paginated and sorted by name, so the mpegts row is on a later page. It does not mention 192-byte AVCHD packets or AVCHD folders, so test with your own camera files.

Explore Transloadit’s file formats & compression capabilities

Sources

Turn media knowledge into a working pipeline

Connect uploads, processing, AI, storage, and delivery through one declarative API — with the encoding stack, scaling, and format churn handled for you.

Try Transloadit for free