[tracker] Improve detection of media stream properties.

Use the much more comprehensive avformat_stream_info to probe
data from packetized data rather than directly trying to partially
decode frames.