Skip to content
EPUBCheck · Images, audio and media overlays

EPUBCheck MED-008: clipBegin after clipEnd

Updated:

EPUBCheck MED-008 is an error message: “The time specified in the clipBegin attribute must not be after clipEnd.” In a media overlay, a clip's clipBegin time is after its clipEnd time. The end of each audio clip must come after its start, or the reading app cannot play the narration for that phrase.

The official message

The time specified in the clipBegin attribute must not be after clipEnd.

Default severity
Error. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.
EPUBCheck version
5.4.0

Typical causes

  • Swapped or mistyped times in the SMIL file.
  • Times written in different formats (seconds and h:mm:ss) and misread when edited by hand.

How to fix it

  1. Open the SMIL file EPUBCheck names and find the audio element at the line it reports.
  2. Correct the times so clipBegin is before clipEnd, checking them against the audio file.
  3. If the times came from an alignment tool, re-run it rather than editing many clips by hand.
  4. Rebuild the EPUB and run EPUBCheck again to confirm the message is gone.

When it's not this

If both times are equal, the error is MED-009.

Terms used here

Other MED messages

  • MED-009 The time specified in the clipBegin attribute must not be the same as clipEnd.
  • MED_007 Picture "source" elements must define a "type" attribute when they reference foreign resources; found resource "…" of type "…".
  • MED_010 EPUB Content Documents referenced from a Media Overlay must specify the "media-overlay" attribute.
  • MED-005 Media Overlay audio reference … to non-standard audio type … found.
  • MED_011 EPUB Content Document referenced from multiple Media Overlay Documents.
  • MED-004 Image file header may be corrupted.

Sources

Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EpubCC.

FAQ

What does EPUBCheck MED-008 mean?

EPUBCheck MED-008 is an error message: “The time specified in the clipBegin attribute must not be after clipEnd.” In a media overlay, a clip's clipBegin time is after its clipEnd time. The end of each audio clip must come after its start, or the reading app cannot play the narration for that phrase.

Is MED-008 an error?

MED-008 is reported as error by default. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.

PDF to EPUB tools

Every tool uses the same engine and starts with a free 5-page sample.