Batch encode files in a directory using ffmpeg