find . -name "*.MP4" -exec test ! -e '{}c.MP4' ; -exec ffmpeg -i {} -c:a copy -c:v libx264 -preset slow -crf 18 "{}c.mp4" ;
See http://askubuntu.com/questions/707397/batch-convert-h-265-mkv-to-h-264-with-ffmpeg-to-make-files-compatible-for-re-enc see https://trac.ffmpeg.org/wiki/Encode/YouTube