Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #LD48 | #ludumdare on irc.afternet.org (Info)

Ludum Dare 31 — Coming December 5th-8th 2014! — Join the Mailing List!
  • October Ends: in 31 days, 12 hours, 19 minutes, 1 second
  • Ludum Dare 31 begins: in 66 days, 13 hours, 7 minutes, 1 second
  • (FYI: Clock might be off) | Ludum Dare 31: Real World Gatherings (Now Open!) | October Challenge 2014!


    Easy timelapse on Linux with the scrot tool

    Posted by
    December 16th, 2011 4:55 pm

    Are you a Linux user who is about to participate in Ludumdare? Here is a quick and simple command-line script that uses the scrot utility to take one screenshot of your desktop every minute. You can merge them together as a movie file later on using mencoder

    #!/bin/sh

    ##########################################
    # This is the script that I will be using
    # to generate my Ludumdare timelapse
    # Below is the command I will use to
    # convert it to a video file when I am
    # done.
    #
    # Don’t forget:
    # apt-get install scrot mencoder
    #
    # mencoder -oac copy -audiofile music.mp3 -ovc copy -mf w=640:h=400:fps=12:type=png ‘mf://./*.png’ -o timelapse.avi

    while [ 1 ] ; do
    scrot ./”`date +%F_%H.%M`”.png
    sleep 60
    done

    One Response to “Easy timelapse on Linux with the scrot tool”

    1. James Paige says:

      Well, wordpress insisted on weirdly wrapping that very long comment line. But it should be okay after a copy-and-paste

    Leave a Reply

    You must be logged in to post a comment.


    All posts, images, and comments are owned by their creators.

    [cache: storing page]