From 2e4f0044ab54eecef81567acc081ba563d0b01df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Ko=C5=82aczy=C5=84ski?= <65826144+kolaczyn@users.noreply.github.com> Date: Wed, 1 Jul 2020 09:41:04 +0200 Subject: [PATCH] Create convert.sh Added script which coverts subs from .vtt to .srt --- convert.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 convert.sh diff --git a/convert.sh b/convert.sh new file mode 100644 index 0000000..9b4e444 --- /dev/null +++ b/convert.sh @@ -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