check the filename before trying to run mediainfo