0

I want to record a section of my monitor and system audio. I will capture screen using wgc and audio using wasapi.

https://learn.microsoft.com/ko-kr/windows/uwp/audio-video-camera/screen-capture-video

docs above says I can use mediaTranscoder to capture video. But it seems to accept only one mediaSourceStream. what can I do for adding Audio mediasourceStream captured by wasapi? I thought I can use mediaComposition to merge mutliple mediaStreamSource, but it doesn't support real-time capture stream.

If it were impossible in uwp, I will use windows media foundation. If you have an idea to record both system audio and screen ( and hopely mike input), please tell me.

2
  • 1
    Have you checked my reply about your question? Commented Jan 31, 2024 at 2:24
  • sorry I Just Checked your answer. Thank you for your advice. I will use MediaFoundation Sinkwriter because adding after record is not my option. thank you very much Commented Feb 1, 2024 at 12:00

1 Answer 1

1

Currently, UWP does not have related APIs that support simultaneous recording. You need to capture separately and use Windows.Media.Editing.MediaComposition to add the audio to the video file.

Capture audio

Screen capture to video

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.