diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-29 19:01:44 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-29 19:01:44 +0100 |
commit | b5a15f6b160efe9cec77286df2c0dc1748530b1f (patch) | |
tree | 82427cbf83ec2579662d1e3585530028c5b0b695 /src | |
parent | 63d603652ec72930e4ae2bae46276aff1f545f63 (diff) | |
download | advtime-b5a15f6b160efe9cec77286df2c0dc1748530b1f.tar.gz advtime-b5a15f6b160efe9cec77286df2c0dc1748530b1f.tar.bz2 advtime-b5a15f6b160efe9cec77286df2c0dc1748530b1f.zip |
cutting: use printf instead of sed hack to form parameters
Diffstat (limited to 'src')
-rwxr-xr-x | src/cutting | 3 |
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 |