M2TS to MKV Converter
Re-encode an AVCHD or Blu-ray M2TS clip as H.264 and AAC in an MKV.
or drop files here
M2TS Format
Blu-ray / AVCHD transport stream
The stream file used by Blu-ray BDAV and AVCHD. It is a modified MPEG-2 transport stream.
- 188-byte packets plus 4 bytes
- MPEG-2, AVC and VC-1 video
- Used by camcorders
- video/mp2t
MKV Format
Matroska video
A container built on EBML that can carry several video, audio and subtitle streams in one file.
- Built on EBML
- Several audio and subtitle streams
- Chapters and tags
- video/matroska
How to convert M2TS to MKV
Follow these steps to convert M2TS to MKV online.
Choose your M2TS file, or several at once.
Wait while the converter turns each file into MKV.
Download each new MKV file. Your original file isn't changed.
Related Tools
MKV to M2TS
Convert MKV files to M2TS format
M2TS to 3GP
Convert M2TS files to 3GP format
M2TS to AAC
Convert M2TS files to AAC format
M2TS to ALAC
Convert M2TS files to ALAC format
M2TS to AU
Convert M2TS files to AU format
M2TS to CAF
Convert M2TS files to CAF format
M2TS to FLV
Convert M2TS files to FLV format
M2TS to M4A
Convert M2TS files to M4A format
M2TS to M4V
Convert M2TS files to M4V format
M2TS to MP3
Convert M2TS files to MP3 format
M2TS to MPG
Convert M2TS files to MPG format
M2TS to MXF
Convert M2TS files to MXF format
M2TS to WMA
Convert M2TS files to WMA format
ASF to MKV
Convert ASF files to MKV format
AVCHD to MKV
Convert AVCHD files to MKV format
AVI to MKV
Convert AVI files to MKV format
DIVX to MKV
Convert DIVX files to MKV format
FLV to MKV
Convert FLV files to MKV format
HEVC to MKV
Convert HEVC files to MKV format
M4V to MKV
Convert M4V files to MKV format
MP4 to MKV
Convert MP4 video files to MKV format
MPEG2 to MKV
Convert MPEG2 files to MKV format
MPG to MKV
Convert MPG files to MKV format
MXF to MKV
Convert MXF files to MKV format
What to know before converting M2TS to MKV
- This is a re-encode to H.264 and AAC at 96 kbps, not a lossless remux.
- Video over 1920 pixels on a side is scaled down, and the frame rate tops out at 30 fps.
- Frames flagged as interlaced are deinterlaced.
- Clip-information files and menus on a disc are not part of the result.
About M2TS files
What is an M2TS file?
An .m2ts file carries the video, audio and extra streams used by Blu-ray BDAV discs and AVCHD camcorders. It does not pick one codec. Instead it changes the MPEG-2 transport stream layout so that each source packet has a 188-byte transport packet plus four extra bytes, which makes 192 bytes in all.
Blu-ray allows MPEG-2, AVC and VC-1 video in this wrapper, and the format supports HD video. AVCHD was announced by Sony and Panasonic in 2006. The related MPEG type video/mp2t is shared by plain transport streams, so it does not point to M2TS alone.
An .m2ts file is used on Blu-ray discs and for AVCHD camcorder recordings. On a disc or a camera card it sits beside separate clip-information files, and copying the stream by itself leaves those files and the disc organization behind.
Because the wrapper allows several video codecs, a clip being .m2ts does not tell you what you need to decode it. VLC media player, MPC-HC and Adobe Premiere Pro all open the format, and a camcorder or a disc is where most M2TS files come from.
Programs that open M2TS files
Windows, Mac and Linux:
- Playback of M2TS in FFplay comes from the FFmpeg libraries it is built on, and the tool is free.
- FFmpeg reads MPEG transport streams.
M2TS and MKV compared
- Layout: M2TS is a stream of fixed-size source packets, each a transport packet with four extra bytes. Matroska is built on EBML, a binary structure derived from XML.
- Registration: the IANA media type for Matroska video is video/matroska, while video/mp2t, which is shared with plain transport streams, is the nearest type for M2TS.
- Origin: Matroska developed from the earlier MCF project, and IANA registers video/matroska for it.
- Codecs: M2TS permits MPEG-2, AVC and VC-1 picture streams. Matroska leaves the choice of compression method and level open.
- Extras: one Matroska file can combine streams of video, audio and subtitles, and the design also includes chapters and descriptive tags.
- Typical source: M2TS comes from camcorders and Blu-ray discs.
- Wrapper content: an M2TS file wraps video, audio and additional streams, and a Matroska file can hold the same kinds of stream.
This page does not repackage the stream. FFmpeg decodes the clip in your browser, and the x264 encoder rewrites the picture (CRF 32, ultrafast preset). Audio is written as 96 kbps AAC, and anything flagged as interlaced is deinterlaced. A side beyond 1920 pixels is brought down to fit, odd dimensions become even, and the output never runs faster than 30 frames per second.
To copy the streams without re-encoding, use the methods below.
You can choose several clips at once. They are processed one after another, each result is downloaded as its own file named after the original with the .mkv extension, and no ZIP is made. Your original M2TS files are never modified, and nothing is uploaded, because FFmpeg runs inside the browser as WebAssembly.
A long clip needs time because the work happens in the tab, on your own hardware. The page sets no size or time limit, and an exit-code message means FFmpeg stopped with an error.
Other ways to convert M2TS to MKV
- MKVToolNix (mkvmerge): run
mkvmerge -o archive.mkv recording.m2ts. The documentation names .m2ts among the transport-stream file types mkvmerge parses, and mkvmerge copies tracks instead of re-encoding them. The same documentation says -o names the file to write. - mkvmerge with chosen tracks: run
mkvmerge --identify recording.m2tsto list track IDs, thenmkvmerge -o archive.mkv --audio-tracks 1 --no-subtitles recording.m2tsto copy a chosen audio track and skip subtitles. The documentation says --identify probes the file and reports its type, its tracks and their track IDs, --audio-tracks copies the audio tracks whose IDs you give, and -S or --no-subtitles leaves out subtitle tracks. - FFmpeg, copy everything: run
ffmpeg -i recording.m2ts -map 0 -c copy archive.mkv. The -map 0 option selects every stream, and -c copy leaves them unchanged. FFmpeg's documentation describes that setting as stream copy, with no decoding or encoding.
Problems with M2TS files
- Missing clip information: copying only the stream omits its clip-information files and disc organization.
- The extension does not name the decoder: .m2ts does not tell you which supported video decoder the recording needs.
- Protected disc content: Blu-ray content can have AACS protection even though M2TS itself supplies no encryption.
Frequently Asked Questions
Everything you need to know about our converter
How do I convert M2TS to MKV?
Is this a lossless remux?
What happens to interlaced camcorder footage?
What do I lose compared with the original clip?
Can I convert a Blu-ray with AACS protection?
Why not just rename the .m2ts to .mkv?
Does my clip leave my computer?
What is an M2TS file from my camcorder?
Can I convert several clips at once?
What does the exit-code error mean?
Browse All Tools
Browse by category instead of one giant mixed list.
Convert Tools
Convert image, audio, video, document, and data files directly in your browser.