From b5a15f6b160efe9cec77286df2c0dc1748530b1f Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 29 Jan 2013 19:01:44 +0100 Subject: cutting: use printf instead of sed hack to form parameters --- src/cutting | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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 -- cgit