This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| var crypto = require('crypto'); | |
| var _ = require('underscore')._; | |
| // Returns elapsed time in milliseconds | |
| function get_elapsed_time(startTime) { | |
| var diff = process.hrtime(startTime); | |
| // (seconds to milliseconds) + (nanoseconds to milliseconds) | |
| return (diff[0] * 1000) + (diff[1] / 1000000); | |
| } |