mft

Video Processor MFT (Media Foundation) missing under Windows 7 Pro 64bit

核能气质少年 提交于 2020-04-15 15:59:29
问题 I want to use the "Video Processor MFT" of the Media Foundation transforms and I'm using Windows 7 Pro SP1 64bit. But this MFT is missing on my system VS2013 en VS2015RC installed. On a Windows 8.1 system it's there and I read at some places that it should work under Windows 7. Does someone know how to get this MFT at my system? I cannot find it anywhere. 来源: https://stackoverflow.com/questions/31036950/video-processor-mft-media-foundation-missing-under-windows-7-pro-64bit

Trying to get MFT table from Python 3

偶尔善良 提交于 2020-02-02 13:57:07
问题 I try to read MFT table from my local disk from python. Of course, if I write something like this: input_file = open('C:\$MFT', "rb") I will get [ Errno 13] Permission denied: 'C:\$MFT' I tried to use pyMFTGrabber, but it doesn't work; I got a lot of "socket.errors". What the best and easy way to read this file, using Python? Maybe it is some WinAPI, or something else? After reading I want to analyze it with "analyzeMFT" 回答1: It's rather painful with python, since it's not exactly low-level.

Set attributes via ICodecAPI for a H.264 IMFSinkWriter Encoder

北城以北 提交于 2020-02-02 06:12:14
问题 I am trying to tweak the attributes of the H.264 encoder created via ActivateObject() by retrieving the ICodecAPI interface to it. Although I do not get errors, my settings are not taken into account. Code runs under Windows 10. I copy the code I use to create the IMFSinkWriter and retrieve the ICodecAPI below. Error handling not shown, but no error are produced. I have read this thread which implies that tweaking the encoder used by IMFSinkWriter may not be possible, but since there's no

Set attributes via ICodecAPI for a H.264 IMFSinkWriter Encoder

和自甴很熟 提交于 2020-02-02 06:11:09
问题 I am trying to tweak the attributes of the H.264 encoder created via ActivateObject() by retrieving the ICodecAPI interface to it. Although I do not get errors, my settings are not taken into account. Code runs under Windows 10. I copy the code I use to create the IMFSinkWriter and retrieve the ICodecAPI below. Error handling not shown, but no error are produced. I have read this thread which implies that tweaking the encoder used by IMFSinkWriter may not be possible, but since there's no

How to create IMFSample from D11 texture for Intel MFT encoder

故事扮演 提交于 2020-01-02 15:27:42
问题 I want to encode video using the "Intel® Quick Sync Video H.264 Encoder MFT". If I create IMFSample from system buffers, it works well. Just like following: IMFMediaBuffer *pBuffer = NULL; MFCreateMemoryBuffer(cbSize, &pBuffer); BYTE *pData = NULL; pBuffer->Lock(&pData, NULL, NULL); memcpy(pData, bufferIhaveinYYYYUV format, buffer size); pBuffer->Unlock(); IMFSample *pSample = NULL; MFCreateSample(&pSample); pSample->AddBuffer(pBuffer); Now I'm investigating whether I can feed it

Setting larger GOP size in MediaFoundation hardware MFT

天大地大妈咪最大 提交于 2019-12-22 10:09:36
问题 I'm trying to live stream the desktop that's captured through Desktop duplication API. H264 encoding works fine, except the fact that the Desktop duplication API delivers frames only when there is a screen change, but video encoders expect the frames to be delivered at a constant frame rate. So, I'm forced to save the previous sample to feed the encoder at a constant rate when there is no screen change triggered. This works, I could see live output at the other end. One problem though, the

How to use hardware H.264 encoder in Windows Media Foundation

我的未来我决定 提交于 2019-12-12 22:01:34
问题 I'm writing a program using H.264 encoder MFT to do video encoding. The way I'm using to select/create the encoder is like: MFT_REGISTER_TYPE_INFO encoderInfo; encoderInfo.guidMajorType = MFMediaType_Video; encoderInfo.guidSubtype = MFVideoFormat_H264; // H.264 Encoder class id is not exposed, so we have to enumerate HRESULT hr = MFTEnum(MFT_CATEGORY_VIDEO_ENCODER, 0, NULL, &encoderInfo, NULL, &pCLSIDs, &nCount); if (nCount == 0) { break; } //Create H.264 Encoder MFT instance ciEncoder

how encode bitmap with H264 video encoder MFT in windows

﹥>﹥吖頭↗ 提交于 2019-12-12 17:10:39
问题 My application do encoding of captured frame from GDI or DXGI method. currently i am doing encoding with help x264 library. AFAIK x264 is software based library, i want to do encoding with help of GPU, so it can save CPU cycles and hope speed also will be faster. After searching, I found a H.264 Video Encoder MFT which is doing h264 encoding. But couple of questions are answered for me. 1) is It faster than x264 encoding library? 2) can bitmap frame be encoded with help this MFT? - i have

Video resizing with the Video Processor MFT

核能气质少年 提交于 2019-12-12 06:19:21
问题 I'm using the video processor MFT for pixel format conversion. That works fine. But when I change the input size and keep the output the same the processing of the input hr = ColorConv->ProcessInput(0, pSample, 0); fails with: The data specified for the media type is invalid, inconsistent, or not supported by this object. I think I need to make some settings for the video resizer but I can't figure out the minimal conditioins. What I read is that I need to set SetFullCropRegion but that does

Hardware Accelerated Image Scaling in windows using C++

坚强是说给别人听的谎言 提交于 2019-12-11 00:36:20
问题 I have to scale a bitmap image (e.g 1280 x 720 to 1920 X 180 and vice versa). I am using this scaling in video capturing from screen. Software based scaling consumes lots of CPU scaling and slower as well. Is there any hardware accelerated API or library to perform scaling? Some methods are discussed in thread How to use hardware video scalers?. Buts no final conclusion. Support Needed : Windows 7 onwards 回答1: If you have a a IDirect3DTexture9 of the image to be scaled, you can use