Skip to content

Latest commit

 

History

History
executable file
·
39 lines (27 loc) · 1.02 KB

README.md

File metadata and controls

executable file
·
39 lines (27 loc) · 1.02 KB

Screencast-gif

Turn a .mov file to a .gif file using docker fully transparently.

screencast

Run directly

docker run -it -v `pwd`:/srv/screengif/input --rm ambroselli/screencast-gif /bin/bash \
    -c 'umask 002; bin/screengif -i input/file.mov -o input/file.gif'

Run using script

Create a file with the following content (I named it screencast and moved it to /usr/local/bin/screencast (and made it executable):

#!/bin/bash

if [ -z "$1" ] || [ ! -f "$1" ]; then
  echo "Usage: $0 file.mov"
  exit
fi

docker run -it \
    -v `pwd`:/srv/screengif/input \
    --rm \
    ambroselli/screencast-gif \
    /bin/bash -c "umask 002 && bin/screengif -i 'input/$1' -o 'input/$1.gif'"

Then I run it using screencast file.mov.

Upload to imgur

You can use this script to upload the resuling gif to imgur and get a linkable url with one one command.

Thanks

Heavily based on screengif.