What Time Formats Are Valid in SMIL clipBegin and clipEnd?

Synchronized Multimedia Integration Language (SMIL) supports two primary time value categories for the clipBegin and clipEnd attributes: Clock Values and SMPTE Timecodes. These attributes allow authors to extract specific sub-clips from continuous media objects such as audio or video files. Depending on the SMIL profile and player implementation, clock values can be expressed in full clock format, partial clock format, or timecount values with metric units, while SMPTE timecodes allow frame-accurate clipping for professional media.

Clock Values

Clock values describe time offsets relative to the start of the referenced media item. SMIL allows three distinct syntax variations for clock values:

SMPTE Timecode Values

For frame-accurate positioning within professional broadcast and editing formats, SMIL also supports SMPTE (Society of Motion Picture and Television Engineers) timecodes. SMPTE values require the explicit smpte:, smpte-25:, smpte-30:, or smpte-30-drop: prefix to define the exact frame rate and drop-frame specifications:

Syntax Rules and Special Values

When applying clipBegin and clipEnd attributes within SMIL elements like <audio>, <video>, or <ref>, specific syntax constraints apply: