Create convert.sh
Added script which coverts subs from .vtt to .srt
This commit is contained in:
committed by
GitHub
parent
eee3615a76
commit
2e4f0044ab
10
convert.sh
Normal file
10
convert.sh
Normal 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
|
||||||
Reference in New Issue
Block a user