During building record graph to file from video and audio sources using Microsoft MPEG-2 Encoder at Windows 8 ICaptureGraphBuilder2::SetOutputFileName return failed 80040154 result - class not registred.
//Adding MPEG2 Encoder Muxer filter to the graph
hr = m_pCapGraphBuilder->SetOutputFileName(&CLSID_CMPEG2EncoderDS, szOutFileName, &pMPEG2EncoderMuxer, &pFileSinkFilter);
Also at graphedit any attempt to insert at graph MPEG-2 Encoder & MPEG-2 Video Encoder filter failed with description: "The filter could not be created. Resourses used by this filter may alreadey be in use. (Return code: 0xc004f011) "
Why this happen and how to avoid this problem?
Will be happy for any suggestions
Are you sure your windows 8 has a MPEG-2 encoder? As I heard from MS, they removed MPEG-2 from Windows 8 and you must buy an encoder by yourself.
User contributions licensed under CC BY-SA 3.0