Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the-honey/mpv-gif-generator
Creates animated gifs using mpv hotkeys
https://github.com/the-honey/mpv-gif-generator
ffmpeg generator gif gif-creator gif-generator gif-maker lua lua-script mpv mpv-script port script windows
Last synced: 3 months ago
JSON representation
Creates animated gifs using mpv hotkeys
- Host: GitHub
- URL: https://github.com/the-honey/mpv-gif-generator
- Owner: the-honey
- Created: 2018-06-26T19:13:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-26T06:51:50.000Z (almost 3 years ago)
- Last Synced: 2024-06-30T13:41:35.502Z (4 months ago)
- Topics: ffmpeg, generator, gif, gif-creator, gif-generator, gif-maker, lua, lua-script, mpv, mpv-script, port, script, windows
- Language: Lua
- Size: 26.4 KB
- Stars: 45
- Watchers: 3
- Forks: 12
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mpv - gif-generator - Creates animated gifs using hotkeys. (Image)
README
# mpv-gif-generator *for windows*
![Yuri On Ice Example](https://i.imgur.com/6wIylNl.gif)
Original script created by [Ruin0x11](https://github.com/Ruin0x11), which you can find [here](https://gist.github.com/Ruin0x11/8fae0a9341b41015935f76f913b28d2a).
This is a port of his gif generator script for Windows.# Requirements
- Windows
- mpv
- ffmpeg with libass enabled–as long as you're using the zeronoe builds you're good!
# InstallationFirst 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!
# 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