Overview#
This is a memo on how to add a table of contents to videos using iiif-prezi3.
Segment Detection#
We use Amazon Rekognition’s video segment detection.
https://docs.aws.amazon.com/ja_jp/rekognition/latest/dg/segments.html
Sample code is available at the following link.
https://docs.aws.amazon.com/ja_jp/rekognition/latest/dg/segment-example.html
Data Used#
We use “Prefectural News Volume 1” (Nagano Prefectural Library).
https://www.ro-da.jp/shinshu-dcommons/library/02FT0102974177
Reflecting in the Manifest File#
We assume that a manifest file has already been created by referring to the following article.
The following script adds a VTT file to the manifest file.
A manifest file like the following is created.
https://d1u7hq8ziluwl9.cloudfront.net/sdcommons_npl-02FT0102974177/manifest_segment.json
Viewer Display Example#
An example of the display in a viewer is shown below. Theseus Viewer is used.
https://theseusviewer.org/?iiif-content=https://d1u7hq8ziluwl9.cloudfront.net/sdcommons_npl-02FT0102974177/manifest_segment.json

Summary#
I hope this serves as a helpful reference for adding table of contents to video files using IIIF.