leafo / gifine

Quickly record and edit gifs and videos of your desktop
286 stars 14 forks source link
ffmpeg gif gtk3 lgi moonscript video

Gifine

Gifine is a tool for recording and stitching together a short gifs or videos. It is a GTK application implemented in MoonScript using lgi.

You can either load a directory of frames, or select a region of your desktop to record. After loading some frames, you can scroll through them and trim out what isn't necessary. When you've finalized the video you can export to gif or mp4.

It requires a few external commands to be present to function:

In order to select a record area you need one of the following:

Most of these things should be able to be installed from your package manager

The recorded frames recorded aren't automatically cleaned up. You can find them in your /tmp dir if you want to reload a session. Use the load directory button on the initial screen.

Install

luarocks install --server=http://luarocks.org/dev gifine

Run the command gifine to use.

Installation on Ubuntu 16.04 LTS

This has been tested on a fresh install of Ubuntu 16.04 LTS.

Install git:

$ sudo apt install git

Next, install all of the gifine's dependencies and sub-dependencies:

$ sudo apt install -y \
ffmpeg \
graphicsmagick \
gifsicle \
luarocks \
libxext-dev \
libimlib2-dev \
mesa-utils \
libxrender-dev \
glew-utils \
libglm-dev \
cmake \
compiz \
gengetopt \
libglu1-mesa-dev \
libglew-dev \
libxrandr-dev \
libgirepository1.0-dev

Install slop using the instructions in the slop README.md file.

Install LGI:

$ sudo luarocks install lgi

Install gifine.

$ sudo luarocks install --server=http://luarocks.org/dev gifine

Demo

Gifine demo

Articles

License

MIT, Copyright (C) 2016 by Leaf Corcoran