Create convert.sh

Added script which coverts subs from .vtt to .srt
This commit is contained in:
Paweł Kołaczyński
2020-07-01 09:41:04 +02:00
committed by GitHub
parent eee3615a76
commit 2e4f0044ab

10
convert.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
# it converts the subs from .vtt to .srt
for filename in subs/*; do
file="${filename%.*}";
in="${file}.vtt"
out="${file}.srt"
ffmpeg -i $in $out
done