Questions tagged [ms-media-foundation]

Media Foundation is an API which enables development of multimedia applications on Windows.

Media Foundation is an API which enables development of multimedia applications on Windows. Media Foundation is intended to replace DirectShow.

Please refer Media Foundation documentation for more details.

846 questions
7
votes
2 answers

How to properly use a hardware accelerated Media Foundation Source Reader to decode a video?

I'm in the process of writing a hardware accelerated h264 decoder using Media Foundation's Source Reader, but have encountered a problem. I followed this tutorial and supported myself with Windows SDK Media Foundation samples. My app seems to work…
Vennor
  • 596
  • 6
  • 13
7
votes
3 answers

Using Windows media foundation

Ok so my new gig is high performance video (think Google streetview but movies) - the hard work is all embedded capture and image processing but: I was looking at the new MS video offerings to display content = Windows Media Foundation. Is anyone…
Martin Beckett
  • 94,801
  • 28
  • 188
  • 263
7
votes
1 answer

Media Foundation - How to change frame-size in MFT (Media Foundation Transform)

I am trying to implement an MFT which is able to rotate a video. The rotation itself would be done inside a transform function. For that i need to change the output frame size but i don´t know how to do that. As a starting point, i used the…
sebhaub
  • 714
  • 6
  • 16
7
votes
3 answers

How do I grab frames from a video stream on Windows 8 modern apps?

I am trying to extract images out of a mp4 video stream. After looking stuff up, it seems like the proper way of doing that is using Media Foundations in C++ and open the frame/read stuff out of it. There's very little by way of documentation and…
Shahar Prish
  • 4,838
  • 3
  • 26
  • 47
6
votes
2 answers

Aliasing/Quality issues in Media Foundation H264 hardware encoder, especially for text(aliasing and blur on text)

I've been working on Streaming real-time video using hardware accelerated h.264 encoding, decoding and I've been able to make it work using Windows Media Foundation . I've compressed the frames from RGB to NV12 format using d3d11 Video Processor and…
6
votes
1 answer

Programmatically set Graphics Performance for an app

There is an option in Windows control panel that allows to set a app to "high performance". Control Panel -> System -> Display -> Graphics Settings. On adding my application there, I noticed that, when encoding with Media Foundation and H.265 it…
Michael Chourdakis
  • 10,345
  • 3
  • 42
  • 78
6
votes
0 answers

MediaFoundation SinkWriter: Enabling MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS results in WriteSample failing with E_FAIL error

I'm trying to encode RGB/NV12 samples to h264 and stream the encoded video over WebSocket through SinkWriter by implementing IMFByteStream. For this experiment, I have converted the RGB32 samples to NV12 samples using pixel shaders. The output…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34
6
votes
1 answer

Media Foundation: SPS/PPS problem with Intel hardware MFT

I'm using Intel hardware MFT to encode NV12 frames into H264 stream, and Live555 to stream the encoded frames through RTP over LAN and have ffplay setup at the other end to decode and display the same. The setup works just fine with software…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34
6
votes
1 answer

How does one find out whether a Windows Media Foundation sink writer needs bottom-up or top-down images?

I'm using Windows Media Foundation to create a video file. I've got some code working based on the Using the Sink Writer to Encode Video tutorial. When the input type in MFVideoFormat_RGB32, and the output type is MFVideoFormat_WMV3, and the sink…
Tom Seddon
  • 2,648
  • 1
  • 19
  • 28
6
votes
1 answer

Detect camera rotation on Microsoft Surface?

Is there a reliable way to determine if a camera is rotated on the Microsoft Surface? Basically, I want to know if a specific camera is built into the device (as it will then rotate with the device), is there a way to query this? My problem is that…
monoceres
  • 4,722
  • 4
  • 38
  • 63
6
votes
1 answer

Video Recording Hangs on IMFSinkWriter->Finalize();

I have an issue when finalizing a video recording into an .mp4 using Media Foundation where the call to IMFSinkWriter->Finalize(); hangs forever. It doesn't always happen, and can happen on almost any machine (seen on Windows server, 7, 8, 10).…
Anthony
  • 63
  • 6
6
votes
2 answers

Implementing a Media Foundation Transform (MFT) with DirectX Video Acceleration (DXVA)

The aim is to implement a custom MFT for video processing and synchronization to an external application. The details of are not important. What I would like to achieve as a first step is to get the MFT up and running using DXVA video processing or…
user1015624
  • 103
  • 1
  • 7
6
votes
2 answers

How to play H264 stream with SilverLight?

I have an H264 stream (IIS - smooth streaming) that I would like to play with SilverLight. Apparently SilverLight can do it, but how? Note: the VC-1 stream can be played by the SilverLight, but H264 not.Also, I can provide a stream and any…
6
votes
1 answer

Video composition with Media Foundation

I'm trying to composite 2 videos into one (audio too) and save as a file. Say, show a source video on the left half of the final video and the ohter source on the right. Any encoding is fine. Not with DirectShow. I suspected IMFVideoMixerControl may…
6
votes
2 answers

Windows Media Foundation recording audio

I'm using the windows media foundation api to enumerate both my microphones and available cameras, which both work. Here is my enumeration code: class deviceInput { public: deviceInput( REFGUID source ); ~deviceInput(); int…
OzBarry
  • 1,098
  • 1
  • 17
  • 44
1
2
3
56 57