MJPEG to M2TS Converter

Convert MJPEG files to M2TS format online. Free, fast, no watermarks.

Initializing... drag & drop files here

Supports: MJPEG

OptionsAdvanced Options - Our defaults are optimized for the best results. We recommend you keeping the defaults unless you have a specific need.
Show All Options
File Compression
Preset
Video resolution
Trim

MJPEG to M2TS: The Extension Changes the Bytes

.ts, .mts and .m2ts all describe an MPEG-2 transport stream, and people tend to treat them as three names for the same thing. They are not. The Blu-ray and AVCHD world uses BDAV framing, in which every 188-byte transport packet is prefixed with a four-byte arrival timestamp, making 192-byte packets. Plain broadcast transport streams do not do that.

Which of the two you get here is decided entirely by the output extension, and this page produces the BDAV one. Encoding the same source to each of the three extensions and looking at the raw bytes makes the difference plain:

Written as First bytes of the file Packet size Total size divides by
.m2ts (this page) 0e bf 46 22 47 40 11 10 — sync byte 0x47 sits at offset 4, behind a four-byte timestamp 192 bytes 192 exactly
.ts 47 40 11 10 00 42 — sync byte at offset 0 188 bytes 188 exactly
.mts 47 40 11 10 00 42 — identical to .ts 188 bytes 188 exactly

That is a measurement, not a reading of the documentation: identical encodes of one source, written to three filenames. So if something downstream specifically wants BDAV-framed essence — a Blu-ray authoring tool, an AVCHD-aware editor, a set-top box — this is the page. If it wants a plain transport stream, MJPEG to TS is the one you want, and renaming an .m2ts to .ts will not fix the framing.

How to Convert MJPEG to M2TS

  1. Upload Your MJPEG File: Drag the .mjpeg onto the page or click "Add Files". Several files can be queued and they all use the same settings.
  2. Choose the Video and Audio Codecs: Video Codec offers DivX, H.264 (which the page opens on), H.265, MPEG-1, MPEG-2, MPEG-4 and Xvid. Audio Codec offers AAC (the opening choice), AC3, DTS (DCA), EAC3, MP2 and MP3 — the legality note below matters if a Blu-ray player is the destination.
  3. Set the Compression Mode and Resolution: File Compression opens on Quality Preset at "Very High"; Constant Quality exposes a CRF slider running 16 to 51 and opening at 23. Video resolution opens on Keep original, with Preset Resolutions, Width, Height and Width x Height alongside.
  4. Convert and Download: Click Convert and save the .m2ts. Files are uploaded over an encrypted connection, re-encoded on our servers and deleted automatically after a few hours — no sign-up, no watermark.

Codec Choices and What a Blu-ray Player Will Accept

