Convert TS to MTS — Free Online Tool

Convert TS (MPEG-2 Transport Stream) files to MTS (AVCHD) format in your browser, re-encoding video with H.264 and audio with AAC — the native codec pair used by Sony and Panasonic AVCHD camcorders. This is useful when you need to repackage broadcast or streaming TS content into the AVCHD-compatible MTS structure for camcorder software, NLEs, or archival workflows.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

Both TS and MTS share the MPEG-2 Transport Stream container at the byte-stream level, but MTS files conform to the AVCHD specification, which mandates H.264 video and AAC or AC-3 audio. Because TS files may carry a wide range of codecs — including H.265, VP9, MJPEG, MP3, FLAC, or AC-3 — this conversion re-encodes the video stream to H.264 using libx264 and the audio to AAC using FFmpeg's native AAC encoder, regardless of the source codec. The result is an MTS file that conforms to AVCHD expectations. If your source TS already contains H.264 video and AAC audio, the re-encoding still occurs to ensure output conformance, though you could optimize locally with stream copy flags if you're confident in the source codec.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg executable — the open-source multimedia processing engine running here as WebAssembly in your browser via FFmpeg.wasm, performing the same conversion logic as the desktop command-line tool.
-i input.ts Specifies the input file as a TS (MPEG-2 Transport Stream), which may contain any combination of video codecs (H.264, H.265, VP9, MJPEG) and audio codecs (AAC, MP3, AC-3, FLAC) depending on the broadcast or streaming source.
-c:v libx264 Re-encodes the video stream to H.264 using the libx264 encoder, which is required by the AVCHD specification that MTS files conform to — regardless of whether the source TS already contains H.264 video.
-c:a aac Transcodes the audio stream to AAC using FFmpeg's native AAC encoder, converting from whatever audio codec the source TS carries (AC-3, MP3, FLAC, Opus, etc.) to the AAC format expected in AVCHD-compliant MTS files.
-crf 23 Sets the Constant Rate Factor for the H.264 encode to 23, the libx264 default, which balances file size and visual quality. Lower values (e.g., 18) produce higher quality and larger files; higher values (e.g., 28) reduce file size at the cost of visible compression artifacts in the MTS output.
-b:a 128k Sets the AAC audio bitrate to 128 kilobits per second, which is adequate for stereo broadcast audio. For multi-channel or high-fidelity source audio in the TS file, increasing this to 192k or 256k will better preserve audio quality in the MTS output.
output.mts Specifies the output filename with the .mts extension, which tells FFmpeg to write an MPEG-2 Transport Stream container formatted as an AVCHD MTS file — the format used natively by Sony and Panasonic camcorders and recognized by AVCHD-aware editing software.

Common Use Cases

  • Importing broadcast-recorded TS footage from a DVR or set-top box into Sony Vegas, Premiere Pro, or Final Cut Pro using their native AVCHD/MTS import pathways.
  • Repackaging an HLS or DVB transport stream segment captured from a live stream into MTS format for ingestion into Panasonic or Sony camcorder companion software.
  • Preparing TS video content for playback on Sony Blu-ray players or PlayStation consoles that recognize AVCHD MTS files but may not handle generic TS streams.
  • Archiving broadcast TS recordings into MTS format to organize footage alongside existing camcorder clips in an AVCHD folder structure on an external drive.
  • Converting a TS file with a non-standard codec (such as VP9 or MJPEG) into an H.264/AAC MTS file to enable editing in NLEs that have robust AVCHD support but limited codec coverage for raw TS.
  • Standardizing a mixed collection of TS recordings from different broadcast sources into a uniform H.264/AAC MTS format for consistent handling in a video archive workflow.

Frequently Asked Questions

Yes — this conversion always involves re-encoding, which is a lossy process even if your source TS already contains H.264 video and AAC audio. The default CRF value of 23 for libx264 produces visually good quality for most content, but each encode generation introduces some degradation. If your source TS has high-quality H.264 video, consider lowering the CRF to 18 or below to reduce visible quality loss, at the cost of a larger output file.
AC-3 audio from the source TS is transcoded to AAC at the default bitrate of 128k. While AVCHD does support AC-3 natively, this tool targets AAC as the output audio codec for broad MTS compatibility. If you need to preserve AC-3 surround sound from a broadcast TS recording, you would need to run FFmpeg locally using '-c:a copy' (if the source is already AVCHD-compliant) or '-c:a ac3' to retain the codec type.
Both TS and MTS support subtitles at the container level, but subtitle stream compatibility in MTS is limited in practice. AVCHD camcorder software and most consumer devices do not expect or handle subtitle streams in MTS files. FFmpeg may or may not carry subtitle streams through depending on the subtitle codec, and playback support in MTS-native applications is not guaranteed. For broadcast TS files with DVB or MPEG subtitle tracks, it is safer to extract subtitles separately rather than relying on MTS passthrough.
MTS and M2TS are both AVCHD-related extensions for MPEG-2 Transport Stream files. MTS is the extension used on the camcorder's memory card (typically inside the AVCHD/BDMV/STREAM folder), while M2TS is used in Blu-ray disc contexts. The underlying container format is the same. This tool produces .mts output to match the camcorder file naming convention, which is what most AVCHD-compatible NLEs and Sony/Panasonic software expect when importing from a card or folder structure.
Adjust the '-crf' value in the command to control H.264 encode quality. CRF ranges from 0 (lossless) to 51 (worst quality), with 23 as the default. For high-quality broadcast TS source material, a CRF of 18 is a common choice for near-transparent quality. To also increase audio quality, replace '128k' in '-b:a 128k' with a higher value such as '192k' or '256k'. For example: 'ffmpeg -i input.ts -c:v libx264 -c:a aac -crf 18 -b:a 192k output.mts'.
The displayed command processes a single file, but on your local desktop you can batch process using a shell loop. On Linux or macOS, run: 'for f in *.ts; do ffmpeg -i "$f" -c:v libx264 -c:a aac -crf 23 -b:a 128k "${f%.ts}.mts"; done'. On Windows Command Prompt, use: 'for %f in (*.ts) do ffmpeg -i "%f" -c:v libx264 -c:a aac -crf 23 -b:a 128k "%~nf.mts"'. This is especially useful for converting a full DVR recording session or batch of broadcast segments.

Technical Notes

TS and MTS share the same underlying MPEG-2 Transport Stream byte structure, but MTS is constrained by the AVCHD specification to H.264 (AVC) video and AAC or AC-3 audio, typically at 1080i/60, 1080p/30, or 720p/60 resolutions. This conversion uses libx264 at CRF 23, which is appropriate for standard-definition and high-definition broadcast TS content. Note that MTS does not support lossless codecs like FLAC or intra-only formats like MJPEG — both of which can appear in TS files — so re-encoding is always necessary when these are present in the source. Chapter markers are not supported in either format at the FFmpeg level for this container pair. Multiple audio tracks present in a broadcast TS (e.g., alternate language tracks) may not be fully preserved in the MTS output unless explicitly mapped with '-map' flags in a local FFmpeg command, as the tool defaults to the first detected audio stream. The output file size will vary significantly depending on the source codec: converting a FLAC-audio or VP9-video TS will produce a notably smaller MTS file, while converting an already-compressed H.264/AAC TS will result in a file of comparable or slightly larger size due to re-encoding overhead.

Related Tools