#!/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=$(printf -- "-ss %s -t %s" $time) ee ffmpeg -y $param -i $FILE -sameq `printf "outfile-%02d.mpg" $i` done