Codec offered here Permitted by Blu-ray / BDAV? Comment
H.264 (video, default) Yes The safe choice, and what AVCHD camcorders record
MPEG-2 (video) Yes The other video codec Blu-ray permits; larger files
H.265, MPEG-1, MPEG-4, DivX, Xvid (video) No Software players handle them; hardware Blu-ray decks will not
AC3 (audio) Yes Dolby Digital is the standard AVCHD audio codec
DTS (DCA), EAC3 (audio) Yes Both are Blu-ray audio formats, though AVCHD itself narrows the choice to AC-3 or linear PCM
AAC (audio, the page's default) No Plays fine in VLC, mpv, ffmpeg and most editors, and is refused by strict hardware
MP2, MP3 (audio) No Broadcast and consumer codecs, outside the Blu-ray audio set

So the page's opening combination — H.264 plus AAC — gives you a file that plays everywhere in software and may be rejected by a Blu-ray deck. If a set-top player is the destination, change Audio Codec to AC3 before converting. It is one dropdown and it is the difference between a file that plays and one that does not.

One further boundary: a single .m2ts file is not a disc. Blu-ray and AVCHD volumes need a BDMV directory with clip-information, index and playlist files alongside the stream. This page produces the stream; authoring the volume around it is a separate job for authoring software.

What Your MJPEG Source Brings, and What It Doesn't

A raw .mjpeg is a run of complete JPEG pictures with no container header at all, which has two consequences here.

There is no frame rate stored in the file, so the decoder assumes 25 frames per second. A capture made at a different rate plays back at the wrong speed — every frame present, only the timing invented. A thirty-frame sequence captured over three seconds at 10 fps measured 1.200 seconds after conversion. This page has no frame-rate control, so nothing here can override that assumption; re-wrapping the sequence at its true rate in a desktop tool before uploading is the only fix.

There is also no audio track and there cannot be one, since MJPEG carries pictures only. Whatever you choose under Audio Codec, the .m2ts will be silent. That does not make the choice pointless — some editors and players are happier with a declared audio codec — but it does mean AC3 versus AAC only matters once you add sound later.

Frequently Asked Questions

Can I just rename an .m2ts to .ts, or the other way round?

Not usefully. The extension is what selects the framing at encode time, so the file's packet structure is already fixed by the time you have it: an .m2ts from this page contains 192-byte BDAV packets and a .ts contains 188-byte ones. Renaming changes only the label. Software that sniffs the contents copes either way, but hardware that trusts the extension will find a packet structure it did not expect. Convert again to the extension you actually want.

What is the difference between .mts and .m2ts on a camcorder?

Convention rather than content, on the camera side: AVCHD camcorders write their clips as .MTS inside BDMV/STREAM, and the import software on a computer commonly renames them to .M2TS. Both hold BDAV-framed streams in that context. The naming here follows a different rule — the framing follows the extension you convert to — which is why .mts and .ts from this site come out with plain 188-byte packets while .m2ts comes out BDAV-framed.

Why is AAC the default if a Blu-ray player will not take it?

Because AAC is the sensible general-purpose default across the site's video targets, and the great majority of transport streams people make here are played in software rather than on a deck. It is a one-dropdown change to AC3 when hardware is the destination. The important thing is knowing it needs changing, which is why it is spelled out on this page rather than buried.

Will my file play on a Blu-ray player if I burn it to a disc?

Not by copying the file onto a disc as-is. A Blu-ray player looks for a BDMV directory containing an index file, a movie-object file, playlists, clip information and the stream files in their own folder, with strict naming. Handing it a loose .m2ts in the root of a data disc gets you nothing on most players. Use authoring software — the stream this page produces, with H.264 video and AC3 audio, is the right input for that software.

Why does my converted clip run too fast?

Because the MJPEG source stores no frame rate and 25 fps is assumed. The error is exactly the ratio between your capture rate and 25: a 10 fps sequence runs 2.5 times too fast, a 50 fps sequence runs half speed. Nothing is lost — every frame is in the output — so an editor can retime it back. The alternative is to set the correct rate when re-wrapping the sequence before you upload.

Why is the output larger than an MP4 of the same footage?

Transport-stream overhead. Each 188-byte packet spends four bytes on a header, program-association and program-map tables are repeated throughout the stream so a receiver can join mid-broadcast, and BDAV adds four more bytes per packet on top of that. None of it is wasted — it is what makes the format resilient for broadcast and disc playback — but it does mean a few per cent more than a file-oriented container. For sharing or storage, MJPEG to MP4 carries the same H.264 video far more compactly.

Does H.265 work in an M2TS file?

The encode works and software players handle it, but you are outside the specification: Blu-ray and AVCHD define H.264 and MPEG-2 as their video codecs, not HEVC. If your destination is a media server, an editor or a computer, H.265 in a transport stream is a legitimate way to save bytes. If it is a disc player or a television's USB input, stay on H.264.

Is the picture re-encoded or are the JPEG frames carried across?

Re-encoded, always. The JPEG frames are decoded to pixels and compressed again with whichever video codec you selected, so this is a second lossy generation. There is no pass-through path anywhere on the site. On MJPEG sources this is usually a good trade — Motion JPEG stores no motion information at all, so a codec that does will reproduce the same picture in a fraction of the bytes — but keep the original if you plan more editing.

How are my files handled during conversion?

Your .mjpeg is uploaded over an encrypted connection, decoded and re-encoded on our servers, and both the upload and the resulting .m2ts are deleted automatically after a few hours. Nothing is shared or made public, and there is no sign-up, no watermark and no account. MJPEG files are bulky for their running time, so if you only need part of the capture, the Trim control on this page cuts it in the same job.

Rate MJPEG to M2TS Converter Tool

Rating: 4.8 / 5 - 62 reviews