Mplayer obviously is the best program for recognizing the compression in a given file. I think u should add a feature in mplayer to display the info of a file on the command line.