cutAndShrinkVideo as standalone - doesn't really work as sequential cut and shrink

This commit is contained in:
gutmet 2020-11-24 07:46:11 +01:00
parent cc34de45df
commit 218dd8d7b0

View File

@ -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"