summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcut_by_vtt.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cut_by_vtt.sh b/cut_by_vtt.sh
index d85743f..a4576a2 100755
--- a/cut_by_vtt.sh
+++ b/cut_by_vtt.sh
@@ -6,7 +6,7 @@ filename=${1:-}
audioname=$(printf "$filename" | sed "s/\(.*\).vtt/\1/")
# given vtt what is original ext?
-ffmpeg_commands=$(grep "\-->" $filename | awk -F " " '{print "ffmpeg -i "$audioname" -ss " $1 " -to " $3 " -vn -acodec copy " NR ".ogg"}')
+ffmpeg_commands=$(grep "\-->" $filename | awk -F " " -v aname="$audioname" '{print "ffmpeg -i "aname" -ss " $1 " -to " $3 " -vn -acodec copy " NR ".ogg"}')
while read cline;
do