Media info and tags support.

This patch adds support to retrieve media information for
audio/video/text streams.