Implement basic stream detection.

detect codec and type of stream and basic information