locked
How to record video of current screen programmatically in windows 8 app in c#?

    Question

  • Is it possible to record screen video of current running windows 8 app from the same app?
    I have to record the app's screen video and audio from within the windows 8 app.

    Tuesday, February 3, 2015 5:38 AM

Answers

  • Hi,

    I am not very familiar with this. But I can give you some advice. You can capture frames from your app and then convert the frame to video. Try to use RenderTargetBitmap class to capture the frames. And then use Media Foundation to convert frame to video. The MediaCapture sample shows how to write a media foundation transform to do image processing on each frame. I think that can help you!

    Also , please refer to the link:

    http://blogs.msdn.com/b/eternalcoding/archive/2013/03/06/developing-a-winrt-component-to-create-a-video-file-using-media-foundation.aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.


    • Edited by Anne Jing Wednesday, February 4, 2015 2:24 AM edit
    • Proposed as answer by Anne Jing Friday, February 13, 2015 7:43 AM
    • Marked as answer by Jamles HezModerator Tuesday, February 17, 2015 7:17 AM
    Wednesday, February 4, 2015 2:24 AM
  • Perhaps not the best answer but Windows Phone 8.1 introduced that as a built-in capability using this class: https://msdn.microsoft.com/en-us/library/windows.media.capture.screencapture.aspx

    Unfortunately it's not available in Windows 8.1 yet. Given that the APIs are converging in Windows 10 I guess it will become available then. Until then I fear Anne's approach is the only way of doing this right now.

    • Proposed as answer by Anne Jing Friday, February 13, 2015 7:44 AM
    • Marked as answer by Jamles HezModerator Tuesday, February 17, 2015 7:17 AM
    Wednesday, February 4, 2015 3:25 PM

All replies

  • Hi,

    I am not very familiar with this. But I can give you some advice. You can capture frames from your app and then convert the frame to video. Try to use RenderTargetBitmap class to capture the frames. And then use Media Foundation to convert frame to video. The MediaCapture sample shows how to write a media foundation transform to do image processing on each frame. I think that can help you!

    Also , please refer to the link:

    http://blogs.msdn.com/b/eternalcoding/archive/2013/03/06/developing-a-winrt-component-to-create-a-video-file-using-media-foundation.aspx

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.


    • Edited by Anne Jing Wednesday, February 4, 2015 2:24 AM edit
    • Proposed as answer by Anne Jing Friday, February 13, 2015 7:43 AM
    • Marked as answer by Jamles HezModerator Tuesday, February 17, 2015 7:17 AM
    Wednesday, February 4, 2015 2:24 AM
  • Perhaps not the best answer but Windows Phone 8.1 introduced that as a built-in capability using this class: https://msdn.microsoft.com/en-us/library/windows.media.capture.screencapture.aspx

    Unfortunately it's not available in Windows 8.1 yet. Given that the APIs are converging in Windows 10 I guess it will become available then. Until then I fear Anne's approach is the only way of doing this right now.

    • Proposed as answer by Anne Jing Friday, February 13, 2015 7:44 AM
    • Marked as answer by Jamles HezModerator Tuesday, February 17, 2015 7:17 AM
    Wednesday, February 4, 2015 3:25 PM