Syntax
Attributes
| Attribute | Value | Required | What it means |
|---|---|---|---|
| TIME-OFFSET | Seconds; positive from the start, negative from the end | Yes | Where to start playing. A positive value counts from the start of the playlist, a negative value from the end of the last segment. |
| PRECISE | YES or NO Default: NO | No | YES means start exactly at the offset, without showing earlier frames of that segment. NO means play the whole segment that contains the offset. |
What EXT-X-START means
EXT-X-START gives a preferred point at which to start playing. By default, players should start there when a viewer begins watching, instead of at the start of an on-demand video or near the live edge of a live stream. The tag is optional.
It has two attributes:
TIME-OFFSET- Required. A number of seconds. A positive value counts from the start of the playlist; a negative value counts back from the end of the last segment.
TIME-OFFSET=-30means 30 seconds before the end. PRECISE- Optional,
YESorNO, defaultNO. WithYES, the player starts in the segment that contains the offset but does not show anything before the exact offset. WithNO, it plays that whole segment from its start.
Where it goes
A master or media playlist, at most once. If it is in a master playlist, it should not also be in the media playlists. If it is in both, the values must match; when they do not, players should ignore the one in the media playlist.
Rules from RFC 8216
Section 4.3.5.2 sets these rules:
TIME-OFFSETis required. Its absolute value should not be larger than the playlist's duration.- If it is larger, a positive value means the end of the playlist and a negative value means the beginning.
- In a playlist without
EXT-X-ENDLIST, the offset should not fall within three target durations of the end. - The tag must not appear more than once in a playlist.
Typical uses
- Start a live stream further back from the live edge, for example 30 seconds, to give the player more video in its buffer.
- Skip a countdown or a pre-show slate at the start of a recording.
Common mistakes
- A positive offset on a sliding-window live playlist. The start of the playlist moves as old segments drop off, so the same offset points to a different moment on every reload. A negative offset is more predictable for live streams.
- An offset too close to the live edge, which can cause stalls right after playback starts.
- Different values in the master and media playlists.
How players treat it
Players that support the tag apply it when playback begins, not on later seeks. A start position chosen by the app or the viewer usually takes priority. Support varies between players, so test with the ones your audience uses.
Example
#EXTM3U
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:910
#EXT-X-START:TIME-OFFSET=-24.0
#EXTINF:6,
seg910.ts
#EXTINF:6,
seg911.ts
#EXTINF:6,
seg912.ts
#EXTINF:6,
seg913.ts
#EXTINF:6,
seg914.tsPlayers are asked to start this live playlist 24 seconds before the end, at the start of seg911.ts, which is more than three target durations from the live edge.
How m3u8.cloud handles it
The m3u8 inspector shows the EXT-X-START offset. Downloads do not use it: they begin at the start of the video, or at the trim start you choose.
Related tags
Check the tags in any playlist
Open the m3u8 inspector