📝 Added simple script for converting srt to vtt

This commit is contained in:
z3rOR0ne 2023-01-05 21:11:06 -08:00
parent eb4ea8696e
commit bf2097f8d3

8
scripts/srt2vtt.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
OUT=${1%.srt}.vtt
echo "WEBVTT" >> $OUT
echo "" >> $OUT
sed 's#\([0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}\),\([0-9]\{3\}\)#\1.\2#g' $1 >> $OUT