HLS trimming options
| Method | Best for | Trade-off |
|---|---|---|
| Browser FFmpeg trim | Quick private clips from reachable M3U8 streams. | Limited by browser memory and device performance. |
| Stream-copy MP4 cut | Fast exports without re-encoding video or audio. | Start time may snap to the nearest keyframe. |
| Desktop FFmpeg | Very long streams, huge archives, or scripted batch jobs. | Requires install and command-line setup. |
| Upload converter | Files already stored locally and safe to upload. | Private stream URLs and finished clips leave your device. |
| DRM player | Licensed protected streams that require Widevine, FairPlay, or PlayReady. | Use the authorized app. This tool does not bypass DRM. |
How to trim an HLS stream online
- 1Paste and play the M3U8 URLLoad the stream first so you know the manifest, keys, and segments are reachable before trimming.
- 2Enable proxy only if access is blockedIf CORS or Referer protection prevents playback, route the stream through the proxy and set the required Referer before exporting.
- 3Set start and end timesChoose the range you want to keep. The exporter downloads only the HLS segments that overlap the selected time window.
- 4Export the MP4 clipFFmpeg WebAssembly remuxes the selected media into an MP4 file in your browser.
- 5Check the first secondsStream-copy trimming cuts on keyframes, so the resulting clip can start slightly earlier than the exact timestamp.
Why HLS trimming uses segment boundaries
HLS streams are split into many small media segments, usually a few seconds each. A browser trimmer finds the segments overlapping your start/end range, downloads them, and asks FFmpeg to create the output clip. This is faster than downloading the entire stream for short clips.
Why the start time may not be exact
Fast MP4 export uses stream-copy rather than re-encoding every frame. Stream-copy preserves quality and speed, but most video can only start cleanly on keyframes. If you need frame-accurate cuts, a full re-encode in desktop FFmpeg is the more precise workflow.
When the proxy is part of trimming
The trimmer still needs browser access to manifests, keys, and segments. If the stream is blocked by CORS or hotlink protection, fix playback with the proxy and custom Referer first. The proxy routes network requests, but the FFmpeg clip assembly still runs locally.
Related conversion pages
- M3U8 to MP4 converter is the main tool page for exporting full streams or time ranges.
- M3U8 to MP4 with no upload explains local browser remuxing and privacy boundaries.
- HLS CORS error covers access problems that can block trimming before export starts.
Frequently asked questions
Can I trim an M3U8 stream online?
Yes. Paste a reachable M3U8 URL, set a start and end time, and export the selected range as MP4 in the browser. The clip is not uploaded to a converter server.
Does HLS trimming download the whole stream?
Not for a short selected range. The exporter downloads the HLS segments that overlap your time range, then remuxes that range into an MP4 file locally.
Why is my trimmed clip start time slightly early?
Fast stream-copy export usually cuts on keyframes. If the exact start time is between keyframes, the output may start a little earlier so the MP4 remains playable.
Can I trim an encrypted M3U8 stream?
Normal AES-128 HLS can work when the key URL and segments are reachable. DRM-protected streams that require license exchange are not supported.
Is this HLS video trimmer free?
Yes. It is free, ad-free, requires no account, and runs in your browser. Very long streams may still be better handled by desktop FFmpeg.