Fix bug with ffmpeg, add existing file detection