summaryrefslogtreecommitdiff
path: root/src/cutting.sh
blob: 032ea03a0bd7a54095b0a9f1d7e8410c105fbf94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

S="00:00:10.321"
D="00:00:03.715"
FILE="../heute100sec.wmv"
OUT_FILE="output.mpg"

ee() {
	echo "$@"
	eval "$@" </dev/null 2>/dev/null >/dev/null
}
i=0
./cuttime -d $FILE | while read time
do
	i=$((i+1))
	param=$(printf -- "-ss %s -t %s" $time)

	ee ffmpeg -y -i $FILE -sameq $param `printf "outfile-%02d.wmv" $i`
done