From 85a868877653a56c1133c0a0081c4afa2cb998c0 Mon Sep 17 00:00:00 2001 From: gutmet Date: Sat, 2 May 2020 11:08:32 +0200 Subject: [PATCH] shrinkVideo --- cutVideo | 2 +- shrinkVideo | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100755 shrinkVideo diff --git a/cutVideo b/cutVideo index d73ab5a..0dd3db7 100755 --- a/cutVideo +++ b/cutVideo @@ -11,6 +11,6 @@ extension="${filename##*.}" filename="${filename%.*}" outfile="$dir/$filename""Cut.$extension" -echo "--> $outfile" +echo "$outfile" ffmpeg -y -ss "$2" -t "$3" -i "$fullpath" "$outfile" diff --git a/shrinkVideo b/shrinkVideo new file mode 100755 index 0000000..229569e --- /dev/null +++ b/shrinkVideo @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ "$#" -ne 1 ]; then + echo "USAGE: $0 FILE" +fi + +fullpath="$1" +dir=`dirname $fullpath` +filename=`basename $fullpath` +filename="${filename%.*}" +outfile="$dir/$filename""Shrunk.mp4" + +echo "$outfile" + +ffmpeg -i "$fullpath" -s ega "$outfile" \ No newline at end of file