This commit is contained in:
gutmet 2020-05-14 20:01:22 +02:00
parent f92fbfc0c7
commit ea5e382e6e
3 changed files with 14 additions and 6 deletions

View File

@ -1,10 +1,16 @@
#!/bin/bash
cutFile="$(cutVideo $1 $2 $3)"
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)"
echo "$(shrinkVideo "$cutFile")"
status=$?
if [ $status -eq 0 ]; then
rm "$cutFile"

View File

@ -2,11 +2,12 @@
if [ "$#" -ne 3 ]; then
echo "USAGE: $0 FILE START DURATION"
exit 1
fi
fullpath="$1"
dir=`dirname $fullpath`
filename=`basename $fullpath`
dir=`dirname "$fullpath"`
filename=`basename "$fullpath"`
extension="${filename##*.}"
filename="${filename%.*}"
outfile="$dir/$filename""Cut.$extension"

View File

@ -2,11 +2,12 @@
if [ "$#" -ne 1 ]; then
echo "USAGE: $0 FILE"
exit 1
fi
fullpath="$1"
dir=`dirname $fullpath`
filename=`basename $fullpath`
dir=`dirname "$fullpath"`
filename=`basename "$fullpath"`
filename="${filename%.*}"
outfile="$dir/$filename""Shrunk.mp4"