Trim MPEG — Free Online Tool

Trim an MPEG video or audio file to a specific start and end point, outputting a new MPEG file using stream copy — meaning the mpeg2video and MP2 streams are cut without re-encoding, preserving original quality instantly. Ideal for quickly extracting clips from legacy broadcast or DVD-compatible MPEG content without any quality loss.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

This tool uses FFmpeg's stream copy mode (-c copy) to trim the MPEG file by seeking to a start timestamp and cutting at the end timestamp, then writing the selected segment to a new MPEG container. Because both input and output are MPEG using the same mpeg2video and MP2 codec streams, no re-encoding occurs — the raw compressed bitstream is copied directly. This makes the operation extremely fast and lossless in terms of codec quality. However, because MPEG-1/2 video uses GOP (Group of Pictures) structure with keyframes (I-frames), the actual trim point may be adjusted slightly to the nearest keyframe boundary, which is a known characteristic of stream-copy trimming in MPEG files.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary — the open-source multimedia processing engine that performs all the MPEG stream reading, seeking, and writing operations in this trim task.
-i input.mpeg Specifies the input MPEG file, which FFmpeg will demux to access the mpeg2video and MP2 streams for trimming.
-ss 00:00:00 Sets the start time of the trim in HH:MM:SS format — FFmpeg will seek to this position in the MPEG file and begin copying streams from the nearest preceding I-frame keyframe.
-to 00:00:10 Sets the end time of the trim in HH:MM:SS format — FFmpeg will stop copying the mpeg2video and MP2 streams at this timestamp, resulting in a 10-second clip in this default example.
-c copy Instructs FFmpeg to copy both the mpeg2video video stream and the MP2 audio stream directly without re-encoding, preserving the original MPEG quality and making the operation nearly instantaneous regardless of file size.
output.mpeg The filename for the trimmed output file, written in the MPEG container format with the same mpeg2video and MP2 codec streams as the input, ready for playback on any legacy or modern MPEG-compatible player.

Common Use Cases

  • Extract a specific scene or segment from a legacy broadcast recording stored in MPEG format for archiving or review
  • Trim a DVD-ripped MPEG file down to the main feature, removing intro sequences or credits without re-encoding
  • Cut a shorter clip from a long MPEG capture for sharing with systems that still require MPEG-1/2 compatibility
  • Isolate a specific news broadcast segment from a longer MPEG recording for journalism or research purposes
  • Prepare a trimmed MPEG clip for ingestion into legacy video editing software or broadcast playout systems that require MPEG-2 input
  • Remove unwanted footage from the beginning or end of an MPEG file captured from a VHS digitization without degrading the already-lossy source quality

Frequently Asked Questions

No — this tool uses the -c copy flag, which copies the mpeg2video and MP2 streams directly without re-encoding. Because MPEG is a lossy format, avoiding re-encoding is important to prevent further generational quality loss. The output file will have the same codec quality as the original MPEG source.
MPEG-1 and MPEG-2 video uses a GOP (Group of Pictures) structure where full frames (I-frames) only appear at keyframe intervals. When using stream copy mode, FFmpeg can only start a cut at an I-frame boundary, so the actual start point may be a fraction of a second off from your specified timestamp. If frame-accurate trimming is critical, you would need to re-encode the output, which will reduce quality from the already-lossy MPEG source.
In the command 'ffmpeg -i input.mpeg -ss 00:00:00 -to 00:00:10 -c copy output.mpeg', replace the value after -ss with your desired start time and the value after -to with your desired end time, both in HH:MM:SS format. For example, to extract from 1 minute 30 seconds to 2 minutes 45 seconds, use '-ss 00:01:30 -to 00:02:45'. You can also use -t instead of -to to specify a duration rather than an end timestamp.
The displayed command processes a single file, but you can adapt it for batch processing in a shell script. On Linux or macOS, wrap it in a for loop: 'for f in *.mpeg; do ffmpeg -i "$f" -ss 00:00:00 -to 00:00:10 -c copy "trimmed_$f"; done'. On Windows Command Prompt, use a for loop with 'for %f in (*.mpeg) do ffmpeg -i "%f" -ss 00:00:00 -to 00:00:10 -c copy "trimmed_%f"'. This is especially useful for files over 1GB that can't be processed in the browser.
With -c copy, the MP2 audio stream is also copied without re-encoding, so audio quality is fully preserved. The audio cut will align closely with the video cut at the keyframe boundary. In some edge cases with longer GOP intervals, there may be a brief moment of audio before the first video keyframe, but most MPEG players handle this gracefully.
Yes — because the output remains in the MPEG container with mpeg2video and MP2 streams and no re-encoding occurs, the file retains its DVD-compatible and broadcast-compatible properties. The MPEG-2 standard is what defines DVD video compatibility, and stream copy preserves the codec parameters exactly, so the trimmed clip should play back on any device or system that supported the original file.

Technical Notes

MPEG files using MPEG-2 video (mpeg2video) and MPEG-1 Audio Layer II (MP2) are inherently lossy formats, and this trim operation deliberately avoids re-encoding to prevent any additional quality degradation. The -c copy stream copy approach is optimal for MPEG trimming but is constrained by the GOP structure of MPEG-1/2 video — typical broadcast MPEG-2 files use GOP lengths of 12–15 frames (roughly 0.5 seconds at 25fps), so keyframe-boundary snapping is generally minor. MPEG containers do not support transparency, subtitle tracks, chapter markers, or multiple audio tracks, so none of these metadata types need to be considered for preservation. The output file size will be proportional to the trimmed duration relative to the original, since the bitrate of the copied streams is unchanged. Note that MPEG files from different sources may use variable bitrate (VBR) encoding, which means file size estimates based on duration alone may not be perfectly accurate. This tool does not support MPEG files with AAC or MP3 audio variants in the same stream-copy pass without verifying codec compatibility first.

Related Tools