srakaberlin.blogg.se

Colorconverter canconvertfrom example
Colorconverter canconvertfrom example






colorconverter canconvertfrom example
  1. #COLORCONVERTER CANCONVERTFROM EXAMPLE HOW TO#
  2. #COLORCONVERTER CANCONVERTFROM EXAMPLE CODE#

NV12 is the native format of the GPU, and thus the filters need this format to pass the data to the hardware for acceleration. Here are the problems I've run into trying to use the Intel Media SDK H264 Encoder using Media Foundation:ġ) The encoder requires a NV12 input: "The Intel Media SDK sample filters require the input data to be in NV12 format.

#COLORCONVERTER CANCONVERTFROM EXAMPLE HOW TO#

In this case, I do not know how to make sinkwriter choose CLSID_MF_H264EncFilter to do encoding, not default Microsoft H.264 Encoder MFT. Then CLSID_MF_H264EncFilter would be enumerated.ĭo you know why this case happen? It seems that CLSID_MF_H264EncFilter is already registered in the system, but can not be registered locally. I look up the registry, 6CA50344-051A-4DES-9779-A43305165E35 should mean Micorsoft H.264 Encoder MFT.Īnd if I call like this : hr_SW = MFTEnumEx( MFT_CATEGORY_VIDEO_ENCODER, MFT_ENUM_FLAG_ASYNCMFT | MFT_ENUM_FLAG_LOCALMFT, &InputTypes, &OutputTypes, &ppMFTActivate, &cMFTActivate ) Hr_SW = ppMFTActivate->GetGUID( MFT_TRANSFORM_CLSID_Attribute, &m_clsid ) //get CLSID from this enumerated MFT Hr_SW = MFTEnumEx( MFT_CATEGORY_VIDEO_ENCODER, MFT_ENUM_FLAG_LOCALMFT, &InputTypes, &OutputTypes, &ppMFTActivate, &cMFTActivate )

colorconverter canconvertfrom example

However, when I try to enumerate MFTs, this Intel MFT always can not appear locally. Hr_SW = MFTRegisterLocalB圜LSID( CLSID_MF_H264EncFilter, MFT_CATEGORY_VIDEO_EFFECT, L"Intel\\xae Media SDK H.264 Encoder MFT", MFT_ENUM_FLAG_ALL, 1, &InputTypes, 1, &OutputTypes) OutputTypes.guidSubtype = MFVideoFormat_H264 OutputTypes.guidMajorType = MFMediaType_Video InputTypes.guidSubtype = MFVideoFormat_NV12

colorconverter canconvertfrom example

They told me I could register Intel MFT locally before Media Foundation sinkwriter will select Intel MFT to execuate. In conclusion, the program does not really run Intel MFT. However, when I use Intel Media Checker, the report said that the Intel Media SDK SW and HW encoding functions are both not called. It seems that the HW encoding function is really enabled. I implemented a program for do H.264 encoding based on Microsoft Media Foundation (using sinkwriter method, not media session).Īnd I call regsvr32.exe in the command line to forcelly register mfx_mft_h264ve_32.dll in the system (windows7 + Intel SandyBridge 圆4).Īnd then I run the program.

#COLORCONVERTER CANCONVERTFROM EXAMPLE CODE#

In the folder is Intel Media SDK sample code about Media Foundation plugins (Intel MFT).Ĭ:\\Program Files\\Intel\\Media SDK\\2.1\\samples\\sample_plugins\\mfoundation\\








Colorconverter canconvertfrom example