video-to-gif
Skill1.5k starsChanged 2 months agoMITView on GitHub
Video-to-GIF conversion with FFmpeg two-pass optimization
- Installs packages
4 other projects use a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- Kewton/CommandMatetheir own version, first seen Oct 4, 2026
- meitu/meitu-skillstheir own version, first seen Jun 15, 2026
- cognyai/claude-code-marketing-skillstheir own version, first seen Apr 2, 2026
- TeXmeijin/video-to-gif-skilltheir own version, first seen Jan 4, 2026
Who's talking about microsoft/hve-core
- A Hacker News story“Microsoft/Hve-Core”Hacker News · Mar 8, 2026 · 3 points
- @github-trending.bsky.social“📦 microsoft / hve-core ⭐ 169 (+6) 🗒 PowerShell A refined collection of Hypervelocity Engineering …”Bluesky · Mar 5, 2026 · 1 likes
- A Hacker News story“A refined collection of Hypervelocity Engineering components”Hacker News · Feb 20, 2026 · 1 points
- sudosubin/agents.nix“agent-skills.github.microsoft.hve-core: init at 3.3.101”GitHub · Oct 3, 2026
- nayounsang/younsang-codex-plugin“strict-review 보강”GitHub · Sep 26, 2026
The biggest 5 of 21 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 21
Talked about on GitHub, Hacker News and Bluesky (21 times).
On GitHub · 18
- Oct 3, 2026agent-skills.github.microsoft.hve-core: init at 3.3.101 — sudosubin/agents.nix0 reactions
- Sep 26, 2026strict-review 보강 — nayounsang/younsang-codex-plugin0 reactions
- Jul 22, 2026chore: add Copilot cloud-sandbox and dev container with hve-core-all — JoshLuedeman/fabric-worldcup0 reactions
- Jul 22, 2026chore: Copilot cloud-sandbox setup + dev container with hve-core-all — JoshLuedeman/vCamService0 reactions
- Jul 22, 2026chore: add Copilot cloud-sandbox setup + dev container (hve-core-all plugin) — JoshLuedeman/cosmosdb-to-sql-migration-tool0 reactions
13 more on GitHub
- Jul 22, 2026chore: add Copilot cloud-sandbox setup + dev container with hve-core-all plugin — JoshLuedeman/my-scripts0 reactions
- Jul 20, 2026security: hve-core freshness needs attention (6 drifted, 0 check errors) — microsoft/physical-ai-toolchain0 reactions · 10 comments
- May 4, 2026feat(agents): thin GHCP cloud-agent wrapper exposing hve-core RPI — microsoft/physical-ai-toolchain0 reactions
- Apr 14, 2026Spec driven development — devndive/links0 reactions
- Apr 11, 2026Chore releases — googleapis/release-please0 reactions
- Mar 29, 2026Test: performance issues with many custom agents registered — microsoft/vscode0 reactions · 2 comments
- Mar 25, 2026Support git symlinks in plugin install on Windows — github/copilot-cli0 reactions · 3 comments
- Mar 21, 2026chore(submodules): bump external/microsoft-hve-core from `e49a1b5` to `0fbd111` — Anselmoo/copilot-plugin-manager0 reactions · 3 comments
- Mar 9, 2026feat(ai-rules): added Copilot generation, external agent fetch, and AI workflows cookbook — rios0rios0/guide0 reactions
- Feb 28, 2026mar 2026 — kimtth/azure-openai-llm-notes0 reactions
- Feb 12, 2026docs(community): document GitHub Discussions usage and create welcome post — microsoft/edge-ai0 reactions
- Feb 12, 2026fix(docs): replace Azure DevOps references in CONTRIBUTING.md with GitHub equivalents — microsoft/edge-ai0 reactions
- Feb 6, 2026chore: migrate CODEOWNERS to team-based fallback pattern — microsoft/edge-ai0 reactions
On Hacker News · 2
- Mar 8, 2026Microsoft/Hve-Core3 points
- Feb 20, 2026A refined collection of Hypervelocity Engineering components1 point
On Bluesky · 1
- Mar 5, 2026📦 microsoft / hve-core ⭐ 169 (+6) 🗒 PowerShell A refined collection of Hypervelocity Engineering components (instructions, prompts,… — @github-trending.bsky.social1 likes and repost
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- cognyai/claude-code-marketing-skills★ 104same name
- Kewton/CommandMate★ 43same name
- meitu/meitu-skills★ 33same name
- TeXmeijin/video-to-gif-skill★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository81 other files it gives its agents.
- .github/skills/hve-core/vally-tests/references/agents.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- accessibilitySkill
- code-reviewSkill
- hve-artifact-authoringSkill
- python-foundationalSkill
- analysis-authoringSkill
- data-catalogSkill
- dataopsSkill
- data-science-engineering-foundationSkill
- evaluation-designSkill
- feasibilitySkill
- ml-experimentationSkill
- demo-setupSkill
- dt-coaching-foundationSkill
- dt-curriculumSkill
- dt-methodsSkill
- dt-rpi-integrationSkill
- ux-artifactsSkill
- ux-coachingSkill
- engagement-reportingSkill
- cavemanSkill
- copilot-otel-metricsSkill
- customer-card-renderSkill
- demo-videoSkill
- hve-demo-materialSkill
- muralSkill
- powerpointSkill
- tts-voiceoverSkill
- vscode-playwrightSkill
- architecture-diagramsSkill
- c4-architectureSkill
- documentationSkill
- hve-builderSkill
- prompt-analyzeSkill
- prompt-builderSkill
- prompt-refactorSkill
- pull-requestSkill
- vally-testsSkill
- hve-slidesSkill
- hve-core-installerSkill
- adr-authorSkill
- architecture-reviewSkill
- backlog-executeSkill
- backlog-managementSkill
- backlog-planSkill
- experiment-designSkill
- functional-plannerSkill
- gitlabSkill
- jiraSkill
- outcome-hypothesisSkill
- performance-slo-plannerSkill
- privacy-standardsSkill
- proposal-responseSkill
- rai-plannerSkill
- requirements-authorSkill
- security-planningSkill
- rai-standardsSkill
- rpi-challengerSkill
- rpi-implementSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 6 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
After successful conversion, include a file link to the GIF in the response with the absolute file path:
- Distinctive: line 82
When a filename is provided without a full path, the script searches in this order:
- Very specific: line 96
Use --tonemap to select the tonemapping algorithm:
- Very specific: line 160
Use --start and --duration to convert a specific portion of the video:
- Very specific: line 169
Use --loop to control GIF repeat behavior:
- Very specific: line 209
Use single-pass via --skip-palette (bash) or -SkipPalette (PowerShell).
- Distinctive: line 291
Create compact thumbnails for documentation:
- Distinctive: line 301
Verify FFmpeg is in your PATH:
- Distinctive: line 308
If FFmpeg is installed but not found, add its directory to your PATH environment variable.
- Very specific: line 312
Ensure the file exists at the specified path.
- Very specific: line 320
Use bayer dithering for faster processing
- Very specific: line 321
Use --duration to convert only a portion of the video
- Distinctive: line 329
Ensure FFmpeg 4.0+ is installed with zscale filter support.
- Very specific: line 340
If colors still appear off, try a different tonemapping algorithm with --tonemap.
- Very specific: line 344
Ensure FFmpeg version 4.0 or later is installed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Video-to-GIF Conversion Skill
This skill converts video files to optimized GIF animations using FFmpeg two-pass palette optimization.
Overview
The two-pass conversion process generates superior quality GIFs compared to single-pass approaches. Pass one analyzes the video and creates an optimized color palette. Pass two applies that palette to produce the final GIF with better color fidelity and smaller file sizes.
Response Format
After successful conversion, include a file link to the GIF in the response with the absolute file path:
/absolute/path/to/filename.gifThis allows the user to open the file and review it.
Prerequisites
FFmpeg is required and must be available in your system PATH.
macOS
brew install ffmpegLinux (Debian/Ubuntu)
sudo apt update && sudo apt install ffmpegWindows
Using Chocolatey:
choco install ffmpegUsing winget:
winget install FFmpeg.FFmpegVerify installation:
ffmpeg -versionQuick Start
Convert a video using default settings (10 FPS, 1280px width, sierra2_4a dithering):
scripts/convert.sh input.mp4scripts/convert.ps1 -InputPath input.mp4Output saves to input.gif by default.
File Search Behavior
When a filename is provided without a full path, the script searches in this order:
- Current working directory
- Workspace root (if inside a project)
~/Movies/(macOS) or~/Videos/(Linux)~/Downloads/~/Desktop/
This allows natural commands like convert.sh demo.mov without specifying full paths.
HDR Handling
The script automatically detects HDR video content via ffprobe by checking for BT.2020 color primaries or SMPTE 2084 transfer characteristics. When HDR is detected, tonemapping is applied automatically to produce SDR-compatible GIF output with proper color preservation.
Use --tonemap to select the tonemapping algorithm:
| Algorithm | Characteristics |
| hable | Filmic curve, good highlight rolloff (default) |
| reinhard | Preserves more color saturation |
| mobius | Similar to reinhard with better highlights |
| bt2390 | ITU standard, more conservative |
Parameters Reference
| Parameter | Flag (bash) | Flag (PowerShell) | Default | Description |
| Input file | --input | -InputPath | (required) | Source video file path |
| Output file | --output | -OutputPath | input.gif | Destination GIF file path |
| Frame rate | --fps | -Fps | 10 | Frames per second |
| Width | --width | -Width | 1280 | Output width in pixels |
| Dithering | --dither | -Dither | sierra2_4a | Dithering algorithm |
| Tonemapping | --tonemap | -Tonemap | hable | HDR tonemapping algorithm |
| Skip palette | --skip-palette | -SkipPalette | false | Use single-pass mode |
| Start time | --start | -Start | 0 | Start time in seconds |
| Duration | --duration | -Duration | (full video) | Duration to convert in seconds |
| Loop count | --loop | -Loop | 0 | GIF loop count (0 = infinite) |
| Timeout | VIDEO_TO_GIF_TIMEOUT (env) | -TimeoutSeconds | 600 | Seconds allowed for each ffprobe/ffmpeg run |
The output path must differ from the input path. Both scripts refuse to run when the output resolves to the input, which includes the default output for a .gif input, so pass an explicit output path in that case. An existing file at a different output path is overwritten.
Each ffprobe and ffmpeg invocation is stopped when it exceeds the timeout. When the HDR probe fails or times out, the input is treated as SDR and conversion continues.
Frame Rate (FPS)
FPS controls animation smoothness and file size. Lower values reduce file size but create choppier motion.
| FPS | Use Case |
| 5 | Simple animations, icons |
| 10 | General use (default) |
| 15 | Smooth motion, UI demos |
| 24 | Near-video quality |
Width
Width sets the output horizontal resolution in pixels. Height scales proportionally to maintain aspect ratio.
| Width | Use Case |
| 320 | Thumbnails, previews |
| 640 | Documentation |
| 800 | Presentations |
| 1280 | High detail (default) |
Dithering Algorithms
Dithering determines how the 256-color GIF palette approximates the original colors.
| Algorithm | Quality | Speed | Best For |
| sierra2_4a | High | Medium | General use (default) |
| floyd_steinberg | High | Slow | Photographic content |
| bayer | Medium | Fast | Graphics with solid colors |
| none | Low | Fastest | Stylized/posterized look |
Time Range Selection
Use --start and --duration to convert a specific portion of the video:
# Start at 5 seconds, convert 10 seconds
scripts/convert.sh --input video.mp4 --start 5 --duration 10Loop Control
Use --loop to control GIF repeat behavior:
| Value | Behavior |
| 0 | Loop forever |
| 1 | Play once |
| N | Play N times |
Two-Pass vs Single-Pass
Two-Pass (Default)
Two-pass conversion creates a custom palette from the source video, then applies it:
# Pass 1: Generate palette
ffmpeg -i input.mp4 \
-vf "fps=10,scale=1280:-1:flags=lanczos,palettegen=stats_mode=diff" \
-y /tmp/palette.png
# Pass 2: Create GIF
ffmpeg -i input.mp4 -i /tmp/palette.png \
-filter_complex "fps=10,scale=1280:-1:flags=lanczos[x];[x][1:v]paletteuse=dither=sierra2_4a:diff_mode=rectangle" \
-loop 0 -y output.gifTwo-pass produces better color accuracy and typically smaller files.
Single-Pass
Single-pass skips palette generation and uses FFmpeg's default 256-color palette:
ffmpeg -i input.mp4 \
-vf "fps=10,scale=1280:-1:flags=lanczos" \
-loop 0 -y output.gifSingle-pass processes faster but produces lower quality output with potential color banding.
Use single-pass via --skip-palette (bash) or -SkipPalette (PowerShell).
Script Reference
convert.sh (Bash)
# Basic usage
scripts/convert.sh video.mp4
# Custom output path
scripts/convert.sh --input video.mp4 --output demo.gif
# Adjust quality parameters
scripts/convert.sh --input video.mp4 --fps 15 --width 640 --dither floyd_steinberg
# HDR video with custom tonemapping
scripts/convert.sh --input hdr-video.mov --tonemap reinhard
# Extract a 10-second clip starting at 5 seconds
scripts/convert.sh --input video.mp4 --start 5 --duration 10
# Create a GIF that plays only once
scripts/convert.sh --input video.mp4 --loop 1
# Fast single-pass mode
scripts/convert.sh --input video.mp4 --skip-paletteconvert.ps1 (PowerShell)
# Basic usage
scripts/convert.ps1 -InputPath video.mp4
# Custom output path
scripts/convert.ps1 -InputPath video.mp4 -OutputPath demo.gif
# Adjust quality parameters
scripts/convert.ps1 -InputPath video.mp4 -Fps 15 -Width 640 -Dither floyd_steinberg
# HDR video with custom tonemapping
scripts/convert.ps1 -InputPath hdr-video.mov -Tonemap reinhard
# Extract a 10-second clip starting at 5 seconds
scripts/convert.ps1 -InputPath video.mp4 -Start 5 -Duration 10
# Create a GIF that plays only once
scripts/convert.ps1 -InputPath video.mp4 -Loop 1
# Fast single-pass mode
scripts/convert.ps1 -InputPath video.mp4 -SkipPaletteExamples
HDR Video Conversion
HDR content is detected automatically. No special flags are needed:
scripts/convert.sh hdr-footage.movThe script applies hable tonemapping by default. Use --tonemap to try different algorithms:
# Use reinhard for more saturated colors
scripts/convert.sh --input hdr-footage.mov --tonemap reinhardTime Range Extraction
Extract a specific segment from a longer video:
# Convert seconds 30-45 of a screencast
scripts/convert.sh --input screencast.mp4 --start 30 --duration 15 --fps 15Documentation Thumbnails
Create compact thumbnails for documentation:
scripts/convert.sh --input demo.mp4 --width 320 --fps 8Troubleshooting
FFmpeg not found
Verify FFmpeg is in your PATH:
which ffmpeg # macOS/Linux
where.exe ffmpeg # WindowsIf FFmpeg is installed but not found, add its directory to your PATH environment variable.
File not found
Ensure the file exists at the specified path. If providing only a filename, the script searches the workspace first, then common directories (~/Movies/, ~/Downloads/, ~/Desktop/). Use an absolute path if the file is in a different location.
Output file is too large
Reduce file size with these adjustments:
- Lower FPS (try 8 or 5)
- Reduce width (try 640 or 320)
- Use
bayerdithering for faster processing - Use
--durationto convert only a portion of the video
Colors appear washed out
Switch to floyd_steinberg dithering for photographic content. Avoid none dithering unless a stylized look is intended.
HDR content looks wrong
Ensure FFmpeg 4.0+ is installed with zscale filter support. The script requires libzimg for HDR tonemapping. Install via:
# macOS
brew install zimg
brew reinstall ffmpeg
# Ubuntu
sudo apt install libzimg-devIf colors still appear off, try a different tonemapping algorithm with --tonemap. The reinhard algorithm preserves more saturation, while bt2390 provides more conservative results.
Conversion fails with filter error
Ensure FFmpeg version 4.0 or later is installed. The palettegen and paletteuse filters require this version.
ffmpeg -versionTemporary palette file remains
The scripts clean up /tmp/palette.png (or $env:TEMP\palette.png on Windows) automatically. If conversion fails mid-process, remove this file manually.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

