2020-05-02 11:16:05 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-05-14 20:01:22 +02:00
|
|
|
if [ "$#" -ne 3 ]; then
|
|
|
|
echo "USAGE: $0 FILE START DURATION"
|
|
|
|
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
|