M3U8 Inspector: Read an HLS Playlist and Calculate Its File Size
Paste an .m3u8 link or its text to see every variant, codec, audio track and segment, and the stream's size: exact where possible, estimated otherwise.
On this page
Paste an .m3u8 address or the playlist’s text below. The inspector lists each quality variant with its resolution, frame rate, decoded codecs and bit rate, plus the audio and subtitle tracks, then works out the size. It reads everything in your browser: pasted text never leaves the page, and a playlist address is fetched by your browser directly from that server.
M3U8 inspector
Paste a playlist address or the playlist text. It's read in your browser and nothing is uploaded.
Pasted text with relative links?
Lets the inspector open variant playlists and measure segments that the text names relatively.
Key takeaways:
- Two kinds of playlist: a master lists the versions (
#EXT-X-STREAM-INF), a media playlist lists one version’s segments (#EXTINF). - Sizes are exact when the playlist allows it: from
#EXT-X-BYTERANGE, or by measuring each segment’sContent-Length. - Otherwise it estimates from
AVERAGE-BANDWIDTH, which Apple’s spec requires to be within 10% for on-demand streams. - Joining TS segments into MP4 makes the file about 2.7% smaller (39.7 MB became 38.6 MB in our test).
- It flags encryption and DRM, such as FairPlay and Widevine keys, and live playlists with no
#EXT-X-ENDLIST.
What the inspector reads
HLS playlists are plain text, defined in RFC 8216. There are two kinds, and the inspector recognises both:
- A master (multivariant) playlist lists the versions of the stream. Each
#EXT-X-STREAM-INFline gives aBANDWIDTH(required), and usuallyAVERAGE-BANDWIDTH,RESOLUTION,FRAME-RATEandCODECS.#EXT-X-MEDIAlines list separate audio, subtitle and caption tracks. - A media playlist lists one version’s segments. Each
#EXTINFgives a segment’s length,#EXT-X-MAPnames the initialisation segment of an fMP4 stream, and#EXT-X-ENDLISTmarks a finished stream.
For each variant, the codec strings are decoded into words. For example, avc1.640028 is H.264 High profile at level 4.0, and hvc1.2.4.L123.B0 is HEVC Main 10 at level 4.1, as in Apple’s own examples. When a stream uses hev1 or avc3, the inspector says so. Apple’s HLS authoring specification recommends hvc1 and avc1, which store the codec settings in the file header, and an MP4 holding hev1 video may not open in QuickTime.
It also flags two things you need to know before downloading:
- Encryption. An
#EXT-X-KEYor#EXT-X-SESSION-KEYwith a method other thanNONE. When the key format names a DRM system, such as FairPlay (com.apple.streamingkeydelivery) or Widevine, the inspector says it’s DRM. No downloader can save DRM-protected video, and these tools don’t try. - Live playlists. With no
#EXT-X-ENDLIST, the duration and size only cover the segments listed right now.
How the file size is calculated
The inspector uses the most precise method the playlist allows, and says which one it used:
| Method | When it’s used | How precise |
|---|---|---|
| Byte ranges | Every segment has #EXT-X-BYTERANGE |
Exact: the sum of the declared lengths |
| Measured | You click Measure the exact size and the server allows it | Exact: the sum of each segment’s Content-Length, from one HEAD request per segment |
| Average bit rate | The variant declares AVERAGE-BANDWIDTH |
Estimate: average bit rate × duration ÷ 8 |
| Peak bit rate | Only BANDWIDTH is declared |
Upper bound: peak bit rate × duration ÷ 8 |
The estimate is tighter than it looks. RFC 8216 defines AVERAGE-BANDWIDTH as the average segment bit rate of everything the variant plays, including its audio. Apple’s authoring spec (item 1.26) requires an on-demand stream’s average segment bit rate to be “within 10% of the AVERAGE-BANDWIDTH attribute”. So for streams built to Apple’s rules, the estimate is within about 10%.
The measured size is the size of the segments as delivered. If you join transport stream (.ts) segments into an MP4 without re-encoding, the result is slightly smaller. On our 60-second test stream, ten segments totalling 39.7 MB became a 38.6 MB MP4, 2.7% less.
When a playlist address won’t load
A web page can only read a file from another website if that server allows it, through a mechanism called CORS. Many video CDNs allow it, because their players run on other sites, but many don’t. The inspector also sends no cookies, so a playlist that needs your sign-in won’t load either. When that happens:
- Open the browser’s Network panel on the video page and filter for
m3u8. The M3U8 download guide walks through it. - Select the playlist request and open its Response tab.
- Copy all the text and paste it into the inspector. Under Pasted text with relative links?, add the playlist’s address so the inspector can open its variants.
Two more limits: a page served over HTTPS can’t fetch a plain http:// address, and the Measure button needs the server to allow HEAD requests and return Content-Length.
Testing
I tested the parser against the HLS streams I built for our other tool pages: a 1080p and 720p master playlist, TS and fMP4 media playlists, and playlists with byte ranges, FairPlay keys and Windows line endings. It also matches the codec examples in Apple’s specification. The size measurement was checked against the real segment files on disk.
Common questions
Does this download the video?
No. It reads the playlist, and if you ask it to, each segment’s size, without downloading the segments themselves. To save the stream as one MP4, use the button in the results, or generate an FFmpeg command.
Why does a master playlist need a duration from me?
A master playlist only lists versions, not segments, so it doesn’t state how long the stream is. Click Inspect on a variant to read its duration, or type one in.
Why are there two 1080p variants?
They usually differ in codec or bit rate, for example H.264 and HEVC, or SDR and HDR. Compare the codec column.
How do I calculate the size of an HLS stream?
Multiply the variant’s average bit rate by its duration and divide by 8, or let the inspector add up the segments. A 10-minute variant at 5,000 kbit/s is about 375 MB.
What does avc1.640028 mean?
H.264 High profile, level 4.0. The inspector decodes every codec string in the playlist into words like this.
Why won’t my playlist address load?
The server doesn’t allow other websites to read it (CORS), or it needs your sign-in. Paste the playlist’s text from the Network panel’s Response tab instead.
Is my playlist stored?
No. The tool runs entirely in your browser and sends nothing to VidNeat. The only requests this page makes on its own are page-view analytics (Cloudflare’s and our own, described in the privacy policy), and they carry no playlist data.
What sizes does a stream I haven’t found yet have?
Use the video size estimator, which works from Apple’s recommended bit rates.
Summary
Paste an .m3u8 address or its text to see every variant, codec and track, and the stream’s size, exact where the playlist allows and within about 10% otherwise. If the address won’t load, paste the text. To save the stream, use the FFmpeg command generator or our guide to downloading an M3U8 to MP4.
Related reading
How to Download an M3U8 Video to MP4 on Mac (and From Chrome)
An .m3u8 is a text playlist, not a video. What's inside one, why a browser save fails, and three tested ways to turn it into one MP4 on a Mac.
HLS Stream Recorder: How to Save an HLS Stream as MP4
How HLS is built (playlist types, variants, TS and fMP4 segments), what a downloader does to make one MP4, and how live streams differ. Measured.
FFmpeg Command Generator for HLS (M3U8) and DASH Streams
Build a working FFmpeg command for an .m3u8 or .mpd stream, with User-Agent, Referer and Cookie headers, stream copy and trimming. Tested on a strict server.
Video Size Calculator: Bit Rate and Storage by Resolution, FPS and Codec
Estimate a video's bit rate and file size from resolution, frame rate, codec and duration, using Apple's published HLS bit rate ladder, formula shown.
Get the clip you need. Not the entire video.
A native Mac downloader that fetches the range you mark and cuts by copying streams. Requires macOS 14.0 Sonoma or later.
VidNeat is a software tool. You are responsible for having the rights or permission to access, use, edit and export the media you work with.