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

B frames in H.264 MFT

Hi guys,When running Windows Media Foundation H.264 MFT on Win10,  I found that the PTS and DTS of same frame are not equal (pts get from IMFSample->GetSampleTime, and dts from...

View Article


How to switch to the next presentation in a Media Session when using Live...

Hi,i never had any issues with queuing and playing normal topologies before but this one realy makes me struggle. I am on it for almost 3 complete days ( i know its just a trivial problem ... ) but no...

View Article


resize video

Hi, could you tell me the best approach to resize a video (Win7 & Win8)? At the moment I am trying to use the video resizer DSP, but the video is not always resized correctly. Sometimes I get only...

View Article

IMFSample audio sample count

Hi,a IMFSample represents a container for video or audio media data. For video, a sample typically contains one video frame. For audio data, a sample typically contains multiple audio samples, rather...

View Article

MFPutWorkItem requires main thread?

I've been getting an exception in my Windows 7 64-bit C++ application, when calling MFPutWorkItem() on a secondary thread. My IMFAsyncCallback::GetParameters() implementation gets called, but not my...

View Article


cannot add wmp control to visual studio toolbox

 First of all apologies, I have indeed read the before posting thread, but the link to Windows Media Player sdk is broken "we  are   sorry, the page you requested cannot be found".I am trying to use...

View Article

Media Foundation Streaming to callback?

Hi,I would like to stream media file to server or to callback function in the same file or other file somewhere that delivers Byte format? The question is straightforward. I don't want to display Media...

View Article

Media Foundation Streaming?

Hi,I would like to stream media file to server or to callback function in the same file or other file somewhere that delivers Byte format? The question is straightforward. I don't want to display Media...

View Article


CLSID_CResizerDMO resize video frames

Hi, I`ve a video frame with the size 1280 x 720 and I want to resize this frame to 55 x 31. Unfortunately using the video resizer dsp (CLSID_CResizerDMO) it is not always working.When I set the output...

View Article


How to get bitrate statistics from a H.264 Encoder to do a "Post Encoding...

Hi,i need to update the Average ( Actual ) Bitrate afte encoding is done. ThePostEncodingUpdate method in the "1-Pass Windows Media Encoding" tutorial works with Windows Media Codecs, but for H.264...

View Article

keyframe spacing / video GOP information

Hi,how can I get the information if all video samples are independent (using the SourceReader API)? I tried MF_MT_ALL_SAMPLES_INDEPENDENT; but the return value is always that this attribute was not...

View Article

where do I get the IID_IDirect3DDeviceManager9 interface?

Hi, could you tell me the steps to get the IDirect3DDeviceManager9 interface to setup the video decoder using DXVA?I use the MFTEnumEx method to get the video decoder transform interface (IMFTransform)...

View Article

How do I create a IMFMediaSource from a PCM stream.

Hi,I have configured a MediaSession with a custom topology and have gotten it to work for outputting sound files.  Now I want to take a stream from ISpVoice (SAPI) and run the stream through the same...

View Article


How to Access AVStream Extended Camera Control Properties via Media Foundation

I'm looking for the API in Media foundation to access the extended camera controls KSPROPERTYSETID_ExtendedCameraControl For example:  KSPROPERTY_CAMERACONTROL_EXTENDED_PHOTOMODE,...

View Article

Code for MFManagedEncode

Where can I find the code to MFManagedEncode?  Thanks.

View Article


Custom D3D11-based EVR presenter/mixer

The EVR supports custom presenter and mixer implementations. The documentation about implementing IMFVideoDeviceID in a custom presenter states: "If you replace both components [mixer and presenter],...

View Article

Handling of ID3 tags using the Media Foundation API and MP3 (using C++)

I am working on an existing utility that can take an audio file, such as uncompressed audio, and encode it to a different format, such as AAC or MP3. In my case, I am actually doing both AAC and MP3....

View Article


How can I manually create H264 IMFSamples to feed a XAML Media Element in...

My goal is to be able to play an H264 bitstream from a network source in a XAML media element. I can get the H264 samples from the bitstream but so far the only way I have ever been able to display...

View Article

How to switch to the next presentation in a Media Session when using Live...

Hi,i never had any issues with queuing and playing normal topologies before but this one realy makes me struggle. I am on it for almost 3 complete days ( i know its just a trivial problem ... ) but no...

View Article

How to resize a Video Stream during encoding in a Media Session ? Is there...

HiI had to delete my other Question as it turned out i can test Resizing in the same Project by just modifying the D3D Rendering. The Problem is still the same :I do some Encoding in a Media Session...

View Article
Browsing all 1079 articles
Browse latest View live