Click here to Skip to main content
15,668,220 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need the capture the screen and save it as video. I wish to do it in C# class or else suggest me the simple way to capture the screen.

Please help with this.

Thanks in advance
Posted

1 solution

Capturing the screen if a fairly simple thing. Please see my past answers:

With WPF:
WPF Rectangle capture[^],
Remote Screen Capture in WPF[^];

With System.Windows.Forms:
Capture an in-focus form[^],
C# Screen Shot whats in the pael[^].

The best tool to put a set of captures images in a video is FFMpeg or libavcodec utility. You can use it manually, via a batch file, or programmatically, in some different way. I explained it in my past answer:
how to convert image to video in C#[^].

You can also look at this open-source product designed exactly for your purpose: http://camstudio.org/[^].

—SA
 
Share this answer
 
Comments
dharanidharan17 25-Oct-13 2:44am    
Am able to capture only a single image and save it. but where as my requirement is to capture the active screen as frame by frame and need to convert those frames to videos and save it in the local machine. If possible send me the source code
Sergey Alexandrovich Kryukov 25-Oct-13 3:03am    
You have enough code fragments shown in the referenced answers or articles. You only need to put it all together. You cannot expect that someone do this work for you. Rather, you need to try to do it by yourself and then ask some follow-up questions if you face big problems. After all, you are interested the most in the results.
—SA
dharanidharan17 25-Oct-13 3:22am    
Yeah i had fragmented all those coding still i cant able to find the solution. So Only am approaching for help. Its urgent for me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900