business-ops
Business operations: strategy, technology, growth, competitive intelligence, support, finance, HR, legal, operations, sales, productivity, product management.
FFmpeg-based video creation from image and audio.
$ npx -y skills add notque/vexjoy-agent --skill image-to-video --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/image-to-videoContext preview
The summary Claude sees to decide when to auto-load this skill.
FFmpeg-based video creation from image and audio.
name: image-to-video
promoted_to: video-editing
description: "FFmpeg-based video creation from image and audio."
user-invocable: false
allowed-tools:
- Read
- Write
- Bash
- Grep
- Glob
- Edit
routing:
triggers:
- image to video
- audio visualization
- static video
- mp4 from image
- music video
- podcast video
- video from image
- combine image audio
- album art video
- cover art video
pairs_with:
- workflow
complexity: simple
category: video-creationCombine a static image with an audio file to produce an MP4 video using FFmpeg. Supports resolution presets (1080p, 720p, square, vertical), optional audio visualization overlays (waveform, spectrum, cqt, bars), and batch processing of matched image+audio pairs. For image generation, use `image-gen` instead.
| Signal | Load These Files | Why | |---|---|---| | building FFmpeg filter graphs for audio visualization; encoding settings | `ffmpeg-filters.md` | Loads detailed guidance from `ffmpeg-filters.md`. |
Confirm all prerequisites before attempting video creation.
**Step 1: Check FFmpeg installation**
Always run this check first -- many systems lack FFmpeg or have minimal builds, and skipping it produces confusing subprocess errors instead of clear install guidance.
ffmpeg -version
If FFmpeg is not installed, provide platform-specific install instructions and stop.
**Step 2: Verify input files exist**
Both the image and audio files must be confirmed present before processing. Use absolute paths for all arguments -- relative paths break silently when the script executes from a different working directory.
ls -la /absolute/path/to/image.png /absolute/path/to/audio.mp3
Confirm both files exist and have non-zero size. Supported formats:
**Step 3: Determine parameters**
Re-read the user's request before selecting defaults. Resolve resolution preset and visualization mode from what the user actually asked for. Only apply defaults (1080p, static) when the user did not specify -- defaulting to static when the user requested a visualization is a common mistake.
If the user mentions a target platform, select the matching preset to avoid cropping or black bars on delivery:
| Preset | Dimensions | Platform | |--------|------------|----------| | `1080p` | 1920x1080 | YouTube HD (default) | | `720p` | 1280x720 | Standard HD, smaller files | | `square` | 1080x1080 | Instagram, social media | | `vertical` | 1080x1920 | Stories, Reels, TikTok |
Optional visualization modes (off unless the user requests one):
**Gate**: FFmpeg installed, both input files exist, parameters resolved. Proceed only when gate passes.
Set up output path and confirm no conflicts.
**Step 1: Determine output path**
Use the path provided by the user. If none given, derive from the audio filename:
/same/directory/as/audio/filename.mp4
**Step 2: Ensure output directory exists**
The script creates parent directories automatically. Verify the target directory is writable.
**Gate**: Output path determined, directory accessible. Proceed only when gate passes.
Execute FFmpeg to produce the video. Only implement what the user requested -- no extra visualizations or format conversions beyond MP4.
Encoding defaults: libx264 preset medium, CRF 23, yuv420p pixel format, 192k AAC audio.
**Step 1: Run the script**
python3 $HOME/vexjoy-agent/skills/content/image-to-video/scripts/image_to_video.py \ --image /absolute/path/to/image.png \ --audio /absolute/path/to/audio.mp3 \ --output /absolute/path/to/output.mp4 \ --resolution 1080p \ --visualization static
For workspace batch mode (processes all matched pairs in `workspace/input/`):
python3 $HOME/vexjoy-agent/skills/content/image-to-video/scripts/image_to_video.py \ --process-workspace \ --visualization waveform
**Step 2: Monitor output**
The script prints progress including input paths, resolution, visualization mode, and duration. Watch for ERROR lines in output.
**Gate**: Script exits with code 0. Proceed only when gate passes.
Confirm the output video is valid. Do not report success based on exit code alone -- FFmpeg can exit 0 but produce a corrupt or zero-duration file.
**Step 1: Check file exists and has reasonable size**
ls -la /absolute/path/to/output.mp4
**Step 2: Probe video metadata**
File size alone does not prove video integrity. Always probe with ffprobe to confirm the output is a valid video with correct duration.
ffprobe -v error -show_entries format=duration,size -show_entries stream=codec_name,width,height \ -of default=noprint_wrappers=1 /absolute/path/to/output.mp4
Confirm video duration matches audio duration (within 1 second tolerance).
**Step 3: Report to user**
Provide: output file path, file size, duration, resolution, and visualization mode used.
**Gate**: Output file exists, duration matches audio, metadata is valid. Task complete.
Cause: FFmpeg binary not found on system Solution: 1. Install via package manager: `brew install ffmpeg` (macOS), `sudo apt install ffmpeg` (Ubuntu) 2. Verify with `ffmpeg -version` after install 3. Ensure FFmpeg is in system PATH
Cause: Path is incorrect, relative, or file does not exist Solution: 1. Verify the path is absolute, not relative 2. Check file permissions with `ls -la` 3. Confirm the file extension match
Essays and writing behind this toolkit live at vexjoy.com. VexJoy Agent connects plain-English requests to specialist agents, skills, and workflows. /do selects the knowledge and tools needed for your task.
Repo: notque/vexjoy-agent
Business operations: strategy, technology, growth, competitive intelligence, support, finance, HR, legal, operations, sales, productivity, product management.
Design workflows — UX copy, design systems, design critique, accessibility review, design handoff, user research synthesis. Use when writing UI copy, reviewing…
Marketing: SEO audits, campaign planning, content strategy, email sequences, competitive analysis, brand review, performance reporting.