{"author_name":"James Paige","cat":"LD #22","comments":[{"author_name":"","time":"December 16, 2011 4:56 pm","epoch":1324072560,"text":"Well, wordpress insisted on weirdly wrapping that very long comment line. But it should be okay after a copy-and-paste","spam":"N"}],"epoch":1324072500,"likes":0,"metadata":{"p_key":"62399","p_author":"James Paige","p_authorkey":"4779","p_urlkey":"98171","p_title":"Easy timelapse on Linux with the scrot tool","p_cat":"LD #22","p_event":"LD22","p_time":"1324072500","p_likes":"0","p_comments":"1","p_status":"UPD5","us_key":"4779","us_name":"James Paige","us_username":"james-paige","event_start":"1323993600","event_key":"8","event_name":"LD22"},"text":"<p>Are you a Linux user who is about to participate in Ludumdare? Here is a quick and simple command-line script that uses the <strong>scrot<\/strong> utility to take one screenshot of your desktop every minute. You can merge them together as a movie file later on using <strong>mencoder<\/strong><\/p>\n <p><code>#!\/bin\/sh<\/code><\/p>\n <p>##########################################<br \/>\n # This is the script that I will be using<br \/>\n # to generate my Ludumdare timelapse<br \/>\n # Below is the command I will use to<br \/>\n # convert it to a video file when I am<br \/>\n # done.<br \/>\n #<br \/>\n # Don&#8217;t forget:<br \/>\n # apt-get install scrot mencoder<br \/>\n #<br \/>\n # mencoder -oac copy -audiofile music.mp3 -ovc copy -mf w=640:h=400:fps=12:type=png &#8216;mf:\/\/.\/*.png&#8217; -o timelapse.avi<\/p>\n <p>while [ 1 ] ; do<br \/>\n scrot .\/&#8221;`date +%F_%H.%M`&#8221;.png<br \/>\n sleep 60<br \/>\n done<\/p>","time":"December 16th, 2011 4:55 pm","title":"Easy timelapse on Linux with the scrot tool"}