From d60b01242673e38a3d08e3e6f8aa447a2f24614d Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sat, 2 Feb 2013 20:30:37 +0100 Subject: Add script to remove a cut-video from a video --- src/rmcut.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 src/rmcut.sh 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"` -- cgit