{"author_name":"newobj","cat":"LD  #18 - Enemies as Weapons - 2010","comments":[{"author_name":"moop","time":"August 20, 2010 2:15 pm","epoch":1282331700,"text":"I found this tutorial a month or so ago. Sounds like it&#8217;s along very similar lines though. I guess there&#8217;s no all in one app for it yet so everyone&#8217;s throwing together shell scripts for it.","spam":"N"},{"author_name":"melior","time":"August 20, 2010 2:40 pm","epoch":1282333200,"text":"Looks like a job for a cron &#8230;uh&#8230; job:","spam":"N"},{"author_name":"dRxL","time":"April 18, 2014 8:35 am","epoch":1397828100,"text":"Hi I&#8217;ve made a shell script that both continuously captures OS X screen(s) at preset intervals and combines these images into an mp4 movie file.","spam":"N"}],"epoch":1282331100,"likes":2,"metadata":{"p_key":"70148","p_author":"newobj","p_authorkey":"508198","p_urlkey":"105968","p_title":"OSX Timelapse","p_cat":"LD  #18 - Enemies as Weapons - 2010","p_event":"LD18","p_time":"1282331100","p_likes":"2","p_comments":"4","p_status":"UPD5","us_key":"508198","us_name":"newobj","us_username":"newobj","event_start":"1282262400","event_key":"4","event_name":"LD18"},"text":"<p>I haven&#8217;t been able to find a timelapse tool that works on OSX yet (Chronolapse runs, but doesn&#8217;t seem to start grabbing screencaps?), but as it turns out, it&#8217;s very easy to write a script to do this:<\/p>\n <p><span style=\"line-height: 1.4em;font-weight: bold;padding: 0px;margin: 0px\">while <\/span><span style=\"line-height: 1.4em;color: #0086b3;padding: 0px;margin: 0px\">true<\/span> ; <span style=\"line-height: 1.4em;font-weight: bold;padding: 0px;margin: 0px\">do <\/span>sleep 60 <span style=\"line-height: 1.4em;font-weight: bold;padding: 0px;margin: 0px\">&amp;&amp;<\/span> <span style=\"line-height: 1.4em;color: #0086b3;padding: 0px;margin: 0px\">echo<\/span> <span style=\"line-height: 1.4em;color: #dd1144;padding: 0px;margin: 0px\">`<\/span>date<span style=\"line-height: 1.4em;color: #dd1144;padding: 0px;margin: 0px\">`<\/span><span style=\"line-height: 1.4em;color: #dd1144;padding: 0px;margin: 0px\">&#8216; Capturing screenshot&#8230;&#8217;<\/span> <span style=\"line-height: 1.4em;font-weight: bold;padding: 0px;margin: 0px\">&amp;&amp;<\/span> screencapture -C -m -t jpg -x -f cap.<span style=\"line-height: 1.4em;color: #dd1144;padding: 0px;margin: 0px\">`<\/span>date +%s<span style=\"line-height: 1.4em;color: #dd1144;padding: 0px;margin: 0px\">`<\/span>.jpg ; <span style=\"line-height: 1.4em;font-weight: bold;padding: 0px;margin: 0px\">done<\/span><\/p>\n <p>I&#8217;ve put the script here in my LD project on github: <a href=\"http:\/\/github.com\/newobj\/ludumdare\/blob\/master\/tools\/osx-screencap.sh\" target=\"_blank\">http:\/\/github.com\/newobj\/ludumdare\/blob\/master\/tools\/osx-screencap.sh<\/a><\/p>\n <p>Just run this guy and you will start getting cap.*.jpg files in the current directory every 60 seconds. They&#8217;ll sort chronologically, which is necessary for compiling them into a movie.<\/p>\n <p>When you&#8217;re done and have your mountain of JPG&#8217;s, you can use <a href=\"http:\/\/www.dayofthenewdan.com\/projects\/time-lapse-assembler-1\" target=\"_blank\">Time Lapse Assembler<\/a> to turn them into a movie (it will also scale them down!)<\/p>\n <p>If anyone knows of a better solution than this for OSX, please enlighten me. <img src=\"http:\/\/ludumdare.com\/compo\/wp-includes\/images\/smilies\/simple-smile.png\" alt=\":)\" class=\"wp-smiley\" style=\"height: 1em; max-height: 1em;\" \/><\/p>","time":"August 20th, 2010 2:05 pm","title":"OSX Timelapse"}