Get 0xc00d36e6(MF_E_ATTRIBUTENOTFOUND) error via MFSampleExtension_CaptureMetadata attribute RRS feed

  • Question

  • I wish my application can get Metadata from UVC image based on windows media foundation.

    My image capture card had fill in timestamp information in the metadata field.

    And my application  development environment is windows 10, vs2015, and set "target platform version" as "10.0.14393.0"

    the following is my testing code:

    IMFAttributes *spMetadata;
    hr = pSample->GetUnknown(MFSampleExtension_CaptureMetadata, IID_PPV_ARGS(&spMetadata));

    It always return 0xc00d36e6(MF_E_ATTRIBUTENOTFOUND)

    How can I do to fix the error and get correctly metedata?

    Wednesday, December 16, 2020 6:20 AM