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"