aboutsummaryrefslogtreecommitdiff
path: root/cutAndShrinkVideo
blob: ac0bb230df1b4321142b967fea99021215b4e0cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

if [ "$#" -ne 3 ]; then
  echo "USAGE: $0 FILE START DURATION"
  exit 1  
fi

cutFile="$(cutVideo "$1" "$2" "$3")"
echo "cutFile=$cutFile"
status=$?

if [ $status -eq 0 ]; then
  echo "$(shrinkVideo "$cutFile")"
  status=$?
  if [ $status -eq 0 ]; then
    rm "$cutFile"
  fi
fi