Skip to content

Instantly share code, notes, and snippets.

@alea12
Created August 6, 2021 12:41
Show Gist options
  • Save alea12/378792cdfc896ad4f8d575701a7922be to your computer and use it in GitHub Desktop.
Save alea12/378792cdfc896ad4f8d575701a7922be to your computer and use it in GitHub Desktop.
Shortcut for creating GIF from video files (using FFmpeg)
# ~/.config/fish/config.fish
function ffmpeg-gif
ffmpeg -i $argv -filter_complex "[0:v] fps=10,scale=1080:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" $argv.gif
end
@alea12
Copy link
Author

alea12 commented Aug 6, 2021

  • 10 FPS
  • 横幅は 1080px 固定
  • 縦幅はアスペクト比率を維持して自動設定

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment