2020-05-02 11:16:05 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-05-14 20:01:22 +02:00
|
|
|
if [ "$#" -ne 3 ]; then
|
2020-08-17 12:57:45 +02:00
|
|
|
echo "USAGE: $0 FILE START END"
|
2020-05-14 20:01:22 +02:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
cutFile="$(cutVideo "$1" "$2" "$3")"
|
|
|
|
echo "cutFile=$cutFile"
|
2020-05-02 11:16:05 +02:00
|
|
|
status=$?
|
|
|
|
|
|
|
|
if [ $status -eq 0 ]; then
|
2020-05-14 20:01:22 +02:00
|
|
|
echo "$(shrinkVideo "$cutFile")"
|
2020-05-02 12:00:28 +02:00
|
|
|
status=$?
|
|
|
|
if [ $status -eq 0 ]; then
|
|
|
|
rm "$cutFile"
|
|
|
|
fi
|
2020-05-02 11:16:05 +02:00
|
|
|
fi
|