diff options
author | Jan Klemkow <j.klemkow@wemelug.de> | 2013-01-29 17:45:09 +0100 |
---|---|---|
committer | Jan Klemkow <j.klemkow@wemelug.de> | 2013-01-29 17:45:38 +0100 |
commit | a4000bbd9fe488cd914636ce9c7a79157d7bf620 (patch) | |
tree | 81cbafb7928b4594de1e1e13b0c8f1a4476ecb24 /src | |
parent | b883d52980eedb1182c03e4cc8568f72566783ac (diff) | |
download | advtime-a4000bbd9fe488cd914636ce9c7a79157d7bf620.tar.gz advtime-a4000bbd9fe488cd914636ce9c7a79157d7bf620.tar.bz2 advtime-a4000bbd9fe488cd914636ce9c7a79157d7bf620.zip |
add script for video cutting
Diffstat (limited to 'src')
-rwxr-xr-x | src/cutting | 20 |
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 |