in reply to Re: Screen recording
in thread Screen recording

Windows and/or Linux

I dont want it to record VNC ... I need to record the screen on the local computer.

Based on triggered action I will start recording and turn it off after a while

Replies are listed 'Best First'.
Re^3: Screen recording
by Corion (Patriarch) on May 30, 2010 at 00:33 UTC

    "Windows and/or Linux" and "I don't want it to record VNC" are mutually exclusive. You need to decide either on a platform or to go cross-platform. VNC is the cross-platform solution.

      My aim is not controlling a remote computer. Just need to record the local screen

      Something like: Camtasia Studio but written in perl

        VNC is one of the approaches to do cross-platform screen recording. See vnccapture. Otherwise, just take repeated screenshots using one of the Screenshot modules. Stichting the images to a "movie" can be done using Image::Magick or ffmpeg.

        Update: Fixed link to vnccapture, thanks to bart

        Something like Camtasia Studio but written in perl

        If that software fulfils your need, why do you want to re-invent the wheel? And why does it have to be done in Perl? Recording the screen usually needs very close interaction with special APIs of the respective operating system (or the X server), and while it can be done in Perl, there are other languages which are better suited for that task. Of course, if you need cross-platform support, the very first step would be abstracting the OS specific APIs so that you have an OS-independent API for screen recording.

        My aim is not controlling a remote computer.

        Who said that? Did you even try to research what vnc2swf does? Like copy-and-pasting vnc2swf into a Google search form, submitting that form, and clicking on the first link on the results page?

        If you did, you would have noticed that (ab-)using VNC to access the screen in a cross-platform way is a very good abstraction of the OS specific APIs. As soon as you use VNC as an abstraction layer, you "just" have to implement an RFB protocol recorder and a translator that reads a recorded RFB data stream and writes the required output format(s).

        Alexander

        --
        Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
        Many screen recording software writen in Perl like democreator and BB flashback do so. To mention the cross-platform, those web-based recording services like Screenr will be another good choice.