vim, gitconfig, update.sh
[dotfiles_afify.git] / .scripts / conv_mkv_gif.sh
blobc58d06604831182d910ff320ef99959c8455dd75
1 #!/usr/bin/env bash
3 filename=$1
4 scale=720
5 # scale=480
6 # skip="-ss 30"
7 # output_total_sec="-t 3"
9 # ffmpeg $skip $output_total_sec-i $filename -vf "fps=10,scale=$scale:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 $filename.gif
11 ffmpeg -i "$filename" -vf scale=$scale:-1 "$filename.gif"