Menu

directshow sample

2010-08-15
2013-05-01
  • Nobody/Anonymous

    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 !

     
  • Heikki Salo

    Heikki Salo - 2010-08-15

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.