Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
nu11secur1ty
GitHub Repository: nu11secur1ty/Kali-Linux
Path: blob/master/2020.x/mp4_to_gif/README.MD
1303 views

How to convert a video file to an animated GIF on Linux:

      • Install required software:

sudo apt install ffmpeg gifsicle imagemagick
      • Custom directory, convert the video file to a series of small images:

mkdir /tmp/gif/
      • Command for already done directory:

sudo ffmpeg -i Videos/Screencast_04-26-2020_09\:35\:15\ PM.mp4 /home/nu11secur1ty/oo.gif
      • Custom convert

nu11secur1ty@kali:~$ ffmpeg -ss 61.0 -t 2.3 -i Videos/Screencast_04-26-2020_09\:55\:46\ PM.mp4 -f gif /home/nu11secur1ty/oo.gif
      • Recommended:

sudo ffmpeg -i Videos/Screencast_04-26-2020_09\:55\:46\ PM.mp4 -r 3 -s 800x500 /home/nu11secur1ty/oo.gif