summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-02 20:30:37 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-02-02 20:56:27 +0100
commitd60b01242673e38a3d08e3e6f8aa447a2f24614d (patch)
treede73956f97cc2118c067bae4eb8c74a28e26e97c /src
parentfba94d328c9c0aab1f75cab10542d214074c5054 (diff)
downloadadvtime-d60b01242673e38a3d08e3e6f8aa447a2f24614d.tar.gz
advtime-d60b01242673e38a3d08e3e6f8aa447a2f24614d.tar.bz2
advtime-d60b01242673e38a3d08e3e6f8aa447a2f24614d.zip
Add script to remove a cut-video from a video
Diffstat (limited to 'src')
-rwxr-xr-xsrc/rmcut.sh8
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"`