Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 991 Bytes

README.md

File metadata and controls

34 lines (20 loc) · 991 Bytes

mpv-gif-generator for Linux

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.

Requirements

  • mpv
  • kdialog
  • ffmpeg

Install Dependencies

sudo apt install ffmpeg kdialog mpv

Installation

head to $HOME/.config/mpv/scripts and place mpv-gif.lua in there.

Usage

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.

Hotkeys

  • g - Start time
  • G - End time
  • CTRL+g - Export GIF