Create slide show video

From X-School-Academy/skill-pilot · View interactive version

Create slide show video is an AI agent skill from the GitHub repository X-School-Academy/skill-pilot. Create slideshow videos from ordered images using FFmpeg. Supports three modes: silent slideshow with xfade transitions, slideshow with a single background audio (trimmed or looped), and slideshow where each image is paired with its own audio file and its on-screen duration equals that audio's durat

How to use this skill

Skill file

AI Builder - Create Slide Show Video

This skill creates a slideshow video from images in natural filename order. It supports three audio modes:

  1. Silent (--audio-mode none): images only, with xfade transitions.
  2. Background audio (--audio-mode background --audio <file>): single shared audio, trimmed or looped to slideshow length; xfade transitions between images.
  3. Per-image audio (--audio-mode per-image): each image is paired with an audio file having the same stem (e.g., a.png + a.mp3/a.wav); the image's on-screen duration equals the matching audio's duration. Audios are concatenated in natural image order. No xfade transitions in this mode.

When to Use This Skill

Your Roles in This Skill

Role Communication

As an expert in your assigned roles, you must announce your actions before performing them using the following format:

As a {Role} [and {Role}, ...], I will {action description}

This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.

Instructions

Follow these steps in order.

Step 1: Collect Inputs

Step 2: Ensure FFmpeg Exists

Step 3: Check Audio Duration (If Audio Exists)

ffprobe -v error -show_entries format=duration -of default=nk=1:nw=1 <audio_file>

Step 4: Make a Creation Plan

Before generating, write a short plan that includes:

Step 5: Generate the Slideshow

Treat the bundled helper script as a sample baseline:

core/bin/python core/skills/system/create-slide-show-video/scripts/create_slideshow.py \
  --images-dir <images_dir> \
  --output <output_video.mp4>

With background audio:

core/bin/python core/skills/system/create-slide-show-video/scripts/create_slideshow.py \
  --images-dir <images_dir> \
  --output <output_video.mp4> \
  --audio-mode background \
  --audio <audio_file> \
  --audio-fit loop

With per-image audio (each image displays for the length of its matching audio):

core/bin/python core/skills/system/create-slide-show-video/scripts/create_slideshow.py \
  --images-dir <images_dir> \
  --output <output_video.mp4> \
  --audio-mode per-image

Optional --per-image-audio-dir <dir> if audio files live in a different directory than the images.

For each request, check the user's exact requirements first. If the sample helper script cannot fit that request, create a temporary helper script under .skillpilot/temp/ and run it with:

core/bin/python .skillpilot/temp/<custom_script>.py ...

For all options and transition names, refer to references/ffmpeg-slideshow.md.

Step 6: Verify Output

Expected Output

Key Principles

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.