Now in social software, a variety of dynamic diagrams for everyone to communicate a lot of fun. GIF images are smaller than videos and are more vivid than static JPG images, and are more suitable for product demonstrations and step demonstrations. Here is a brief introduction to the production of GIF images in the window System and Ubuntu system.
Ubuntu system
Tools:Kazam and FFmpeg
Kazam is a simple but powerful screen recording tool under Linux. It can record sound and select full-screen recording or local area recording.
Installation method:
On Ubuntu, you can choose to install through the PPA.
sudo add-apt-repository ppa:kazam-team/unstable-sudosudoinstall Kazam
If the installation is successful, enter the following command at the terminal to open the software interface
FFmpeg is a complete solution for recording, converting, and streaming audio and video, including Libavcodec , a leading audio/video codec class library. FFmpeg is developed on Linux when it can be compiled under most operating systems, including Windows.
Installation method:
On Ubuntu, enter the following command in the terminal:
sudo apt-repository ppa:kirillshkrogalev/ffmpeg-sudo apt-sudo Install FFmpeg
after the installation is complete, the terminal input
$ ffmpeg-version
If the following information appears, the installation is successful.
2.4. 3 +: + gcc 4.8 4.8. 2-19ubuntu1)
GIF makes 1 video recording.
Open the Kazam software. Where fullscreen means recording the entire plane, window means recording a specific window, and area means picking a region. This can be selected according to their own needs.
When you have selected the recording area, click the Capture button, and the screen starts to Countdown to the recording. The countdown time can be set by yourself. The recorded completed video is saved as a test.mp4 file.
2 Convert video to GIF
FFmpeg is powerful, and this is just the instructions that are commonly used when converting video to GIF.
To convert a previously saved Test.mp4 file to GIF, you can simply use the following command:
$ ffmpeg-i Test.mp4 out.gif
This is the default parameter that will be, where Test.mp4 is the input video file, Out.gif is the output file. But the problem is that the source video may be 1080P high-definition video, and the converted GIF file is likely to be much larger than the source video. Therefore, in order to achieve their own requirements, you need to add the corresponding parameters. Generally speaking, the following parameters for the following instructions are appropriate to modify the general can meet our requirements.
$ output1.gif
Of these,-ss 2 to 12 indicates that the conversion takes from the 2nd second of the video to a length of 12 seconds after the transition is stopped. -S for setting the resolution,-R for setting the number of frames. GIF usually has about 15 frames to compare the process.
Production of animated animated pictures of Windows and Ubuntu under