Menu

Find the correct mediatype for AMMediaType

2009-09-21
2012-10-29
  • kabilius kabilius

    Hi all,

    I am setting the parameters of AMMediaType, and I am keep getting errors at
    the filtergraph.connect stage because the AMMeidaType parameters are incorrect
    (I think that's the cause of the exception).
    Is there a DirectShow method which gets the correct majorType, subType,
    formatType of a media file?

    Thank you,
    kab

     
  • snarfle

    snarfle - 2009-09-21
    Well, depending on what you are trying to do, you might look at
    IMediaDet::get_StreamMediaType. Note the limitations that are discussed here:

    http://msdn.microsoft.com/en-
    us/library/dd390180%28VS.85%29.aspx

     
  • kabilius kabilius

    Hi snarfle,

    Thank you, this is exactly what I need.

    Have a good evening,
    kab

     

Log in to post a comment.