Transformer la transcription sortie par peertube en vtt - retour accueil
git clone git://bebou.netlib.re/txt2vtt
Log | Files | Refs |
txt2vtt (259B)
1 #! /bin/sh 2 3 awk ' 4 BEGIN { 5 old="0:00" 6 printf("WEBVTT\n\n") 7 } 8 { 9 match($0,"[0-9]+:[0-9]+") 10 printf("%s.000 --> ",old) 11 text=substr($0,RLENGTH+1) 12 getline 13 match($0,"[0-9]+:[0-9]+") 14 old=substr($0,1,RLENGTH) 15 printf("%s.000\n%s\n\n",old,text) 16 } 17 '