mediainfo is a commandline program that can be used to find out information about audio and video files. It displays all the information about the codec, format and bitrate. It also displays information like the title, album and so on, if it is present in the metadata or tags of the file.
It can be installed easily by using the package name mediainfo.
Tried with: MediaInfo 0.7.52 and Ubuntu 12.04 LTS