Convert M3U8 to MP4: How It Works and Which Tool to Pick
この記事は中文と英語で提供されています。日本語訳は準備中です。
Converting M3U8 to MP4 amounts to downloading all the segments listed in the playlist, concatenating them in order, and remuxing the result into a single MP4 file.
The conversion flow
- Parse the M3U8 to get the list of segment URLs;
- Download every segment in sequence;
- Merge them in playlist order (TS segments can be concatenated directly);
- Remux or transcode to MP4, handling A/V sync if needed.
Choosing a tool
- ffmpeg: the most capable option, one line from the command line, ideal for batch and automation.
- Desktop GUI tools: good if you don't want to type commands — stick to reputable software.
- Online converters: convenient, but limited by CORS and the source server; usually fine only for short videos.
Things to watch
Encrypted streams (playlists containing
#EXT-X-KEY) need a key to convert; live streams have no end, so you can only record a time window. Also make sure you have the right to the content — converting something doesn't grant you permission.