Initializing... drag & drop files here
Supports: M2TS
An .m2ts is a BDAV MPEG-2 transport stream — the file Blu-ray Discs and AVCHD camcorders write, built from 192-byte packets (the standard 188-byte transport packet with a four-byte arrival timestamp in front of it) and normally carrying H.264 video with Dolby Digital or linear PCM audio. A PPM is the opposite of all that: a short plain-text header, then raw RGB bytes, with no compression, no metadata and no decoder to install.
This page decodes one frame from the stream and writes it as that pixmap. It exists for pipelines rather than for people — OpenCV and Pillow scripts, Netpbm command chains, computer-vision datasets, teaching code that parses rasters by hand. If you want a still you can actually look at or send to someone, M2TS to PNG is lossless too and a small fraction of the size. Everything below assumes you have a reason to want the raw bytes.
.m2ts onto the page or click "+ Add Files" to browse. This page's uploader takes the .m2ts spelling only; camcorder cards that write .MTS have their own page at MTS to PPM. Several clips can be queued and share one set of settings.0. Type the moment you want — the field takes decimals — or switch to Multiple Screenshots, which walks the whole stream at a Capture Rate running from 0.1 seconds up to 10 seconds per frame. Read the sizing note below before you choose that..ppm. Files upload over an encrypted connection, are processed on our servers, and are deleted automatically after a few hours. No sign-up, no watermark.A PPM costs exactly three bytes per pixel at 8-bit, six at 16-bit, plus a header under twenty bytes long — and content makes no difference at all. A black frame and a busy crowd shot cost identically. On the frame sizes the AVCHD and Blu-ray specifications allow:
| Frame size | 8-bit PPM | 16-bit PPM | 1-bit PPM |
|---|---|---|---|
| 720 x 480 | 1.04 MB | 2.07 MB | 1.04 MB |
| 720 x 576 | 1.24 MB | 2.49 MB | 1.24 MB |
| 1280 x 720 | 2.76 MB | 5.53 MB | 2.76 MB |
| 1440 x 1080 | 4.67 MB | 9.33 MB | 4.67 MB |
| 1920 x 1080 | 6.22 MB | 12.44 MB | 6.22 MB |
Two things fall out of that table. The 1-bit column is not a typo: PPM stores one byte per colour sample whenever its maxval is below 256, so choosing 1-bit writes P6 1920 1080 1 with three bytes per pixel exactly as 8-bit does. The file is the same size, and the picture is not black and white either — each channel is reduced to two levels, so you get an eight-colour posterisation. If you want a smaller PPM, the only lever that works is Image resolution.
And Multiple Screenshots multiplies fast at HD sizes. At the preselected rate of one image per second, half an hour of 1080p footage produces 1,800 stills at 6.22 MB each — a little over 11 GB. Sample at 10 seconds per frame to survey a clip, find the moment you want, then re-run with Specific Frame at that timestamp for the one image you actually need.
| Property of the M2TS | What reaches the PPM |
|---|---|
| H.264 picture data | Decoded once; the PPM stores those exact RGB values with no further loss |
| Frame size | Preserved unless you change Image resolution |
| Interlaced fields | Preserved as they are — no deinterlacing is applied, so motion shows comb teeth |
| Dolby Digital, LPCM or DTS audio | Discarded; PPM has nowhere to put sound |
| Subtitle and menu streams | Discarded |
| Timecode and stream metadata | Discarded; PPM has no metadata block at all |
| Colour depth | 8 bits per channel by default, matching the source |
| Colour range | Converted to RGB by the decoder; a broadcast-range source is expanded as part of that |
The interlacing row is the one that surprises people using camcorder footage. Consumer AVCHD is very often 1080i, meaning each frame holds two fields captured a fiftieth or sixtieth of a second apart. A television separates them again; a still image cannot. Anything that moved between the two fields shows horizontal comb teeth in the pixmap, and no setting on this page removes them. Pick a low-motion moment, or deinterlace the clip in a video tool and grab the frame from the progressive export.
It is pixel-exact to the frame the decoder produced, which is not the same thing as exact to what the camera captured. M2TS carries H.264, a lossy codec, so blocking and quantisation noise are baked into that frame before PPM ever sees it. What "lossless" means here is that PPM adds nothing on top: no requantisation, no colour reduction, no second compression pass — just the RGB values the decoder handed over, artefacts included.
P6, the raw binary encoding. Check it with head -c 16 on the output: the first two bytes are P6, followed by width, height and maxval as plain text, then the pixel bytes. P3 writes every sample as human-readable decimal, roughly tripling the size, and is only useful when you want to read values by eye. Every Netpbm-aware library expects P6.
.MTS — can I use this page?Not directly. The uploader here is scoped to the .m2ts spelling, and camcorder cards that write .MTS have their own page at MTS to PPM. The contents are usually identical — AVCHD cards write BDAV transport streams under the .MTS name, and importing software frequently renames the same file to .M2TS — so the choice is purely about which uploader accepts the name you have. Use the page that matches your file; the frame you get back is the same either way.
Very likely, if it came from a commercial disc. Blu-ray titles are encrypted with AACS and often BD+ as well, and an .m2ts copied straight off the disc cannot be decoded by anything that does not hold the keys. Camcorder AVCHD files are never protected and convert normally. The quick test is VLC: if it will not play the file, the problem is in the file rather than in this conversion.
Because the two formats are solving opposite problems. H.264 in an M2TS predicts each frame from its neighbours and discards what the eye is least likely to miss, which is how an hour of HD fits on a disc. A PPM stores one frame with no compression at all, at three bytes per pixel — 6.22 MB for 1080p regardless of the picture. The Netpbm documentation is candid that the format is deliberately redundant; simplicity of parsing is the entire point.
No. The source is 8-bit video, so 16-bit adds a zero byte to every sample and doubles the file without adding any information. The option exists for genuinely high-precision sources and for tools that will only accept 16-bit input. If your downstream code requires it, use it; otherwise 8-bit is the correct and preselected choice.
It sets the PPM's maxval to 1, reducing each colour channel to two levels. The result is an eight-colour image — black, white and the six primaries and secondaries — and it is exactly the same size as the 8-bit version, because a maxval below 256 still occupies a whole byte per sample. It is not a black-and-white mode and it is not a size reduction. Reduce the resolution instead.
ImageMagick, GIMP, IrfanView or any Netpbm utility will display it, and Pillow, OpenCV and scikit-image read it from a script in a line or two. Browsers do not render PPM and the default photo viewers on Windows and macOS generally skip it. If you only wanted a viewable still, M2TS to PNG is the right target, and PPM to PNG converts a pixmap you already have.
The frame at zero seconds, because Specific Frame is preselected with Time (seconds) set to 0. On camcorder footage that opening frame is frequently the worst one available — exposure still settling, a hand on the record button, or a lens cap. Enter a timestamp from the middle of the shot, or survey the clip with Multiple Screenshots at ten seconds per frame first.
No. The quickest Capture Rate available is 0.1 seconds, which is ten images per second and below the 25, 30, 50 or 60 frames per second an M2TS actually holds. That is ample for reviewing an action or a UI transition and it keeps the output count manageable. A genuine frame-by-frame export of HD footage is a desktop job — at 1080p it would be six megabytes per frame, which is well over a gigabyte for every ten seconds of video.
It travels over an encrypted connection, is decoded on our servers, and both the upload and the stills produced from it are deleted automatically after a few hours. Nothing is shared or made public, no account is needed, and there is no watermark. M2TS files run to gigabytes, so the wait is dominated by upload time — trimming to the section you need, or making a smaller working copy with M2TS to MP4 first, saves the most time.