coffee_out=""
coffee_fill="splitAt"
coffee_end="selfcontained o output.mov $2"
textArray[0]="" # hold text
c=0 # counter
# read whole file in loop
while read c_out line
do
if test $c_out #check there is a value especial for /n for the fix from excel
then
textArray[$c]="$c_out $line" # store line
c=$(expr $c + 1) # increase counter by 1
coffee_out="$coffee_out $coffee_fill $c_out"
fi
done < $FILE
coffee_out="$coffee_out $coffee_end"
echo $coffee_out
splitmovie "$coffee_out" #The final output should look something like #splitmovie -splitAt 2 -splitAt 3 -self-contained -o output.mov recode.mov
exit 0
I call the script with two arguments the text file and the quicktime
./split.sh testdata.txt recode.mov
I am a newbie at writing scripts so it could be something really dumb.
I think it is most likely to be me using the wrong way to set the input for splitmovie.
i think i am hopefully focusing in on where the problem is.
when i print out $coffee_out at the end and look at it in a hex editor
the line looks like
splitmovie ...splitAt 3 ...self...contained ...o sdfsf.mov recode.mov.