title: Get Stream Type from Rtp Packets or by Other Methods
body: <p>I have simple Rtsp Source Filter which connects Rtsp Server and get Rtp packets. The problem is that i have to set media subtype in my Rtsp Source Filter Pin...[ Now i give substype hard-coded]</p>
  
  <pre><code>pMediaType-&gt;SetSubtype(&amp;MyHardCodedSubTypeGUID);
  </code></pre>
  
  <p>What i want is create my pin dynamically with subtype according to coming stream. I get h264 and mpeg-4 streams from server.Their rtp packet payload  format is dynamic: 96...Does not help me to identify if stream is mpeg4 or h264...</p>
  
  <p>FFmpeg can able to get stream type[h264,mpeg4] from codec info...But how can i do myself?</p>
  
  <p>Best Wishes</p>