0x80040265 while render file?

mc 4,836 Reputation points
2023-11-07T08:03:22.45+00:00
CoInitialize(NULL);
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?

C++
C++
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,784 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 86,231 Reputation points
    2023-11-07T08:34:30.37+00:00

    0x80040265 = VFW_E_UNSUPPORTED_STREAM

    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 12,251 Reputation points Microsoft Vendor
    2023-11-07T09:46:59.4866667+00:00

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.