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.

fffcrrrloooammmssddopdeepyoVffedtinuedlasga#wabne_opeeuiivoiailtdWtiCnd_f_irhimili_k.toiat#wmpmitdecrttueipope_oyla=eedmGtoron_tinmipehrtrt(e=esAapo_t#trtt:snncuuf.aoreAevotrddieutpGatOull(siiilxdreenupdofv.=pooepiantsmfrreia)egtS.oon(coiennod:reOietNr_sttrdlsAS_btpogoatfcerieeptIedoeenmm(irmapl=orgosnnseaetlipnt=anamtevA(ndeep_s"usnee=(IsttTm.tac=wdesnnT"(e.eepsurhi_ctvrOalfmm_ewdisiofruPpfrppaeiipes_oieEi,ooouktotlpfrp)N_mrrd(h_feimtAki_aai0fw.rlaIenfrro)Wiic-et_ypiyy_hltl1,=A=ulFfiehi""Patefii#s.e,vIp_(illpnWnt_imileeReahttK_one(.ermi."EkvpsnsesaYeiuuaeA,pu"yetfmtPed))__feI"ripmi,froaoxibA.tv=fl"Pthi"oe)Ir)e.ra:_mmpanppaossa3tict"=narh)"tui)medpaprits3oi"t_ot)ofneismtl.p#hec_e:raEeuxbadpetiogeori(_tnfniiilnneg:MP3format

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.

f#cr|loamesxsddipeeioIffiriftilwmramvcvc]vvvw_foiaedatatatttipCatntdntntnttttrldhiu_i_v_v___hei_mfrvfuaaavbaimbtlafzemoaentersnstondooaano.inapnstsln.tdn=tdrbnpw3tneitm(t=oa_yofiygeoer:infas=_na"v=el_niif(e=ne=mpnn=={avtp(tmemsilfaaonvtt==afepsatMffs"ngtoRAtitcg"(otn_ae,e{iea_ento_a"e{mr(ijnslsftpsn_nbnW.satsfsitmfee=iaooa=oveaeneeofa.lsogutn"dabdliMlsnenlftAneransysVdffaftsio..ns,ctou,.T_.en,_=tfapinei_piTiisip(edrto=Ioppdtntfmaj*s_eettnal,Tep.eats*tmfma[e(germujsnhom_aistmema(tsti,nasnx[i(.env_o,f.nii}0oiinstdne"limf/]nddtcti(AsrofpevP=}ir_rint"aelsiav/nia}nn_)dsetdgtagpn/dop(t_(eet1"tnmetaaf_pmo(_",oanats)jaa.iu,()ntthstnvdrmi=i)fohit=laf2o::n)ftf,ce)n):e""hs)Ps{titatcyn_g_apevesne-t,iv=gtma"e.ApsTnjnl.eesneixroo_dtantp}"t"aa/,e,ttpdihaf)"o)go"wner",2m)"aR)tae=ss"otfue:rxcte/Ivttetm",)config,HomepageItem,KeyValueString

The following manifest file is created.

https://d1u7hq8ziluwl9.cloudfront.net/sdcommons_npl-02FT0102974177/manifest.json

{}""""}"}"]"]@itl,r,h,icdya"]e"}"}o{}{}t{}o"pbjql,vm,en:eea"ua"]a"]e"""}"""}m""""""]"]t"l"ibjljpitlitlsithwdi,ae":":rea"ua"adya"]dya"]"dyeiut{}n{}xh:el"Ae"g"pbj"pbj:"pidrentt"[d":t":e:eea":eea":egtam"""]o"""]"tM{S:t:""l""l"["hhtsitititi:pat[r[:":":":":":t"i"dyt{}adyt{}sn a{i{h:h:h":o:"pet"pe":itb[t"[t"[t":n:em""""}"i:em"""}""}"h/f1eutT{tT{tC6"["sitmb,to"sitl,mb,tt/emt pepepa44:":"dyoo""""""an":"dya"]oo"""atds"eisxsxsn80h:"ptdithwdfrsh:"pbjtditfrp1tno1:t:t":0,6t":eiydyeiuog"t":eea"iydyog:u"tn/"/"/a,1tA["v""pidrre:tA["l"Wv""pre/7,""/,/,/s9pn":a::egtamtpn":":ea::emt/h:wjd".snht"hhta"[snh:bt"a"iqwp1,6:t"i{":t"it::t"[Vi{":t:i8{wsu1ttAoh":o"ttA{Toh"iz.e79/apnnt":n:"/apnTnt":"firah6dtsn"tV6"hdtsn"tTh.lorq21i::pi44:"t1i:T:pe"tiu-c8,uotsd80vtuotrsxttowdhz7n/a":e0,6ip7n/aa":tep/la.ihPdtp/,1dshPdtns/"xsa9.glqa1ia"9e:qa1isu/,t:p.jou8guoid,.o/8guocpd//icp.wze7nn16//ze7nrp1v//l"/"jli"h"tu1mdi"h"ilutdposp9l,q,i79p1l,q,pe7t1ruh/.u8nh64uu8tmh"uediicwzgq2"7wzeq7sfntlli"8,hli(n8herseo9l,zq9lmtzqnohmu.ui8.uaii8tnu/dcwlzcwcnlzat-sflluillhguit.ddro9wlo9i"wlinccou.luu.n,luoeoondc9wdce9wntmmtfl.lfl-.l//mm.roc9rogc93soonoul.ouel./dnnendocndnocccssttfultfeuloo/_/.rdo.rrdonmlnsnofunoafutmipdenrdentrdeoblcttoftteofxnr-o/.nr/.dnrtsa0msntosn)to._r2mde.nde".njnyFoctntctntsp/Tno/e.o/e.ol00smstnmstnn-21_md/emd/e"0F0nocstocst,2T2pnod/nod/F09lsmcssmcsT17-_mod_mod0040nomcnomc1212pnmopnmo097Flsomlsom277T-_nm-_nm94"00nso0nso71,12p_n2p_n470FlnsFlns172T-p_T-p_7"900ln00ln7,712-p12-p/40F0l0F0lm12T2-2T2-a790F090F0n771T271T2i/400F400Ffc121T121Tea79007900sn77217721tv/490/490.ac172c172jsa749a749s"n717n717o,v/74v/74nac71ac71"sa/7sa/7,/nv7/nv7pvi/pvi/aadcaadcgseagseae/one/on"p.v2p.v,ama"avagps,gtse4"et"/"2"a,/,nan1o"t,ation",

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.