Move copy operation to the top so ffmpeg overwrites the file only (instead of cp overwriting it).