This script only works in Linux. I have tested it on Zorin OS 16.
Original script created by Ruin0x11, which you can find here. I forked it from the-honey, which you can find here.
I tired to keep the script as simple as possible so that you can play with it.
- mpv
- kdialog
- ffmpeg
sudo apt install ffmpeg kdialog mpv
head to $HOME/.config/mpv/scripts and place mpv-gif.lua in there.
Now when you run a video on mpv, you will be able to use g to set start frame, G to set end frame, Ctrl+g to create gif. When you press Ctrl+g, it will ask where you want to save the gif.
g- Start timeG- End timeCTRL+g- Export GIF