Trim M2TS — Free Online Tool
Trim M2TS files directly in your browser — cut Blu-ray and AVCHD footage to precise start and end points without re-encoding, preserving your original H.264/H.265 video and multi-channel audio streams intact. Ideal for extracting clips from Blu-ray captures or AVCHD camcorder recordings with zero quality loss.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your M2TS 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
This tool uses stream copying (-c copy) to trim your M2TS file, meaning the video and audio data is never decoded or re-encoded — the MPEG-2 Transport Stream packets are simply repackaged between the specified timestamps. Because M2TS uses a transport stream container with fixed 192-byte packets (including the 4-byte Blu-ray timestamp prefix), the trim points are aligned to the nearest keyframe in the stream, which is standard behavior for lossless stream-copy trimming. The output is a fully valid M2TS file compatible with Blu-ray players, AVCHD-aware software, and media servers like Plex or Emby. All subtitle tracks and multiple audio tracks present in the source are preserved without modification.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary. In the browser, this runs via FFmpeg.wasm compiled to WebAssembly, executing the same logic as a native desktop FFmpeg installation without any server-side processing. |
-i input.m2ts
|
Specifies the input file — your source M2TS file containing the BDAV MPEG-2 Transport Stream with its 192-byte packet structure, video (typically H.264 or H.265), audio, and optional subtitle streams. |
-ss 00:00:00
|
Sets the trim start position to the beginning of the file (00:00:00). Change this timestamp to any point in your M2TS file to begin the output clip at a different time; FFmpeg will seek to the nearest preceding keyframe in the transport stream. |
-to 00:00:10
|
Sets the trim end position to 10 seconds into the file. Adjust this to match your desired clip end point. This is an absolute timestamp relative to the input file, not a duration — to specify a duration instead, replace -to with -t. |
-c copy
|
Copies all streams (video, audio, and subtitles) from the M2TS input directly to the output without re-encoding. This preserves the original H.264/H.265 video quality and multi-channel audio at full fidelity, and makes the operation nearly instantaneous regardless of file size. |
output.m2ts
|
The output filename with the .m2ts extension, ensuring the result is written as a valid BDAV MPEG-2 Transport Stream. The output inherits the same stream structure as the input, making it compatible with Blu-ray players, AVCHD software, and media servers. |
Common Use Cases
- Extract a specific scene from a Blu-ray disc capture to share a clip while keeping the original H.264 or H.265 quality intact
- Trim AVCHD camcorder footage at the M2TS level before importing into a video editor to reduce project file sizes and speed up editing
- Cut out a broadcast segment from a high-definition MPEG-2 TS recording for archiving or review without transcoding
- Remove unwanted pre-roll or post-roll footage from Blu-ray rips that include studio logos or credits you want to strip
- Isolate a short clip from a long M2TS recording to test Blu-ray authoring software or validate stream compatibility
- Extract a sample segment from a multi-hour AVCHD recording to preview before committing to a full transcode pipeline
Frequently Asked Questions
No. The -c copy flag instructs FFmpeg to copy the raw video and audio stream data byte-for-byte without decoding or re-encoding it. Your H.264 or H.265 video and AAC or Dolby audio remain at exactly the same bitrate and quality as the source M2TS. The only potential imprecision is that the cut points are snapped to the nearest keyframe in the transport stream, which is typically within a fraction of a second of your specified time.
Because -c copy does not re-encode the video, FFmpeg must begin the output at a keyframe (I-frame) boundary rather than at an arbitrary frame. In H.264 and H.265 streams encoded for Blu-ray, keyframes typically occur every 1–3 seconds, so the actual trim point may be slightly off. If frame-accurate trimming is critical, you would need to remove -c copy and instead specify video and audio codecs explicitly, which will trigger a full re-encode at the cut points.
Yes. The -c copy flag copies all streams — including every audio track (e.g., a main 5.1 mix and a commentary track) and subtitle streams embedded in the M2TS container — to the output file. M2TS natively supports multiple audio tracks and subtitle streams in its transport stream structure, so no data is dropped during the copy operation.
Modify the values after -ss (start time) and -to (end time) in the command. Both accept HH:MM:SS format or plain seconds (e.g., 90.5 for 90.5 seconds). For example, to trim from 2 minutes 30 seconds to 5 minutes, use -ss 00:02:30 -to 00:05:00. Alternatively, replace -to with -t followed by a duration to specify how long the clip should be rather than where it ends.
Yes, using a shell loop on your desktop. On Linux or macOS: for f in *.m2ts; do ffmpeg -i "$f" -ss 00:00:00 -to 00:00:10 -c copy "trimmed_$f"; done. On Windows PowerShell: Get-ChildItem *.m2ts | ForEach-Object { ffmpeg -i $_.Name -ss 00:00:00 -to 00:00:10 -c copy "trimmed_$($_.Name)" }. The browser tool processes one file at a time; the FFmpeg command shown on this page is particularly useful for batch workflows or files larger than 1GB.
In most cases, yes. Because -c copy preserves the original codec streams (typically H.264/AVC for AVCHD or H.264/H.265 for Blu-ray) and the M2TS container structure including the Blu-ray 4-byte timestamp header, the output should be recognized by hardware Blu-ray players and AVCHD camcorder software. However, standalone Blu-ray players that enforce strict disc navigation structures may require the file to be part of a proper BDMV folder hierarchy rather than a standalone .m2ts file.
Technical Notes
M2TS uses the BDAV (Blu-ray Disc Audio-Video) variant of the MPEG-2 Transport Stream, distinguished by its 192-byte packet size (versus the standard 188-byte TS packets) due to a 4-byte Arrival Time Stamp (ATS) prefix added by Sony for AVCHD compatibility. FFmpeg handles this transparently during stream-copy trimming. When trimming with -c copy, the transport stream timestamps (PCR, PTS, DTS) are adjusted relative to the new start point, ensuring the output file plays back correctly without timestamp discontinuities. One known limitation is that chapter metadata is not supported in the M2TS container itself — chapter information in Blu-ray is stored externally in BDMV/CLIPINF files, which are not processed by this tool. Subtitle streams (typically in PGS/SUP format for Blu-ray or MPEG-4 Timed Text for AVCHD) are stream-copied without modification. If the source M2TS contains multiple audio tracks (e.g., a primary mix plus a director's commentary), all are preserved in the output. For very long M2TS recordings from AVCHD camcorders that span multiple .m2ts segment files, you would need to concatenate them first before trimming.