IMFSourceReader::ReadSample or MFCaptureToFile memory leak?
I'm concerned that I may have a memory leak in the MFCaptureToFile sample, specifically related to IMFSourceReader::ReadSample. I believe this because on the task manager "Processes" tab I see the...
View ArticleHow to get frame rate (fps) using MF API
Hi,Are there any functions in Media Foundation API similar to IQualProp Interface functions to get playback frame rate?I have looked at MF SDK player samples and Media Foundation Interface functions...
View ArticleHow to use Media Foundation to capture a webcam shot (still) to image file?
Right now I changed MFCaptureToFile sample to get a short (of 1-2 frames) wmv clip and then by separate Video Decompiler program extract the first frame to an image (jpg) file.Can it be done somehow...
View ArticleNeed more information on video formats (memory representation) and IMF2DBuffer
In my application, I capture video using the Media Foundation APIs and convert it to a common format. I need some further clarification regarding the format (memory representation) of a captured video...
View ArticleHow to capture raw format image using media foundation?
Hello, I am new to MediaFoundation's video capture API. 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 CaptureEngine video...
View ArticleMFVideoFormat_v210 not supported?
I have a camera which outputs in this format. But sink writer fails for SetInputMediaType call with Invalid Media Type error.Is this format not supported? Please advise.
View ArticleHardware accelerated SinkWriter Example
Does anyone know of, or have a sample of their own they will share, that illustrates how to use MF to create and use a SinkWriter to hardware encode NV12 input to h264?I can get my code working in...
View ArticleVideo Capture on recent Windows 8.1 Tablets shows very dark video
Hello,I switched from direct show to media foundation to capture video from webcams. It is a desktop application and works well with both direct show and media foundation on Windows 7 and Windows 8.1...
View ArticleMedia Foundation ::How can i limit the size of .dat file in temporary...
Problem ::In my Windows application when i do streaming from TV to Application,it start buffering data in temporary internet folder in the form of .dat file.Size of this file keeps on increasing until...
View ArticleProblem with network source property
When I get network source property follow the windows sdk sample code, I found some issue with the code: PROPERTYKEY key; key.fmtid = MFNETSOURCE_STATISTICS; key.pid = MFNETSOURCE_PROTOCOL_ID; If I...
View ArticleCan't change Properties of axwindowsmediaplayer on second form
I have a C# Forms Application which uses an instance of axwindowsmediaplayer, created at design time, which works fine.I'm now trying to add another media player to a different form in the same...
View ArticleSequencer Source MF_TOPOLOGY_PROJECTSTART not being honoured
I have two audio files:093500.wma MF_TOPOLOGY_PROJECTSTART: 102310000 095100.wma MF_TOPOLOGY_PROJECTSTART: 9701530000Filenames are HHMMSS in UTC.If I seek in my UI timeline to 10:34:50 and start...
View ArticleRate control in custom source
I am implementing a custom source to admit h264 files directly in the Media Foundation pipeline. The custom source works Ok using the MFPlayback2 sample to embed the custom source.A step forward is to...
View ArticleGenerate managed wrapper for Media Foundation
MF team has providedMFManagedEncode which is written in C#, inside the source they have created wrapper for a lot of MF interfaces but not all interfaces, is there have any tool can generate the...
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 get DTS of a frame
Hi,I'm using H.264 MFT to do encoding and mux encoded frames myself into a MP4 file.I could get the timestamp (presentation time) using IMFSample->GetSampleTime(&iSampleTime),But to mux frames...
View ArticleThe sample link for MFDub no longer exists in the Media Foundation Team Blog
I'm looking for the MFDub sample mentioned in the Media Foundation Team Blog. However, the link doesn't work. Could someone please point me to the current source code location to where this and the...
View ArticleAdding a SampleGrabber to the MF_BasicPlayback example, No errors but...
Hi,I have modified the MF_BasicPlayback example from the SDK to include the code from the Using the Sample Grabber Sink example.I have inserted a tee into the video stream so the source node feeds a...
View ArticleTest camera works with amcap (directshow) but not MFCaptureD3D(media...
I have a test camera that works with amcap (directshow) but does not work with MFCaptureD3D(media foundation).The error I get is: 0x80070491 "There was no match for the specified key in the index"on...
View ArticleMedia Foundation functionality vs. DirectShow - video crossfading, playback...
I'm researching the possibility of upgrading some software from DirectShow to Media Foundation, enticed by the possibilities of h.264 support and improved performance via hardware acceleration. I'm...
View Article