Overview#
This is a memo on how to set subtitles on videos using iiif-prezi3.
Creating Subtitles#
Subtitle files were created using the OpenAI API. The video file is converted to an audio file.
Data Used#
“Kensei News Volume 1” (Nagano Prefectural Library) is used.
https://www.ro-da.jp/shinshu-dcommons/library/02FT0102974177
Reflecting in the Manifest File#
Assuming a manifest file has already been created, referencing the following article among others.
The following script adds the VTT file to the manifest file.
The following manifest file is created.
https://d1u7hq8ziluwl9.cloudfront.net/sdcommons_npl-02FT0102974177/manifest.json
Viewer Display Example#
The following is an example of display in a viewer. Theseus Viewer is used.
https://theseusviewer.org/?iiif-content=https://d1u7hq8ziluwl9.cloudfront.net/sdcommons_npl-02FT0102974177/manifest_vtt.json

Summary#
We hope this serves as a useful reference for setting subtitles on video files using IIIF.