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
32
votes
3 answers

What is the status of Microsoft Media Foundation?

Microsoft Media Foundation (MF) was introduced as the successor of DirectShow in Windows Vista. I have mostly ignored it, but it has some features (such as decoding of WMV AC-1 files) which are hard to implement in DirectShow. Media Foundation is…
Roy T.
  • 9,429
  • 2
  • 48
  • 70
19
votes
9 answers

OpenCV: "[ WARN:0] terminating async callback" when attempting to take a picture

I am trying to take a picture from the defualt carmera with python, to do this I am using openCV (import cv2 as cv from python shell). However, when I attempt to disable the camera it closes but with the error [ WARN:0] terminating async…
Elephant
  • 446
  • 1
  • 7
  • 19
17
votes
1 answer

DirectShow vs. Media Foundation for video capture?

I'm trying to choose between these two APIs for a Video Capture/Monitoring/Streaming application, and I'm not sure which is going to be the best bet. A bit of background: I need it to work with a wide range of video capture cards/dongles. The app…
Roddy
  • 66,617
  • 42
  • 165
  • 277
10
votes
1 answer

Color conversion from DXGI_FORMAT_B8G8R8A8_UNORM to NV12 in GPU using DirectX11 pixel shaders

I'm working on a code to capture the desktop using Desktop duplication and encode the same to h264 using Intel hardwareMFT. The encoder only accepts NV12 format as input. I have got a DXGI_FORMAT_B8G8R8A8_UNORM to NV12…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34
10
votes
2 answers

Intel graphics hardware H264 MFT ProcessInput call fails after feeding few input samples, the same works fine with Nvidia hardware MFT

I'm capturing the desktop using DesktopDuplication API and converting the samples from RGBA to NV12 in GPU and feeding the same to MediaFoundation hardware H264 MFT. This works fine with Nvidia graphics, and also with software encoders but fails…
10
votes
3 answers

Getting green screen in ffplay: Streaming desktop (DirectX surface) as H264 video over RTP stream using Live555

I'm trying to stream the desktop(DirectX surface in NV12 format) as H264 video over RTP stream using Live555 & Windows media foundation's hardware encoder on Windows10, and expecting it to be rendered by ffplay (ffmpeg 4.2). But only getting a green…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34
10
votes
0 answers

hardware accelerated screen capturing library in windows 10

My application is capturing desktop screen(screen sharing) and send to other device. Currently application captures screen with following method - using GDI (Bitblt) - using DirectX(getFrontBufferData) - using DXGI(desktop duplication API) depending…
anurudh
  • 338
  • 1
  • 4
  • 15
10
votes
1 answer

DXGI Desktop Duplication: encoding frames to send them over the network

I'm trying to write an app which will capture a video stream of the screen and send it to a remote client. I've found out that the best way to capture a screen on Windows is to use DXGI Desktop Duplication API (available since Windows 8). Microsoft…
prazuber
  • 1,352
  • 10
  • 26
9
votes
1 answer

GOP setting is not honored by Intel H264 hardware MFT

Problem statement: Intel hardware MFT is not honoring the GOP setting, resulting in more bandwidth consumption in realtime applications. The same code works fine on Nvidia hardware MFT. Background: I'm trying to encode NV12 samples captured through…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34
9
votes
3 answers

Windows Media Foundation MFT buffering and video quality issues (Loss of colors, not so smooth curves, especially text)

I'm trying to encode RGBA buffers captured from an image (RGBA) source (Desktop/Camera) into raw H264 using Windows Media Foundation, transfer them and decode the raw H264 frames received at the other end in real time. I'm trying to achieve at least…
iamrameshkumar
  • 1,328
  • 1
  • 14
  • 34
8
votes
1 answer

DirectShow, Media Foundation, DXVA, what?

I'm tasked with revising an application which uses DirectShow for video rendering. The old application works fine, but it's starting to show age. As I have a gaming background, I figured I should just approach this as such. After having made a bunch…
Lennard Fonteijn
  • 2,561
  • 2
  • 24
  • 39
8
votes
1 answer

Media Foundation with C#

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…
tulipe
  • 676
  • 2
  • 8
  • 22
8
votes
1 answer

Video captured by Media Foundation is vertical mirrorred

I'm using Media Foundation IMFSourceReaderCallback implementation for grabbing video frames from the camera, and then OpenCV imshow to present the frames in a loop. However I get the frames vertically flipped... Is this a bug? Should I set some…
rkellerm
  • 5,362
  • 8
  • 58
  • 95
7
votes
2 answers

Windows 10 Camera frame server, identify actual app using webcam

On windows 10, apps that need access to webcam, communicate with frame server which is a service that runs under svchost. I filter out the webcam stream and the process id i get is of svchost. I want to identify the actual process that is using the…
user3819404
  • 611
  • 6
  • 18
7
votes
4 answers

Media Foundation webcam video H264 encode/decode produces artifacts when played back

I have a solution, where I encode video (YUY2) samples from a webcam with Media Foundation's h264 encoder. Then I send it via TCP connection to another application that decodes the stream with Media Foundation's h264 decoder back to YUY2 format.…
Toni Riikonen
  • 73
  • 1
  • 4
1
2 3
56 57