Capture video from WPF app - c#

I want to write a C# application which can record a video capture of one of its WPF controls.
Is there a solution in .Net to record video from a control, or is there some library I could use?
My goal is to write a SketchCast application. The use case is the following:
launch SketchCast app and press record button,
write ink into a WPF ink area, and talk,
press stop,
recorded voice and ink animation get
saved into a video file in some
encoding.

If you don't have to write this application yourself, you can use Windows Media Encoder(*) and restrict the screen capture to a single window. Just set your WPF control to fill the entire window and remove the window border. WME has support for voice recording during screen captures.
(*) or any other screencast software with these features

Related

How to capture the screen except for some windows in UWP app?

I'm developing an screen recorder app with Media Capture API in UWP. Now I'm trying to make the application able to record the screen except the windows of my application.I have heard that Magnification API can help me to do this if I develop the application in Win32 environment,but how to do this in UWP and Media Capture API?
How to capture the screen except for some windows in UWP app?
Starting in Windows 10, version 1803, the Windows.Graphics.Capture namespace provides APIs to acquire frames from a display or application window.
You could use the GraphicsCapturePicker class to invoke the system picker UI. The end user uses this UI to select the display or application window of which to take screen captures. The picker will return a GraphicsCaptureItem that will be used to create a GraphicsCaptureSession.
Please refer this document that contains complete sample code.

Can I trigger the various camera options in a CameraCaptureUI dialog in my Windows Store App?

I am using the CameraCaptureUI dialog to capture images and video from the camera in my Windows Store App. I am using an alternative input device, so I want to trigger the various operations in the CameraCaptureUI dialog from my own C# code, instead of having the user click the mouse or use touch to trigger them. Right now the CameraCaptureUI dialog appears to be a "black box" and I can't see any entry or intercept points. Is there a way to trigger the various CameraCaptureUI dialog operations (take picture, start video record, stop video record, etc.) from my C# code?
If not, is there a more direct WinRT interface to the camera I can use to to do this myself and if so, what is it called so I can research it?
CameraCaptureUI IS a simplified black box dialog that isn't really part of your app, so you can configure how it gets initialized, but not interact with it with code once it starts.
You can use the CaptureElement + MediaCapture approach to host a camera preview in your app, but it's quite a bit more work. You can look at my CameraCaptureControl to find inspiration or simply use it in your app.

Writting on InkCanvas with stylus but not with finger

I have WPF applications running on a Windows8 tablet that captures user writting. I use the InkCanvas control to capture the data but I want the user can only writte with the stylus not the finger.
MoreOver, this application can run on a Desktop PC and in that case I would like to capture the writting from the mouse.
Is there any way to filter the "input mode" of the inkCanvas? I have been searching but I haven't found any way to do it.
Many thanks in advance.

Display text on window media player or monitor

I would like to display text like my company name on the window media player. I use DrawString function on Form onPaint event but it is covered by the window media player.
I also use Label control but it display square block on the player control even i set the back color to transparent. I develop KTV system it has two monitor one has form controls and another has player. Please advice me how should I do.
If your talking about the windows built-in media player then your going to have to get down and dirty with the Win32 API's, windows hooks, HWND, etc. You can't just paint a control on the window. What your talking about is some very low level windows coding.
Take a look at Spy++ (http://msdn.microsoft.com/en-us/magazine/cc163617.aspx). It's a tool from Microsoft that let's you delve into the details of a running application. It has a component called ManagedSpyLib which wraps the C++ windows libraries in a managed library to make the windows hooks calls easier. Be ready to learn more about the OS than you ever wanted to know. :-)

Control over who can use audio output channel in XP

I have a need to turn off other audio sources when I plan to use the Text to Speech API. The other audio may be in another process. I have looked at the mixer control, but I really only have control of the output there. Is there another place in XP that I can control the output so only my app is able to be heard?
See http://alvas.net/alvas.audio.aspx

Categories