However, it is not a good way to do it if you need smooth video. Capturing individual images is easy, creating a smooth video is going to be harder. And using DirectShow is not easy for a beginner if you are not familiar with it, altough there seems to be some filters for doing this (like http://www.medialooks.com/products/directshow_filters/screen_capture.html). If I remember right there migth be some DirectShow samples (in some old DirectX SDK or Windows SDK) which did something similar, but it has been a long time since I last touched DirectShow.
You might want to check out software like http://camstudio.org/ and see how they do it. Or you could just run some screen recording software and read the output it produces if they have any automation functionality.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm looking for a minimal code sample using directshow for recording desktop.
I can't find any sample using directshow via Google queries ;(
someone Help me ?
thanks !
Hi,
DirectPython does not have any functionality to do this, but you might try something like this:
http://www.daniweb.com/code/snippet216930.html
However, it is not a good way to do it if you need smooth video. Capturing individual images is easy, creating a smooth video is going to be harder. And using DirectShow is not easy for a beginner if you are not familiar with it, altough there seems to be some filters for doing this (like http://www.medialooks.com/products/directshow_filters/screen_capture.html). If I remember right there migth be some DirectShow samples (in some old DirectX SDK or Windows SDK) which did something similar, but it has been a long time since I last touched DirectShow.
You might want to check out software like http://camstudio.org/ and see how they do it. Or you could just run some screen recording software and read the output it produces if they have any automation functionality.