convert all files in a dir to mp4 ffmpeg code example Example: linux convert files in folder for i in *.avi; do ffmpeg -i "$i" "${i%.*}.mp4"; done