Receive H264 and HEVC from camera using Media Foundation class

Donthu, Gangadhar 41 Reputation points
2022-11-30T06:58:00.277+00:00

Hi,

I would like to develop an application based on Media Foundation to receive H264 and H265 encoded video streams and pass them to cloud. Please help me with a sample application.

Thanks
GD

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,422 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,542 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Jeanine Zhang-MSFT 9,181 Reputation points Microsoft Vendor
    2022-12-01T02:21:31.237+00:00

    Hello,

    Welcome to Microsoft Q&A!

    First you could try to rreate the appropriate media types for H264 and HEVC. You could refer to the Doc: Writing a Custom Media Source.

    And then you could capture video from a video camera to a file. Here is a sample you could refer to: MFCaptureToFile Sample

    If you want to pass them to cloud in real time, I suggest you could refer to the thread: https://social.msdn.microsoft.com/Forums/en-US/8f67d241-7e72-4509-b5f8-e2ba3d1a33ad/capture-h264aac-stream-via-rtsp-using-media-foundation?forum=mediafoundationdevelopment

    In my opinion, it is related to which cloud do you want to pass the video streams to.

    Thank you.

    Jeanine


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Donthu, Gangadhar 41 Reputation points
    2022-12-08T02:13:21.383+00:00

    Hi @Jeanine Zhang-MSFT , thanks for your inputs.

    How do I send XU commands to camera, like changing the resolution, White balance, 3A settings etc. Please share some example for the same.

    Thanks
    GD