📝 Added simple script for converting srt to vtt
This commit is contained in:
parent
eb4ea8696e
commit
bf2097f8d3
1 changed files with 8 additions and 0 deletions
8
scripts/srt2vtt.sh
Executable file
8
scripts/srt2vtt.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue