blob: 74a1590f22f72cc8e9587bf21ce589a8669b1308 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|