# Video To Gif

> Automatically convert videos in `media/videos` to GIFs in `media/gifs` and embed them into `README.md` based on context inferred from filenames.

- Skill: `cih1996/video-to-gif` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add cih1996/video-to-gif`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cih1996/video-to-gif/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: cih1996 (https://skillmd.com/u/cih1996)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/cih1996/video-to-gif

---


# Video to GIF Automator

## Overview
This skill automates the process of converting demo videos to GIFs and updating the project documentation. It helps in keeping the documentation up-to-date with visual demonstrations without manual conversion and editing.

## Workflow

### 1) Prepare Videos
Place your `.mp4`, `.mov`, or other video files into the `media/videos` directory.

### 2) Run Automation
Execute the provided Python script to process the videos.
```bash
python skills/video-to-gif/convert_and_update.py
```

### 3) Conversion Process
The script will:
- Scan `media/videos` for new files.
- Convert each video to a high-quality GIF using `ffmpeg`.
- Save the GIFs to `media/gifs`.

### 4) Documentation Update
The script parses `README.md` and attempts to insert the GIF in a relevant section based on the filename (e.g., `login_flow.mp4` -> `## Login Flow`). If no matching section is found, it appends the GIF to a "Gallery" section.

## Dependencies
- Python 3
- ffmpeg (must be installed and in system PATH)

