Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Browsing all 1079 articles
Browse latest View live

Unexpected error 0xc00d36b4 The data specified for the media type is invalid,...

We have a video creation module  based on the Microsoft "Tutorial: Using the Sink Writer to Encode Video" at https://msdn.microsoft.com/en-us/library/windows/desktop/ff819477(v=vs.85).aspx.This code...

View Article


encoded mp4 video using moov before mdat

I'm following the documented example shown for creating an encoded video using WMFhttps://msdn.microsoft.com/en-us/library/windows/desktop/ff819477(v=vs.85).aspxHowever I've noticed that the files have...

View Article


Getting ID3D11Texture2D from IMFSample produced by DXVA-enabled decoder MFT

I am trying to use source reader initialized with an H.264 MP4 file and Direct3D 11 device. Windows 10 system, classic desktop application.The background of the process is given in Supporting Direct3D...

View Article

Order of streams in source created using MFCreateAggregateSource

If I combine multiple media sources using MFCreateAggregateSource, is it safe to assume that the streams in the aggregate source will be ordered according to the collection I pass to...

View Article

How to get correct device symbolic link to audio capture device?

Hi, I need to process WM_DEVICECHANGE message for handling an audio device loss.  In case of Video device all work correctly: after receiving DBT_DEVICEREMOVECOMPLETE, I see correct video device id in...

View Article


Media Foundation Samples

I've recently installed Visual Studio 2015 on a Windows 10 system. None of the SDK versions that were installed include the Media Foundation samples. I tried installing the Windows 7 SDK, but it won't...

View Article

How to decode super short H.264 clip properly with MFT

I am using MFT to decode H.264 byte stream, which works well with normal clips. My program is like:(1) Read compressed frame from media file;(2) Call ProcessInput to send this frame to MFT for...

View Article

MPEG2 Playback

Hi,how is it possible to enable the MPEG2 decoder MFT in Windows 8.1 Pro? At the moment I always get the "SL_E_LICENSE_FILE_NOT_INSTALLED" error when I try to activate the decoder...

View Article


MFStartup several calls

Hi,in the Microsoft documentation you can read that you can call MFStartup several times in one program."An application must call this function before using Media Foundation. Before your application...

View Article


IMFSourceReader::ReadSample - notification for receiving all bytes for a...

Hi, using the IMFSourceReader API, how do you know that you receive a whole frame by using the ReadSample method?In my special case, I have a MPEG2 video file. I do not use the SourceReader API to...

View Article

Submitting raw H264 samples to SinkWriter

Hello,I can successfully encode H264 to avi file, using a IMFSinkWriter, by submitting YUV420 frames.Now, I would like to use the SinkWriter not as an encoder, but as a simple AVI writer. I encode the...

View Article

Drive Letter or full path of media device or MTP devices

is there is any solution to find out the full path mtp devices or can enumerate it's drive letter? 

View Article

Codec / format diff between WMP12 and IMFSourceReader

Hi, is there a difference between the format / codec support in Windows Media Player 12 and the format / codec support using IMFSourceReader API?I have a lot of AVI video files (e. g. with DV codec id...

View Article


Requirements for CLSID_CMpeg4sDecMFT

After getting the Microsoft H.264 MFT decoder to output data, I am trying to get the MPEG-4 decoder to do the same, but so far no luck.  I am using the same framework, initializing the...

View Article

IMFSinkWriter: Merit validation failed for MFT (Intel Quick Sync Video H.264...

Hi, We are actually trying the run a simple Reader --> Writer (transcoder, VC1 -> H264) in Media Foundation.  The source data (VC1) is captured with our own equipment, so no "premium protected...

View Article


Video IMFSourceReaderCallback sets MF_SOURCE_READERF_STREAMTICK on first...

My application reads from a webcam using a source reader in async mode. I start video by calling ReadSample() from my source reader.cameraReader->ReadSample(MF_SOURCE_READER_FIRST_VIDEO_STREAM, 0,...

View Article

Hardware 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 Article


difference between IMFSourceReader API and MFTEnumEx, finding decoders

Hi, I have some troubles, finding decoders for "MFVideoFormat_DV25", "MFVideoFormat_DV50", "MFVideoFormat_DV100" as well as "MFVideoFormat_HEVC".MFT_REGISTER_TYPE_INFO info = { MFMediaType_Video,...

View Article

Media Foundation sample timestamps

Hi,I having problems to find a way to query a sample's timestamps is UTC format.Is there an attribute or a function that is equivalent to MFSampleExtension_DeviceTimestamp but that return a value in...

View Article

Intel H264 Encoder MFT Problems on Win 7

Also posted in the Intel Media SDK Forum. I'm trying to get the Intel Quick-Sync H.264 Encoder MFT to work on Windows 7.   I've discovered that it doesn't work with a SinkWriter,  the error I...

View Article
Browsing all 1079 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>