summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/cutting20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/cutting b/src/cutting
new file mode 100755
index 0000000..74a1590
--- /dev/null
+++ b/src/cutting
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+S="00:00:10.321"
+D="00:00:03.715"
+FILE="../heute100sec.wmv"
+OUT_FILE="output.mpg"
+
+ee() {
+ echo "$@"
+ eval "$@" 2>/dev/null >/dev/null
+}
+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
+
+ ee ffmpeg -y $param -i $FILE -sameq `printf "outfile-%02d.mpg" $i`
+done