07 Mar

Debian Screencast to animated GIF.

I have read this article – OS X Screencast to animated GIF and have decided to make this on Debian. Why not? ;)

It is simple to make this on any Linux machine. We need SimpleScreenRecorder, FFmpeg and gifsicle.

Download ffmpeg from this ffmpeg git or ffmpeg.org – and install any libraries, which he need. I have generated from source “./configure && make && make install “. Take care about dependence.

Now to time to install SimpleScreenRecorder. Take it from git ssr.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install build-essential pkg-config qt4-qmake libqt4-dev libavformat-dev \
libavcodec-dev libavutil-dev libswscale-dev libasound2-dev libpulse-dev libjack-jackd2-dev \
libgl1-mesa-dev libglu1-mesa-dev libx11-dev libxfixes-dev libxext-dev libxi-dev g++-multilib \
libx11-6 libxext6 libxfixes3 libxfixes3:i386 libglu1-mesa:i386

cd /usr/lib/i386-linux-gnu
sudo ln -s libGL.so.1 libGL.so
sudo ln -s libGLU.so.1 libGLU.so
sudo ln -s libX11.so.6 libX11.so
sudo ln -s libXext.so.6 libXext.so
sudo ln -s libXfixes.so.3 libXfixes.so
sudo ldconfig

And install gifsicle from debian repository.

1
$ sudo apt-get install gifsicle

First we need record Video and then convert it with ffmeg and gifsicle to gif image. Use simple command:

1
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif

Where:

1
2
3
4
-r 10  -- frame rate reducing
-s 600x400 -- video size
--delay=3  -- ms between each gif
--optimize=3 -- file size optimisation

Enjoy ;)

Tweet about this on TwitterShare on FacebookShare on Google+Share on RedditShare on VK