From a4000bbd9fe488cd914636ce9c7a79157d7bf620 Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Tue, 29 Jan 2013 17:45:09 +0100 Subject: add script for video cutting --- src/cutting | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 src/cutting 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 -- cgit