Git Product home page Git Product logo

mediafoundationsamples's Introduction

Unofficial Windows Media Foundation Samples

Official samples are available here and a brief overview web page here.

A set of minimal sample apps that demonstrate how to use certain parts of Microsoft's Windows Media Foundation API. The original motivation for these samples was an attempt to find a way to stream audio and video from a webcam, encoded as H264 and/or VP8, over RTP and then render at the remote destination. As of January 2020 the MFWebCamRtp sample has been used to stream H264 samples from a webcam source to ffplay.

Rendering

  • MFAudio - Play audio from file on speaker.

  • MFTopology - Plays an mp4 file using the Enhanced Video Renderer in a separate Window. TODO: Audio not working.

  • MFBitmapToEVR - Displays a byte array representing a bitmap on the Enhanced Video Renderer.

  • MFBitmapMFTToEVR - Performs a colour conversion on a bitmap byte array and then dislays on the Enhanced Video Renderer.

  • MFVideoEVR - Display video from an mp4 file in Window WITHOUT using a topology. Write samples to video renderer directly from buffer.

  • MFVideoEVRWebcam - Same as the MFVideoEVR sample but replacing the file source with a webcam.

  • MFVideoEVRWebcamMFT - Same as the MFVideoEVRWebcam sample but manually wires up a color conversion MFT transform instead of setting MF_SOURCE_READER_ENABLE_VIDEO_PROCESSING on the video source reader.

  • WpfMediaUWA - Initial foray into how Media Foundation can work with WPF in a Universal Windows Application (UWA). UWA is currently impractical due to deployment contraints, i.e. Windows Store only. Hopefully in 2020 with the introduction of Windows UI 3.0 using the types of controls in this sample will become practical.

Plumbing

  • MFListTransforms - Lists the available MFT Transforms to convert between two media types.

  • MFMP4ToYUVWithMFT - Reads H264 encoded video frames from an mp4 file and decodes them to a YUV pixel format and dumps them to an output file.

  • MFCaptureRawFramesToFile - Captures 100 samples from default webcam to file.

  • MFWebCamToFile - Captures 100 samples from default webcam to an mp4 file.

Video Capture -> H264 -> RTP

  • MFWebCamToH264Buffer - Captures the video stream from a webcam to an H264 byte array by directly using the MFT H264 Encoder.

  • MFH264RoundTrip - Captures video frames, H264 encode to byte array, decode to YUV (replicates encode, transmit, decode).

  • MFWebCamRtp - Stream webcam video over RTP to ffplay.

mediafoundationsamples's People

Contributors

sipsorcery avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.