for i in *.mov;
do filename=$(basename "$i")
extension="${filename##*.}"
filename="${filename%.*}"
echo "$filename"
ffmpeg -i "$i" -c:v libx264 -crf 23 -c:a aac -q:a 100 "export_${filename}.mp4"
done
Found this code snippet on stack overflow. It worked really well to convert old files to mp4 format