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]
pMediaType->SetSubtype(&MyHardCodedSubTypeGUID);
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...
FFmpeg can able to get stream type[h264,mpeg4] from codec info...But how can i do myself?
Best Wishes