ms-media-foundation

About “Using DirectShow filters outside DirectShow?”

邮差的信 提交于 2019-12-06 06:37:29
I have exactly the same question in the following link, Using DirectShow filters outside DirectShow? I am a fresh to direct show and the two answers in that stack is not clear enough to me. And I can not find a way to contact with the author to ask if he solved his problem. Is there a way to do this? Or, could some one give more detail explain about these two answers? What does it means about " "by hand" call the various filter " and what does it means about "wrap the entire filter graph"? I can't comment on the "by-hand" method (bad idea, IMO), but one option for using DirectShow is to wrap

Windows Media Foundation using IMFTransform to decode mp4 movie frames to 2D textures

流过昼夜 提交于 2019-12-06 04:54:54
问题 I'm trying to decode an mp4 video using Windows Media Foundation classes and converting frames in to 2D textures that can be used by a DirectX shader for rendering. I've been able to read the source stream using MFCreateSourceReaderfromURL and been able to read the media type of the stream which has its major type MFMEdiaType_Video and minor type as MFVideoFormat_H264 as expected. I'm now needing to convert this format in to an RGB format that could be used to initialise a D3D11_TEXTURE2D

Change h.264 quality when using SinkWriter to encode video

那年仲夏 提交于 2019-12-06 04:24:29
I am using Microsoft Media Foundation to encode a H.264 video file. I am using the SinkWriter to create the video file. The input is a buffer ( MFVideoFormat_RGB32 ) where I draw the frames and the output is a MFVideoFormat_H264 . The encoding works and it creates a video file with my frames in it. But I want to set the quality for that video file. More specifically, I want to set the CODECAPI_AVEncCommonQuality property on the H.264 encoder. In order to get a handle to the H.264 encoder, I call GetServiceForStream on the SinkWriter. Then I set the CODECAPI_AVEncCommonQuality property. The

Frame loss for above FullHD resolution .Is AVI Decompressor transform filter available in MediaFoundation?

﹥>﹥吖頭↗ 提交于 2019-12-06 03:03:18
I'm developing a multimedia streaming application for Desktop using SourceReader MediaFoundation technique. I'm using USB camera device to show streaming. The camera supports 2-video formats: YUY2 and MJPG . For 1980x1080p YUY2 video resolution, receiving only 48fps for 60fps. I fetched YUY2-RGB32 conversion from MSDN page and using in my application ( Note: I didn't use any transform filter for color conversion). For MJPG video format, I used MJPEG Decoder MFT to convert MJPG - YUY2 - RGB32 and then displaying on the window using Direct3D9. For specific resolution, I'm facing framerate drops

WASAPI Resampling / Windows Media Foundation

我与影子孤独终老i 提交于 2019-12-06 02:30:53
I'm writing a Pro Audio application using WASAPI. This application runs a stream in exclusive mode, and resamples the audio data to and from a constant format in both directions (one resample between the capture device and the app, and another between the app and the output device). There's a page on MSDN about an Audio Resampler DSP here , but I'm not sure if this is the API I want to use. The reason I'm not sure about it is the way the API is designed. Using IMFTransform, I need a bunch of extra buffers that really only complicate the process, and the object is designed almost like a

Media Foundation with C#

萝らか妹 提交于 2019-12-05 16:17:18
Media foundation is the recommended technology by Microsoft and it has really supported it by a lot of samples and explanation but all are with the native code I found a wrapper in sourceforge make me able to use Media Foundation with C# but while I am reading people talk about not every thing can be done by the managed code I have some tasks to do with MF: Capture alive video change resolution and baud rate Encode video decode video Can I use .net in these tasks or I have to use the native code?Is there samples help (please don't mention msdn one from them)? The Media Foundation .NET C#

How to grab constant stream of bitmap images from webcam in c#

五迷三道 提交于 2019-12-05 16:06:59
We have a c# application that performs processing on video streams. This is a low-level application that receives each frame in Bitmap format, so basically we need 25 images each second. This application is already working for some of our media sources, but we now need to add a webcam as an input device. So we basically need to capture bitmap images from a webcam continuously so that we can pass all these frames as a "stream" to our application. What is the best and simplest way to access the webcam and read the actual frames directly from the webcam as individual images? I am still in the

How to take a still photo in either DirectShow or Media Foundation

不想你离开。 提交于 2019-12-05 15:39:37
Is there a way to make a photo (still image) with either DirectShow or Media Foundation APIs? I got video capture working and I can just capture the very first frame and call it a day, but that's not what a photo is. Usually cameras have distinct video and photo modes, where photo mode allows for a lot greater resolution. For example, I have Logitech HD Pro Webcam C920 and it claims to allow to do 15mp photos. The software that came with it takes 5168x2907 photo images. So far I haven't seen any photo mode in DirectShow or Media Foundation, and the highest resolution I can take with that

Why does MediaElement sometimes silently fail and how can I correct it?

牧云@^-^@ 提交于 2019-12-05 09:22:17
In my WPF project I have created a view that includes several MediaElements playing videos. Sometimes, anywhere between one or all of the MediaElements will fail to play the video assigned to them, and will instead show a black rectangle, or not appear at all. The MediaFailed event does not occur when this happens. The MediaOpened event DOES get raised on all the MediaElements, even when they do not play the video. I have installed the latest drivers for my graphics card and that has had no effect on this issue. Is there a procedure I can use to ensure that every MediaElement consistently

IKsPropertySet interface is not supported in IMFMediSource

♀尐吖头ヾ 提交于 2019-12-05 06:12:39
问题 I am porting my Direct Show camera based SDK to MFT. In my old code I have KSProxy interface like IksTopolgy,IKsControl and IKsProperty . IksTopolgy,IKsControl is used to enumerate the property set and IKsProperty to get/set the property value. Now I was trying to same in new code.I am able to enumerate the property i.e following code is supported in MFT. CComPtr<IKsTopologyInfo> ksTopology = NULL; hRet = m_pMediaSource->QueryInterface(&ksTopology); But IKsProperty interface which is used to