M3U8 is not a standard video file; it is a playlist format used in HTTP Live Streaming (HLS). It contains metadata that points to various video/audio tracks, different quality levels (bitrates), or individual media segments.
When a player processes an M3U8 file, it reads the segment addresses and downloads them sequentially. The user perceives a continuous video stream, but the underlying data consists of multiple small files, typically in .ts or .m4s formats.
Common HLS Structure
| Component | Description |
|---|
| Master Playlist | Contains links to multiple sub-playlists representing different resolutions or bitrates. |
| Sub-playlist | Points to the specific list of media segments. |
| TS / M4S Segments | The actual files carrying the video or audio data. |
| Key Information | Contains encryption-related data for protected HLS streams. |