Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to record GIF Animation with Gifine on Linux Desktop

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to use Gifine to record GIF animation on the Linux desktop", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use Gifine to record GIF animation on the Linux desktop" this article.

Needless to say, you know that GIF animation has developed rapidly in the past few years. People often use animation to add interest to text communication online, and these animations are also very useful in many other places.

Using animation in the technical field can quickly describe the problems or errors returned. It can also well show the characteristics of a software application product. You can use GIF animation at online symposiums or during company presentations, and of course, you can use it in more places.

Now, suppose you have multiple applications open on your desktop, or for whatever purpose, you want to create a GIF animation to record the operation of an application window on your desktop. What should you do? Obviously, you need a tool to do this.

If you are looking for a tool that can record parts of the desktop, and it can automatically convert screencap into GIF animation; now, this tutorial will introduce a Linux command line tool to implement your needs.

Before you begin, you must know that all the examples in this tutorial have been tested on Ubuntu 14.04. its Bash version is 4.3.11 (1).

Gifine

The home page of this tool is Gifine. It is based on the GTK toolkit and is written in MoonScript using the lgi library. Gifine can not only record screenshots and create animations or videos, but also use it to splice several small animations or videos together.

The developer of the tool was quoted as saying: "you can load a directory of video frames or select an area of your desktop for screencap. After you load some video frames, you can view them continuously and cut out the unwanted parts. Finally, when you finish screencap, you can export to a gif or mp4 file."

Gifine download / install / configure

Before guiding you to download and install Gifine, you should indicate the dependent packages that need to be installed to install the tool.

The first dependency package you need to install is FFmpeg, a cross-platform solution for recording, converting, and streaming audio and video. Install the tool using the following command

Sudo apt-get install ffmpeg

Next is the image processing system GraphicsMagick. The tool's website says: "it provides a robust and efficient collection of tools and libraries that support reading and writing and can manipulate more than 88 major image formats, such as DPX, GIF, JPEG, JPEG-2000, PNG, PDF, PNM and TIFF."

Install with the following command:

Sudo apt-get install graphicsmagick

The next tool you need is XrectSel. When you move the mouse selection area, it will display the coordinates of the rectangular area. We can only install XrectSel from source code, and you can download it here.

If you download the source code, you can then extract the downloaded file and enter the unzipped directory. Then, run the following command:

. / bootstrap

If the configure file does not exist, you need to use the command above

. / configure-- prefix / usr make make DESTDIR= "$directory" install

The dependent package of * * is Gifsicle. This is a command line tool that allows you to create, edit, and view attribute information for GIF images and animations. Downloading and installing Gifsicle is fairly easy, you only need to run the following command:

Sudo apt-get install gifsicle

These are all dependent packages. Now, let's start installing Gifine. Use the following command to complete the installation.

Sudo apt-get install luarocks sudo luarocks install-- server= http://luarocks.org/dev gifine

Note that the second command may return the following error:

No package 'gobject-introspection-1.0' found

You can install this package with the following command:

Sudo apt-get install libgirepository1.0-dev

Then, run the luarocks install command again.

Gifine usage

After the installation is complete, you can run the tool using the following command:

Gifine

The UI for this application looks like this:

Gifine UI

Here you can do two things: record video frames or load video frames. If you click the recording rectangle area (Record rectange) button, your mouse pointer will become a +, so you can select a rectangular area on your screen. Once you have selected an area, screencap starts, and the recording rectangle area (Record rectange) button becomes the stop recording (Stop recording) button.

Gifine screen recording

Click stop recording (Stop recording) to complete the screenshot, and some buttons will appear in the Gifine window.

Gifine preview

The top half of the user interface displays recorded video frames, and you can use the slider below it to browse frame by frame. If you want to delete all frames before frame 5 or after frame 50, you can use the Trim left of left and Trim rigth of right buttons to crop. There are also buttons to delete a specific number of frames and halve the number of deleted frames, of course, you can reset all clipping operations.

After all the cropping is done, you can use Save GIF (Save GIF...) Or save MP4 (Save MP4...) Button to save screencap as animation or video; you will see options to set frame delay, frame rate, and number of loops.

Remember, "recording frames will not be cleared automatically. If you want to reload, you can use the load directory (load directory) button on the splash screen to find them in the'/ tmp' directory."

The above is all the contents of the article "how to record GIF Animation with Gifine on the Linux Desktop". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report