check filetype before bitrate