bugfixes
This commit is contained in:
parent
f92fbfc0c7
commit
ea5e382e6e
|
@ -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"
|
||||
|
|
5
cutVideo
5
cutVideo
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user