summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Klemkow <j.klemkow@wemelug.de>2013-02-02 14:31:09 +0100
committerJan Klemkow <j.klemkow@wemelug.de>2013-02-02 14:31:09 +0100
commita6696a4c2cb5ec1f805441b6b4b163ede8fd0fb4 (patch)
treed6b33e0b26e6bef21280fd51faa937e76e642885 /src
parentea37fdbf7acee96f07dd709b2cbf545dd9b42a50 (diff)
downloadadvtime-a6696a4c2cb5ec1f805441b6b4b163ede8fd0fb4.tar.gz
advtime-a6696a4c2cb5ec1f805441b6b4b163ede8fd0fb4.tar.bz2
advtime-a6696a4c2cb5ec1f805441b6b4b163ede8fd0fb4.zip
convert cutint.sh to BSD behavia
Diffstat (limited to 'src')
-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"