summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/cutint.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cutint.sh b/src/cutint.sh
index 0157dc4..d9bc5de 100755
--- a/src/cutint.sh
+++ b/src/cutint.sh
@@ -1,6 +1,8 @@
#!/bin/sh
+# ! /usr/local/bin/bash
-parts=""
+#parts=( )
+set -A parts
if [ $# -lt 5 ]; then
printf "usage: %s input output [start duration [start duration ...]]\n" $0 2>&1
@@ -14,7 +16,9 @@ shift
while [ "x$1" != "x" -a "x$2" != "x" ]
do
- tmp=`mktemp --tmpdir=. --suffix=.mpg`
+# tmp=`mktemp --tmpdir=. --suffix=.mpg`
+ tmp=`mktemp -p . XXXXX`
+ tmp=${tmp}.mpg
start=$1
echo $tmp
ffmpeg -y -i "$input" -sameq -ss "$1" -t "$2" "$tmp"