IMFSourceReader to play back H264 from network (RTP)
I have implemented a custom media source (IMFMediaSource and IMFMediaStream) to feed packets for a IMFSourceReader created with MFCreateSourceReaderFromMediaSource.I have followed the custom media...
View Articlelibraries cannot be read
I'm using an "old" ide for developping win32 applications. I have downloaded both the 6.1 as the 8.1 windows sdk. My ide cannot use the libraries shipped with the 8.1 sdk. The headers of the 6.1 sdk...
View ArticleCapture video from webcam and write as ismv (fragmented mp4)
Hello,I want to capture video from the media device (Webcam) and write stream in the form of ismv (framented mp4).I have used Microsoft media foundation tool to capture video.And I have smooth...
View ArticleMedia Foundation H264 encoder - IMFTransform::SetOutputType() return...
I want to use Media Foundation H264 encoder to encode some Sample. But I'm failed while I call IMFTransform::SetOutputType() method and get MF_E_ATTRIBUTENOTFOUNDerror code.The step I use the H264...
View ArticleIMFTransform problem in decoding h.264
Help to see if there is any problem with the following code. ppDecoder->processout returns no s_ok, and at last no video data got out.IMFActivate **ppActivate = NULL; UINT32 count = 0;...
View ArticleHow to use SourceReader (for H.264 to RGB conversion)?
I'm trying to move from DirectShow land to Media Foundation and an trying to build around some existing code. Unfortunately I've run in some issues. Basically what I want to do is take an MPEG4 video...
View ArticleSetInputType fails on Hardware MFT
I have code that activates the Intel M-JPEG Decoder MFT. Calling SetInputType on the MFT return E_FAIL. Is there another attribute that must be set on the MFT? This code works on synchronous MFT...
View ArticleTopoedit error: Topoedit.exe is not a valid win32 application
Hi,I have recently downloaded and installed the Windows SDK to start some Windows desktop media application development. If it helps give context for an answer, I only have Windows 7 so I downloaded...
View ArticleHow to tear down the topology connection in media foundation and change video...
Hi,I'm working on media foundation to show preview from USB camera.I used Media Session to show preview.I built partial topology such as follows : Video Capture Device(Source node)->EVR...
View ArticleDoes Windows take the most exceedingly practical method of displaying image...
I know an app of machine vision that takes 0% CPU usage rate while displaying very high resolution image(2000x5000, 10000x10000 , and higher, of cource with two scrolls) captured by an industrial...
View ArticleUse Work Queues or regular threads for Vista compatible WASAPI?
We have an application which has used WASAPI for years with both Exclusive and Shared Event driven mode. In exclusive mode, we use the 3ms buffer. If that is too small for our users' machines, we...
View ArticleIMF Source Reader leaking/consuming memory
I don't know if it's not source reader basic behavior, but even thoug I am releasing every sample it keeps consuming memory up to size of file that is being red. Source reader: hr =...
View ArticleIMFSourceReader and MFVideoFormat_NV12 subtype
I'm trying to get the RGB frames from a video using the IMFSourceReader, all works fine so far; but I've noticed the frame format returned by the IMFSample interface when the output subtype is...
View ArticleSource Reader ReadSample(), IMFSourceReaderCallback::OnReadSample() memory leak?
First Executehr = m_pReader->ReadSample( (DWORD)MF_SOURCE_READER_FIRST_VIDEO_STREAM, 0, NULL, // actual NULL, // flags NULL, // timestamp NULL //...
View ArticleMedia Foundation - How to use custom wav byte stream parser
Hi,I am working on a win32 MFT application and I would like to use my custom .WAV byte stream parser instead of OS in-built wav parser. the application always uses the in-built wav parser even though I...
View ArticleDX11 Video Renderer sample code is incomplete.
Your ref : http://code.msdn.microsoft.com/windowsdesktop/DirectX-11-Video-Renderer-0e749100 Dear Sirs, So ... that project creates a DLL, which isn't a standard EVR so I have no clue how to fire it...
View Articlesometimes readsample() do not let onreadsample() happen in asynchronous mode?
when i debug my program, i find that sometimes readsample() do not let onreadsample() happen in asynchronous mode. Hot to know if a readsample() do not let onreadsample() happen?
View ArticleIMFCaptureEngineOnSampleCallback::OnSample callback stalls :(
Hello,New to MediaFoundation's video capture API here. But I have an app that performs a video capture preview of a webcam. I picked up most of the ideas from this sample code...
View ArticleHow to display high resolution video frames with low time consumption
My app takes very high CPU usage rate and very long time when displaying a frame of size 2000x5000 or 10000x10000 captured by a camera What is the method I should use?
View ArticleInvoke executed by queue created with MFAllocateWorkQueue stopped to run...
Hello Folks,Quite strange situation. I have my own source and to improve performance switched from MFASYNC_CALLBACK_QUEUE_STANDARD to custom one. Initially I had problem with performance but not with...
View Article