In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to create GIF animation in Ubuntu 16.04. The introduction in this article is very detailed and has certain reference value. Interested friends must read it!
FFmpeg is an open source audio/video converter that allows us to easily convert and record audio/video files, while ImageMagick is an open source software for creating, editing and merging bitmap images.
We often see interesting GIF animation bar in Sina Weibo, QQ, Facebook, Twitter, GIF file is smaller than video, more vivid than static JPG image, very suitable for funny posts on the Internet, product display and function step demonstration, so this small tutorial will teach you how to make and convert GIF effect images in Ubuntu 16.04 LTS desktop system. It's not that hard, just install FFmpeg on an Ubuntu 16.04 desktop and ImageMagick, and you'll have all the tools (also available for other Linux distributions).
Convert video to GIF
Let's start with a simple one, first look at how to convert video directly to GIF animation. As mentioned above, first install FFmpeg and ImageMagick (these two tools are available in the official Ubuntu source and can be installed directly):
apt install ffmpeg imagemagick
Tip: As previously introduced, after the release of Ubuntu 16.04, the official has recommended using apt to replace the old apt-get command, Ubuntu 16.04 new features and improvements can be seen in previous articles. To convert a video to GIF, use only the ffmpeg command in the following format:
ffmpeg -ss 00:00:20 -i input.mp4 -to 10 -r 10 -vf scale=200:-1 output.gif
-ss indicates the start point-i followed by the video file to be manipulated-to indicates the end point of the file-r frame rate, which can be increased to output a better quality GIF file-vf graphics filter, zoom size of GIF
Parameters can be adjusted according to their own needs, after the completion of the implementation of the video will be successfully converted to GIF. Merge multiple GIF files
Merge multiple GIF files
If you want to merge multiple GIFs into one file, it is also very simple, just save the files to be merged into the same folder, and then execute the following command:
convert -delay 120 -loop 0 *.gif output.gif
Create GIF animation from JPG image sequence
If you have static jpg image sequences, you can easily generate animated GIFs in Linux without having to resort to artifacts like Photoshop in Windows. First put all JPG files in the same folder, and then execute the following command in the terminal:
convert -delay 120 -loop 0 *.jpg linux.gif
-delay 120 for GIF animation speed-loop 0 for infinite loop
The above is "How to create GIF in Ubuntu 16.04" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.