-
script error
I was able to make a script a few months ago with the generous help of this forum but now it has stopped working. When I try to run:
#!/bin/sh
for (( i=0; i<97; i+=30 ))
do ffmpeg -ss $i -t 10 -acodec copy -vcodec copy -i movie.mp4 index_$i.mov
done
I get the error:
./IndexVidBash.sh: line 1: {rtf1ansiansicpg1252cocoartf1187cocoasubrtf390: command not found
./IndexVidBash.sh: line 2: syntax error near unexpected token `}’
./IndexVidBash.sh: line 2: `\cocoascreenfonts1{\fonttbl\f0\fmodern\fcharset0 Courier;\f1\fnil\fcharset0 LucidaGrande;}’Any suggestion on how to fix this?
Peter
Pedro