You can use MediaInfo for:
Reading audio and video stream properties from a file.
Extracting frame size, frame rate, color format, and other information for known video streams.
Extracting sample rate, bitrate, channel layout, and other information for known audio streams.
Reading metadata like ID3 tags, OGG tags, and Windows Media attributes.