diff options
author | Grail Finder <wohilas@gmail.com> | 2023-02-12 15:42:52 +0600 |
---|---|---|
committer | Grail Finder <wohilas@gmail.com> | 2023-02-12 15:42:52 +0600 |
commit | 998d56d5b1966696636cc63e799010fa5c349416 (patch) | |
tree | 96a698a85b5b87a94f70b1d5b4c8395ad6a262a1 /cut_by_vtt.sh | |
parent | 79ef44e3b799370c48e8fade52a98a39ae519f6f (diff) |
Chore: clean repo from unused files
Diffstat (limited to 'cut_by_vtt.sh')
-rwxr-xr-x | cut_by_vtt.sh | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/cut_by_vtt.sh b/cut_by_vtt.sh deleted file mode 100755 index 4bbd13e..0000000 --- a/cut_by_vtt.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -set -e - -filepath=${1:-} -audioname=$(printf "$filepath" | sed "s/\(.*\).vtt/\1/") -filename=$(basename "$audioname") - -outdir=/mnt/desktop/media/datasets/nesfatelp_voice/utterances -# outdir=$(dirname "$filepath")/utterances -mkdir -p "$outdir" - - -# given vtt what is original ext? -ffmpeg_commands=$(grep "\-->" $filepath | awk -F " " \ - -v aname="$audioname" \ - -v bname="$filename" \ - -v outdir="$outdir" \ - '{print "ffmpeg -i "aname" -ss " $1 " -to " $3 \ - " -metadata text_source=" aname ".vtt" \ - " -ar 22050 " outdir "/" bname"_" $1"_"$3 ".wav"}') - -while read cline; -do - echo $cline && sleep 1; - eval $cline && sleep 1; -done <<< $ffmpeg_commands |