HLS troubleshooting

An HLS segment duration is not a number

A malformed duration can fail parsing before the player requests the media bytes.

A malformed duration can fail parsing before the player requests the media bytes.

Reproduce the condition

The HLS sample below is a small synthetic file. It carries no active media source or account data.

#EXTM3U
#EXT-X-TARGETDURATION:6
#EXTINF:six,
example.ts

What the local check found

Reproducible check against the packaged fixture and parser.
Expected signalObserved signal
Segment duration did not parseSegment duration did not parse · Media URI lacks a segment duration

What to do next

Use the decimal duration emitted by the encoder or packager. Remove any localized words or separators from the duration field.

What to share if the problem continues

  • The exact parser result and version of the importer or player.
  • A minimal redacted sample with dates, IDs or segment names retained as needed.
  • The output after checking the source export separately from the viewer app.

Sources and further reading