Giffer
Easily make gifs from a/b loop points in mpv.
Install / Use
/learn @defaultxr/GifferREADME
giffer
Easily make gifs or videos from a/b loop points in MPV.
NOTE: I no longer use nor develop this script; I recommend mpv-webm instead, as it is much more user-friendly and has many more features (including, despite its name, the option to export as GIF).
This is a script to easily generate a gif or video file from the a/b loop points in MPV. I started from the code on http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html and modified it to work better with mpv, as well as have a few minor changes.
Technically, MPV is optional since you can easily use the script by itself in the shell.
Requirements
- mpv (video player; optional)
- ffmpeg (to actually generate the gif)
- bc (to calculate the duration from a/b start/end points; not optional if you want frame precision since bash's built-in
exprcommand doesn't support floating point)
Setup
- Add the lines in input.conf to your mpv's input.conf file (usually located at ~/.config/mpv/input.conf; create it if it doesn't exist already)
- Change the paths in those lines to point to the location where you put the 'giffer' script, and the location where you want the gif/video to be saved.
Usage
- Play a video file using MPV.
- Press
lto set the start point of the gif. - Press
lagain to set the end point of the gif. - After the start and end points have been defined, press
gto export as gif orhto export as video. - Press
la third time to clear the loop and continue watching the video. - For extra precision, you can pause the video and then use
.and,to move forward or backward by one frame.
Related Skills
qqbot-channel
351.4kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.6k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
351.4kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
3.1kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
