From 218dd8d7b097bf4be76518686e2c7ab4a62983b5 Mon Sep 17 00:00:00 2001 From: gutmet Date: Tue, 24 Nov 2020 07:46:11 +0100 Subject: [PATCH] cutAndShrinkVideo as standalone - doesn't really work as sequential cut and shrink --- cutAndShrinkVideo | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/cutAndShrinkVideo b/cutAndShrinkVideo index b3c152c..a0595ec 100755 --- a/cutAndShrinkVideo +++ b/cutAndShrinkVideo @@ -5,14 +5,10 @@ if [ "$#" -ne 3 ]; then exit 1 fi -cutFile="$(cutVideo "$1" "$2" "$3")" -echo "cutFile=$cutFile" -status=$? +fullpath="$1" +source fileextensions +outfile="$dir/$filename""CutShrunk.mp4" -if [ $status -eq 0 ]; then - echo "$(shrinkVideo "$cutFile")" - status=$? - if [ $status -eq 0 ]; then - rm "$cutFile" - fi -fi +echo "$outfile" + +ffmpeg -y -ss "$2" -to "$3" -i "$fullpath" -s ega "$outfile"