#23 add option to stop recording after a certain time

open
5
2013-11-04
2013-02-10
eltomito
No

I needed recordmydesktop to automatically stop recording after a certain amount of time,
so I added an option that does just that.
It works like this:
for example: "recordmydesktop --length 60" automatically stops recording after 60 seconds.
For more information, type "recordmydesktop --help"

The patch is included
and there is a twin feature request for the same option in gtk-recordMyDesktop.

It would be great if this made its way into the official version.
Thank you!

Discussion

  • eltomito
    eltomito
    2013-02-10

    patch adding an option to stop recording after a xxx seconds

     
  • Patrick Wasp
    Patrick Wasp
    2013-11-04

    has this been included into the mainline yet? if not, can I get instructions on how to compile a version with this patch included? Thanks!

     
    Last edit: Patrick Wasp 2013-11-04
  • eltomito
    eltomito
    2013-11-04

    It looks like the mainline hasn't been updated for the past three years so no, this patch isn't there yet. And the whole project seems fairly abandoned to me.

    This is how you compile recordmydesktop with this patch:

    ((( 1 ))) Download the source from this website with this command:
    "svn checkout svn://svn.code.sf.net/p/recordmydesktop/svn/trunk recordmydesktop-svn"
    without the quotes.

    It will create some subdirectories including "./recordmydesktop-svn/recordmydesktop".

    Go there ("cd recordmydesktop-svn/recordmydesktop") and do all the other steps in this directory.

    ( For the svn command to work, you need to install subversion. On Ubuntu, this means either finding it in a package manager such as synaptic or the Software Center, or typing the command "sudo apt-get install subversion" in a terminal.)

    ((( 2 ))) Download the patch from my original message to recordmydesktop-svn/recordmydesktop.

    ((( 3 ))) Apply the patch:
    "patch -p0 <recordmydesktop-rec_length.patch"

    Don't miss the "<" sign in the command string.

    ((( 4 ))) Compile the whole thing.
    Do the following commands:
    "./autogen.sh"
    "./configure"
    "make"

    "./autogen.sh" and "./configure" will keep failing until they get all the programs and libraries the compilation depends on. See DEPENDENCIES below.

    ((( 5 ))) Install it.
    When the compilation finally passes without errors, do:
    "sudo make install"

    Now, the version of recordmydesktop on your system should support the "--length" option.

    DEPENDENCIES

    For the compilation to work, you need to have a working build environment and all necessary dependency libraries installed.

    The build environment means you have to install
    gcc
    make
    autoconf
    automake
    dpkg-dev

    and maybe some other things. On Ubuntu, most of it is included in a package called "build-essential".

    "./autogen.sh" will keep failing until you have all the build programs necessary.

    On the other hand, "./configure" will keep failing until you have all the libraries needed. These are:

    libc
    libx11
    libpopt
    libICE
    libSM
    libXfices
    libXdamage
    libogg
    libvorbis
    libtheora
    libasound2
    zlib1g

    ...and then probably a couple more.

    On Ubuntu, the packages to install are called the same as the library with "-dev" at the end, e.g., "libpopt-dev". Sometimes, there are some numbers in between (e.g., libogg = libogg0). Install them all before you "./configure".

    Good luck!
    And feel free to ask if it doesn't work :)