snippets/cutAndShrinkVideo

19 lines
292 B
Plaintext
Raw Normal View History

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")"
status=$?
if [ $status -eq 0 ]; then
rm "$cutFile"
fi
2020-05-02 11:16:05 +02:00
fi