bash script controlling ffmpeg to convert from mkv
Help me debugs this script to create control ffmpeg from a bash script.
for f in $FILES
do
INPUT_MOVIE=`basename "${f%.*}.mkv"`
OUTPUT_MOVIE=${MOVIE:1}
OUTPUT_MOVIE=${OUTPUT_MOVIE:0:2}") processed "${OUTPUT_MOVIE:2}
/usr/bin/ffmpeg -i $INPUT_MOVIE -map 0:0 -vcodec copy -map 0:1 -acodec copy $OUTPUT_MOVIE
/usr/bin/sleep 3
done
I've tried attaching the sleep but the processes seems to start to pile up. Is there a way to do them sequentially so that one video is processed after the other?