Gemini Omni Video To Sticker Gif logo

Gemini Omni Video To Sticker Gif

Community
cafe3310
gemini-omni-video-to-sticker-gif

从视频片段裁剪缩放变速以制作GIF动态表情

Overview

Publishercafe3310
Repositorypublic-agent-skills
Skill namegemini-omni-video-to-sticker-gif
Stars
256
Forks
30
Bundled files
1
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cafe3310 on GitHub. Read the source before you install it.

Installation

Install the Gemini Omni Video To Sticker Gif AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cafe3310/public-agent-skills/tree/main/skills_parked/gemini-omni-video-to-sticker-gif
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cafe3310/public-agent-skills.git /tmp/public-agent-skills
mkdir -p .claude/skills
cp -r /tmp/public-agent-skills/skills_parked/gemini-omni-video-to-sticker-gif .claude/skills/gemini-omni-video-to-sticker-gif
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gemini Omni Video To Sticker Gif in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gemini Omni Video To Sticker Gif on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gemini Omni Video To Sticker Gif is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

技能:gemini-omni-video-to-sticker-gif

概述

此技能专门用于将任意视频(如 MP4)转换为高品质的 GIF 动态表情包。在制作微信表情包等场景下,它提供了从“坐标校准”到“动图生成”的完整工作流。支持在截图中绘制红黄相间的像素坐标刻度(精确到 50px),帮助用户精确确定裁剪范围。

关键词: 视频转GIF, 微信表情包, 坐标定位, GIF加速, 帧定格, ffmpeg

何时使用此技能

  • 当您想将一段视频转换成 GIF 表情包,但不确定具体的裁剪坐标时。
  • 当您需要精确定位视频中某个主体的坐标,想生成一张带有像素尺度的预览图时。
  • 当您需要调整 GIF 速度(如 1.5 倍速),或者想让 GIF 最后一帧定格一段时间(如定格 0.4 秒)时。

目录结构

gemini-omni-video-to-sticker-gif/
├── SKILL.md
└── scripts/
    └── video_to_gif.py   # 核心处理脚本

参数说明

脚本 video_to_gif.py 接收以下参数:

  • video_path (位置参数): 输入视频文件的绝对路径。
  • -o, --output: 输出 file 路径。如果是 --grid 模式,输出为 PNG 预览图;否则输出为 GIF 动图。
  • --ss: 截取起始时间(例如 2.5,单位为秒,默认为 0.0)。
  • -t, --duration: 截取的时长(例如 3.5,单位为秒)。
  • --to: 截取的结束时间(例如 6.0,单位为秒)。如果提供了 --to,会自动计算时长 duration = to - ss。
  • --crop: 裁剪区域。支持以下两种格式:
    • w:h:x:y (FFmpeg 标准格式,如 700:700:292:10)
    • x,y,w,h (如 292,10,700,700 或 xy292x10 wh700x700 格式)
  • --scale: 输出尺寸(例如 600:600,默认为 600:600)。
  • --speed: 播放速度倍数(例如 1.5,默认为 1.0,大于 1.0 为加速,小于 1.0 为减速)。
  • --freeze: 最后一帧定格时长(例如 0.4,单位为秒,默认为 0.0,即不定格)。
  • --grid: 启用网格模式。开启后不会生成 GIF,而是提取 --ss 时间点的一帧,并在其上叠加像素坐标刻度(红线代表 100px,黄虚线代表 50px),用于精确定位。

使用示例

1. 提取并生成带刻度的坐标参考图

如果您不确定坐标,先生成一张带有坐标网格 of 预览帧(第 2.0s 处):

bash
python3 <path_to_skill>/scripts/video_to_gif.py /path/to/video.mp4 --ss 2.0 --grid -o /path/to/preview_grid.png

2. 生成 1.5 倍速、无定格的表情包

根据预览图确定的坐标 x=352, y=39, w=630, h=630,截取 2.5s - 6.0s 视频段,制作 1.5 倍速表情包:

bash
python3 <path_to_skill>/scripts/video_to_gif.py /path/to/video.mp4 --ss 2.5 --to 6.0 --crop 630:630:352:39 --speed 1.5 -o /path/to/output.gif

3. 生成 1.2 倍速、最后一帧定格 0.4 秒的表情包

bash
python3 <path_to_skill>/scripts/video_to_gif.py /path/to/video.mp4 --ss 2.2 --to 6.2 --crop 700:700:319:10 --speed 1.2 --freeze 0.4 -o /path/to/output_freeze.gif

常见陷阱与注意事项

  1. 依赖项: 系统必须安装有 ffmpeg 和 ffprobe,并已加入环境变量。
  2. 裁剪区域越界: 填写的 x + w 或 y + h 不能超出视频原始的分辨率,否则 ffmpeg 会报错。可以使用 ffprobe 先查看视频原始分辨率,或直接参考生成的 --grid 图像的边缘刻度。
  3. 微信表情包大小限制: 微信自定义表情大小限制通常为 5MB(有些老版本限制更低)。如果生成的 GIF 太大,建议通过减小时长、调低帧率或缩放尺寸(例如从 600x600 缩小到 300x300)来控制文件大小。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Gemini Omni Video To Sticker Gif AI skill do?

从视频片段裁剪缩放变速以制作GIF动态表情

Why use Gemini Omni Video To Sticker Gif on TypingMind?

Because you install it once and use it with any model. Gemini Omni Video To Sticker Gif is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gemini Omni Video To Sticker Gif in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cafe3310/public-agent-skills/tree/main/skills_parked/gemini-omni-video-to-sticker-gif. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Gemini Omni Video To Sticker Gif?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gemini Omni Video To Sticker Gif?

As many as you like. As long as a model supports skills, you can use Gemini Omni Video To Sticker Gif with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gemini Omni Video To Sticker Gif AI skill free?

Yes. It is published on GitHub by cafe3310 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