Skip to content

Instantly share code, notes, and snippets.

@Pamblam
Created July 12, 2019 14:51
Show Gist options
  • Select an option

  • Save Pamblam/a590cd36a9d56e7982786e32c32593cb to your computer and use it in GitHub Desktop.

Select an option

Save Pamblam/a590cd36a9d56e7982786e32c32593cb to your computer and use it in GitHub Desktop.
Making High-Quality screencast animated gifs (Gnome Linux)

Making High-Quality screencast animated gifs

  1. Use any screen recorder to record the screen. Gnome has a built-in recorder that is started and stopped with ctrl+shift+alt+r.
  2. Use kdenlive's edgecrop and speed effects to crop and adjust speed as required. render as mp4.
  3. Convert MP4 to several images:
sudo ffmpeg -i save_project.mp4  -r 20 'frames/frame-%03d.jpg'
  1. Use gimp to determine coordinates of required crop
# format: (cropped width)x(cropped height)+(crop x)+(crop y)
sudo mogrify -crop 1048x1080+438+0 frames/*.jpg
  1. Convert cropped images to animated gif
sudo convert -limit memory 2MB -delay 5 -loop 0 frames/*.jpg save_project.gif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment