How to Use the Files/Markers Tabs in the @samvera/ramp Viewer

Overview I looked into how to use the Files/Markers tabs of the @samvera/ramp viewer, one of the viewers compatible with IIIF Audio/Visual, so this is a personal note for future reference. Documentation For Files, documentation was found at the following. https://samvera-labs.github.io/ramp/#supplementalfiles For Markers, documentation is found at the following. https://samvera-labs.github.io/ramp/#markersdisplay Data Used “Kensei News Volume 1” (Nagano Prefectural Library) is used. https://www.ro-da.jp/shinshu-dcommons/library/02FT0102974177 Files Tab It is documented that it reads the rendering property. The rendering property is also featured in the following Cookbook. ...

October 17, 2024 · 24 min · Nakamura

Adding a Table of Contents to Videos Using iiif-prezi3

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

October 9, 2024 · 13 min · Nakamura

Setting Subtitles on Videos Using iiif-prezi3

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. f f f c r r r l o o o a m m m s s d d o p d e e p y o V f f e d t i n u e d l a s g a # w a b n e _ o p e e u i i v o i a i l t d W t i C n d _ f _ i r h i m i l i _ k . t o i a t # w m p m i t d e c r t t u e i p o p e _ o y l a = e e d m G t o r o n _ t i n m i p e h r t r t ( e = e s A a p o _ t # t r t t : s n n c u u f . a o r e A e v o t r d d i e u t p G a t O u l l ( s i i i l x d r e e n u p d o f v . = p o o e p i a n t s m f r r e i a ) e g t S . o o n ( c o i e n n o d : r e O i e t N r _ s t t r d l s A S _ b t p o g o a t f c e r i e e p t I e d o e e n m m ( i r m a p l = o r g o s n n s e a e t l i p n t = a n a m t e v A ( n d e e p _ s " u s n e e = ( I s t t T m . t a c = w d e s n n T " ( e . e e p s u r h i _ c t v r O a l f m m _ e w d i s i o f r u P p f r p p a e i i p e s _ o i e E i , o o o u k t o t l p f r p ) N _ m r r d ( h _ f e i m t A k i _ a a i 0 f w . r l a I e n f r r o ) W i i c - e t _ y p i y y _ h l t l 1 , = A = u l F f i e h i " " P a t e f i i # s . e , v I p _ ( i l l p n W n t _ i m i l e e R e a h t t K _ o n e ( . e r m i . " E k v p s n s e s a Y e i u u a e A , p u " y e t f m t P e d ) ) _ _ f e I " r i p m i , f r o a o x i b A . t v = f l " P t h i " o e ) I r ) e . r a : _ m m p a n p p a o s s a 3 t i c t " = n a r h ) " t u i ) m e d p a p r i t s 3 o i " t _ o t ) o f n e i s m t l . p # h e c _ e : r a E e u x b a d p e t i o g e o r i ( _ t n f n i i i l n n e g : M P 3 f o r m a t Data Used “Kensei News Volume 1” (Nagano Prefectural Library) is used. ...

October 9, 2024 · 17 min · Nakamura

Adding Annotations to Videos Using iiif-prezi3

Overview This is a note on how to add annotations to videos using iiif-prezi3. Adding Annotations Amazon Rekognition’s label detection is used. https://docs.aws.amazon.com/rekognition/latest/dg/labels.html?pg=ln&sec=ft Sample code is available at the following link. https://docs.aws.amazon.com/ja_jp/rekognition/latest/dg/labels-detecting-labels-video.html In particular, by setting the aggregation in GetLabelDetection to SEGMENTS, you can obtain StartTimestampMillis and EndTimestampMillis. However, please note the following. When aggregated by SEGMENTS, information about detected instances with bounding boxes is not returned. Data Used The video “Prefectural News Vol. 1” (Nagano Prefectural Library) is used. ...

October 9, 2024 · 17 min · Nakamura