Skip to content
EPUBCheck · Images, audio and media overlays

EPUBCheck MED-009: zero-length overlay clip

Updated:

EPUBCheck MED-009 is an error message: “The time specified in the clipBegin attribute must not be the same as clipEnd.” In a media overlay, a clip's clipBegin and clipEnd are the same, so the clip has no duration. Nothing would play for that phrase, and EPUBCheck reports it as an error.

The official message

The time specified in the clipBegin attribute must not be the same as 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

  • A clip that was cut to zero length when editing the narration.
  • An alignment tool that could not place a phrase and wrote the same time twice.

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 from the audio file, or remove the par element if the phrase has no narration.
  3. Rebuild the EPUB and run EPUBCheck again to confirm the message is gone.

When it's not this

If clipBegin is later than clipEnd, the error is MED-008.

Terms used here

Other MED messages

  • MED-008 The time specified in the clipBegin attribute must not be after clipEnd.
  • MED_010 EPUB Content Documents referenced from a Media Overlay must specify the "media-overlay" attribute.
  • MED_007 Picture "source" elements must define a "type" attribute when they reference foreign resources; found resource "…" of type "…".
  • MED_011 EPUB Content Document referenced from multiple Media Overlay Documents.
  • MED_012 The "media-overlay" attribute does not match the ID of the Media Overlay that refers to this document.
  • MED-005 Media Overlay audio reference … to non-standard audio type … found.

Sources

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

FAQ

What does EPUBCheck MED-009 mean?

EPUBCheck MED-009 is an error message: “The time specified in the clipBegin attribute must not be the same as clipEnd.” In a media overlay, a clip's clipBegin and clipEnd are the same, so the clip has no duration. Nothing would play for that phrase, and EPUBCheck reports it as an error.

Is MED-009 an error?

MED-009 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.