0x80040265 while render file?

mc 3,221 Reputation points
IGraphBuilder* pGraph;
hr = CoCreateInstance(CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER, IID_IGraphBuilder, (void**)&pGraph);
hr=pGraph->RenderFile(L"d:\\28199253f211dc38eae79da92c44467b.mp4", NULL);

it returns 0x80040265 why?

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,322 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 79,911 Reputation points


    Cannot play back the file: the format is not supported.

    (standard MP4 files work on my PC, but some don't (like HEVC))

    1 person found this answer helpful.

  2. Minxin Yu 8,186 Reputation points Microsoft Vendor

    Hi, @mc

    From the Supported Formats in DirectShow, mp4 is not supported by default filter.
    You may need third party filters.
    User's image

    Best regards,

    Minxin Yu

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments