Skip to content

DonCanjas/mpv-gif-generator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 

Repository files navigation

mpv-gif-generator for windows

teste

Original script created by Ruin0x11, which you can find here. This is a port of his gif generator script for Windows.

Requirements

  • Windows
  • mpv
  • ffmpeg with libass enabled

Installation

First of all, you must make sure ffmpeg is in your %PATH% and accesible via your command line. After ensuring this, clone or download as zip. Then, head to %APPDATA%/mpv/scripts and place mpv-gif.lua in there; if neither %APPDATA%/mpv nor %APPDATA%/mpv/scripts exist, you will have to create them. It's as easy as that!

How to install ffmpeg

Configuration

After setup, and if you wish, create a %APPDATA%/mpv/script-opts directory if it isn't created already and write a gif.conf file to configure the script. The three options the script offers are:

  • dir – Sets the output directory. Default is C:/Program Files/mpv/gifs.
  • rez – Sets the resolution of the output gifs. Default is 600.
  • fps – Sets the framerate of the output gifs. Default is 15. Don't go too overboard or the filesize will balloon.

Hotkeys

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

About

Creates animated gifs using mpv hotkeys

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%