Skip to content

Instantly share code, notes, and snippets.

@MichaelDimmitt
Last active September 9, 2023 17:06
Show Gist options
  • Select an option

  • Save MichaelDimmitt/0331bf821f82e4f5dab9b6b5794bd0e2 to your computer and use it in GitHub Desktop.

Select an option

Save MichaelDimmitt/0331bf821f82e4f5dab9b6b5794bd0e2 to your computer and use it in GitHub Desktop.
Adding a video to a readme with relative linking.

Turning a video into a gif using ffmpeg and add to a github readme.
ffmpeg -i ~/Desktop/vim-git-history-shrunk.mov -vf "setpts=1.5*PTS" -c:a copy output.gif (source)

  1. how to add video to readme: https://stackoverflow.com/a/29842302/5283424

  2. how to convert video to gif: https://superuser.com/a/436109/644627

  3. store the gif in an assets folder in your project

  4. relative link to the file.

# line added to readme:
![assets/vim-git-history-plugin.gif](assets/vim-git-history-plugin.gif)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment