Created
August 6, 2021 12:41
-
-
Save alea12/378792cdfc896ad4f8d575701a7922be to your computer and use it in GitHub Desktop.
Shortcut for creating GIF from video files (using FFmpeg)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.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 |
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