summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-29 19:01:44 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-29 19:01:44 +0100
commitb5a15f6b160efe9cec77286df2c0dc1748530b1f (patch)
tree82427cbf83ec2579662d1e3585530028c5b0b695
parent63d603652ec72930e4ae2bae46276aff1f545f63 (diff)
downloadadvtime-b5a15f6b160efe9cec77286df2c0dc1748530b1f.tar.gz
advtime-b5a15f6b160efe9cec77286df2c0dc1748530b1f.tar.bz2
advtime-b5a15f6b160efe9cec77286df2c0dc1748530b1f.zip
cutting: use printf instead of sed hack to form parameters
-rwxr-xr-xsrc/cutting3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cutting b/src/cutting
index 74a1590..1c0b6db 100755
--- a/src/cutting
+++ b/src/cutting
@@ -13,8 +13,7 @@ i=0
./advtime -d $FILE | while read time
do
i=$((i+1))
- param=$(echo $time | sed -e 's/ / -t /' -e 's/^/-ss /' )
- echo $i $time $param
+ param=$(printf -- "-ss %s -t %s" $time)
ee ffmpeg -y $param -i $FILE -sameq `printf "outfile-%02d.mpg" $i`
done