diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-02-02 20:30:37 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-02-02 20:56:27 +0100 |
commit | d60b01242673e38a3d08e3e6f8aa447a2f24614d (patch) | |
tree | de73956f97cc2118c067bae4eb8c74a28e26e97c | |
parent | fba94d328c9c0aab1f75cab10542d214074c5054 (diff) | |
download | advtime-d60b01242673e38a3d08e3e6f8aa447a2f24614d.tar.gz advtime-d60b01242673e38a3d08e3e6f8aa447a2f24614d.tar.bz2 advtime-d60b01242673e38a3d08e3e6f8aa447a2f24614d.zip |
Add script to remove a cut-video from a video
-rwxr-xr-x | src/rmcut.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rmcut.sh b/src/rmcut.sh new file mode 100755 index 0000000..ee293bf --- /dev/null +++ b/src/rmcut.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +./cutint.sh $1 $3 `(echo 0; ./findcut -rT $1 $2) | \ +sed "s/ /\n/g" | while read time +do + read end + [[ $? -eq 0 ]] && echo $time $((end-time)) || echo $time +done | sed "s/[0-9]\{3\}\( \|$\)/.&/g"` |