Convert TS to M2TS — Free Online Tool
Convert MPEG-2 Transport Stream (TS) files to M2TS, the Blu-ray BDAV container format, encoding video with H.264 and audio with AAC — entirely in your browser with no uploads required. This is the go-to conversion for preparing broadcast or streaming TS footage for Blu-ray authoring or AVCHD-compatible playback.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your TS file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
Both TS and M2TS are MPEG-2 Transport Stream variants, but M2TS uses the BDAV wrapper with a 4-byte Blu-ray timestamp header added to each 192-byte packet (versus the standard 188-byte TS packet). During this conversion, the video stream is re-encoded using H.264 (libx264) with CRF 23, and audio is transcoded to AAC at 128k — even though both containers share codec support, re-encoding ensures strict compliance with Blu-ray/AVCHD profile constraints. Subtitle tracks are preserved in the output container, and multiple audio tracks are carried through if present in the source TS file.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg program, the open-source multimedia processing engine that powers this conversion. In the browser, this runs via FFmpeg.wasm (WebAssembly) without any server involvement. |
-i input.ts
|
Specifies the input file as an MPEG-2 Transport Stream (.ts). FFmpeg automatically detects the TS container and identifies all contained streams — video, audio, and subtitles — for processing. |
-c:v libx264
|
Re-encodes the video stream using the H.264 codec (libx264), which is required to produce a properly structured BDAV-compliant M2TS file rather than simply remuxing the raw TS video packets into a new container. |
-c:a aac
|
Transcodes the audio stream to AAC, the default and broadly supported audio codec for M2TS and AVCHD. This is necessary even if the source TS carries AAC audio, to ensure the audio is properly framed for the BDAV container structure. |
-crf 23
|
Sets the H.264 Constant Rate Factor to 23, FFmpeg's default for libx264, delivering a good balance between visual quality and file size for the M2TS output. Lower values (e.g., 18) produce higher quality larger files suitable for archival Blu-ray content. |
-b:a 128k
|
Sets the AAC audio bitrate to 128 kilobits per second, a standard quality level suitable for stereo audio in Blu-ray and AVCHD contexts. For multi-channel or high-fidelity audio from a broadcast TS source, consider increasing this to 192k or 256k. |
output.m2ts
|
Specifies the output filename with the .m2ts extension, which tells FFmpeg to write the result as a BDAV MPEG-2 Transport Stream — the container format used by Blu-ray discs and AVCHD camcorders. |
Common Use Cases
- Preparing recorded broadcast TV (TS captures from DVB tuners) for Blu-ray disc authoring in software like Nero or ImgBurn
- Converting IPTV or OTA recordings saved as TS files into AVCHD-compatible M2TS for playback on Blu-ray players and PlayStation consoles
- Archiving live-streamed or HLS-recorded TS segments into a single, high-definition M2TS file with proper Blu-ray timestamping
- Transcoding TS footage from video capture cards into M2TS for editing in software that natively supports AVCHD project formats
- Converting transport stream recordings from satellite receivers into M2TS to share with Panasonic or Sony AVCHD camcorder-based editing workflows
- Packaging multi-audio-track TS broadcasts (e.g., multilingual TV channels) into M2TS while retaining all language tracks for Blu-ray menu authoring
Frequently Asked Questions
Yes, there will be a generation of quality loss because the video is re-encoded with H.264 at CRF 23, not simply remuxed. Even though both TS and M2TS can carry H.264 video, the re-encoding step is necessary to ensure BDAV packet structure compliance. CRF 23 is a visually high-quality setting for most content, but if your source TS is already H.264 and you want to minimize loss, you can lower the CRF value (e.g., CRF 18) for higher quality at the cost of a larger file.
While TS and M2TS are both transport stream formats, M2TS uses the BDAV specification which adds a 4-byte timestamp to each packet, changing the packet size from 188 to 192 bytes. This structural difference means a straight stream copy can result in non-compliant output that some Blu-ray players and authoring tools will reject. Re-encoding with libx264 guarantees a properly structured, standards-compliant M2TS file.
Yes, both TS and M2TS support subtitles, and this tool preserves subtitle tracks in the output M2TS file. However, the subtitle format must be compatible with M2TS — DVB subtitle streams from broadcast TS files are generally carried through, but complex or non-standard subtitle types may need manual handling. Verify subtitle compatibility in your target Blu-ray authoring or playback application.
M2TS via this tool uses AAC as the default audio codec, and AC3 is not included in the supported output audio codecs for this conversion. If your source TS file has AC3 audio, it will be transcoded to AAC at 128k. AAC is widely supported on Blu-ray players and AVCHD devices. If you specifically need AC3 passthrough for Dolby Digital compatibility on a standalone Blu-ray player, you will need to run a custom FFmpeg command locally using the -c:a ac3 flag.
The video quality is controlled by the -crf flag, where lower values mean higher quality and larger files, and higher values mean lower quality and smaller files. The default is CRF 23; use CRF 18 for near-lossless perceptual quality or CRF 28 for a smaller file with visible compression. For audio, replace 128k in -b:a 128k with a higher value like 192k or 256k to improve audio fidelity. For example: ffmpeg -i input.ts -c:v libx264 -c:a aac -crf 18 -b:a 192k output.m2ts
Yes, on the command line you can use a shell loop to process multiple files. 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}.m2ts"; done — this iterates over every TS file in the current directory and outputs a corresponding M2TS file. 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.m2ts". The browser tool handles files one at a time, so the desktop command is especially useful for batch workflows.
Technical Notes
TS and M2TS share a common lineage as MPEG-2 Transport Stream formats, but the BDAV specification used by M2TS introduces a critical structural difference: each packet is 192 bytes (188-byte TS payload plus a 4-byte Arrive Time Stamp), which enables precise frame-accurate playback on Blu-ray hardware. This tool re-encodes video with libx264 and audio with AAC rather than attempting a stream copy, ensuring the output is a well-formed BDAV file. Note that M2TS does not support the AC3/Dolby Digital audio codec in this tool's output profile, which differs from the source TS format that does support AC3 — source files with AC3 audio will be transcoded to AAC. Both formats support multiple audio tracks and subtitle streams, so multilingual TS broadcasts can be converted with all tracks intact. M2TS does not support embedded chapter markers in this implementation. Files larger than 1GB should be processed using the displayed FFmpeg command locally, as the browser tool is limited to 1GB inputs. For Blu-ray disc authoring, the M2TS output from this tool should be treated as a base-compliant file and may require additional multiplexing into a BDMV folder structure using dedicated Blu-ray authoring software.