convert video to gif using gifski ffmpg linux

- Posted in Linux by

install dari snapd

_https://snapcraft.io/install/gifski/ubuntu#install

sudo apt update
sudo apt install snapd

install gifski

sudo snap install gifski

konfigurasi .deb

_https://gif.ski/

run create frame from video

ffmpeg -i video.mp4 frame%04d.png
ffmpeg -i video.mp4 -vf scale=200:-1 frame%04d.png

use scale

// aspect ratio
 -vf scale=200:-1
 -vf scale=-1:200

// scale
 -vf scale=200:200

generate frame from png to gif

gifski -o file.gif frame*.png
Tags: