i found a way to fix the -c i ended up removing the if statement and leaving only the -c copy then it worked I also grabbed and compiled 4.0.2 version of ffmpeg, then ran the files on the same directory as the sh file so far it has converted a small amount and no problems, I would advise the owner to revise the -c=c and r thing as that might be a problem with 4.0.2