No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gifcast 521B

12345678910111213141516171819202122
  1. #!/usr/bin/env sh
  2. #
  3. # pbrisbin 2013 - record screen area as a gif. Requires ffcast (for
  4. # xrectsel) and byzanz (for the actual recording).
  5. #
  6. ###
  7. set -e
  8. out="${1:-out.gif}"
  9. if [ -e "$out" ]; then
  10. printf "%s exists. removing...\n" "$out" >&2
  11. rm "$out"
  12. fi
  13. tmp=temp.gif
  14. geometry_args="$(xrectsel "--x=%x --y=%y --width=%w --height=%h")"
  15. trap "convert -loop 0 '$tmp' '$out' && rm '$tmp'" EXIT
  16. printf "Recording %s. Press ^C when done.\n" ./"$out"
  17. byzanz-record -d 3600 $geometry_args "$tmp" # word-splitting intended