Captions and subtitles may be available for your video content and you may want to enable them for your IIIF video resources.
Caption and subtitle file formats are used to mark up the external text track resources in connection with the HTML track element of a video file. The markup file formats use time tags that allow for time alignment of the video content with the captions or subtitles.
Offering the caption file as an Annotation on the Canvas that contains the media file itself enables us to express the relationship between the two. The
format properties of the Annotation can be used by the client to identify files in a format supported by the media player for captions. The
motivation value of
supplementing indicates the fact that processing this Annotation is optional.
In addition to this implementation, one should consider offering the captions or subtitles as multiple timed annotations, making the text available in multiple ways. See [Using Annotations for Timed Text].
While captions, subtitles, and transcripts each present some text interpretation of the A/V content, the ways in which they are consumed by users differ. For a more detailed discussion about these differences see Transcripts, Captions, and Subtitles - General Considerations.
Formats other than WebVTT (Web Video Text Tracks) are supported in IIIF, but may not be as widely supported in viewers.
When using segmented WebVTT with HLS, see [Serving HLS Files].
In this example we use a caption file in the WebVTT format, but other options include a subtitle file in the SRT (SubRip Text) or TTML (Timed Text Markup Language) formats, or other text-based format used for the same purpose.