Syntax
What EXT-X-I-FRAMES-ONLY means
EXT-X-I-FRAMES-ONLY says that each media segment in the playlist is a single I-frame. An I-frame (intra-coded frame) is a video frame that can be decoded on its own, without any other frame. A playlist of I-frames lets a player show a picture quickly at any point, which is what fast forward, rewind and scrubbing previews need.
In such a playlist, the EXTINF duration of each segment is the time from that I-frame to the next one, or to the end of the presentation for the last one. There is no audio.
Where it goes
Media playlists only, once, and it applies to the whole playlist. A master playlist points to I-frame playlists with EXT-X-I-FRAME-STREAM-INF, not with EXT-X-STREAM-INF.
Rules from RFC 8216
Section 4.3.3.6 sets these rules:
- The tag requires
EXT-X-VERSION4 or higher. - Files that hold I-frame segments must either start with a Media Initialization Section or have an
EXT-X-MAPtag, so players can load the frames in any order. - When an I-frame segment is a byte range, the range must not include the initialization section. Players can assume that section is given by
EXT-X-MAP, or sits between the start of the file and the first I-frame. - Using
EXT-X-MAPin an I-frame playlist requires version 5. - Any playlist referenced by
EXT-X-I-FRAME-STREAM-INFmust contain this tag.
I-frame playlists often do not store frames separately. They use EXT-X-BYTERANGE to point at the I-frames inside the regular segments, so no extra media files are needed.
Common mistakes
- Listing an I-frame playlist as a normal quality with
EXT-X-STREAM-INF. Players then offer a silent slideshow as if it were a video. - Wrong byte ranges. A range that starts in the middle of a frame, or includes the initialization section, gives broken pictures.
- A missing version tag. The playlist needs at least version 4.
How players treat it
Players that support trick play use I-frame playlists for fast forward, rewind and previews while scrubbing. Support varies from player to player, and players that do not use them ignore the I-frame entries in the master playlist.
Example
#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:4
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-I-FRAMES-ONLY
#EXTINF:2.002,
#EXT-X-BYTERANGE:9024@376
main.ts
#EXTINF:2.002,
#EXT-X-BYTERANGE:8648@752000
main.ts
#EXT-X-ENDLISTEach segment is one I-frame inside main.ts; the first 376 bytes of the file hold the initialization section, which the byte ranges leave out.
How m3u8.cloud handles it
I-frame-only playlists are not offered as download qualities. They hold single frames for fast forward and scrubbing, not watchable video with sound.
The EXT-X-I-FRAME-STREAM-INF lines that point to them are listed in the m3u8 inspector.
Related tags
Check the tags in any playlist
Open the m3u8 inspector