Easily create a screencast on OS X in a few commands. Inspired from this gist.
For an animated example visit the GitHub page on the links below.
osx-screencast-record command basically just opens up an application with
open -a defaulting to
Quicktime Player as the application that gets opened. The
--application can be used to override this values.
Record your screen in the application you’ve chosen and save the file.
You will need to know the path to the file you’ve saved because it will be the
source of the
osx-screencast-export command wraps the use of
convert with default arguments. You can define the output fps for a video with the
--fps option. The default is
10. The delay between each frame in the output can be defined in milliseconds with the
--delay option. The default is
5. The output scale can be defined with the
--scale option. The default is
320:-1. See this link for more information on