SkillsGrove
SkillsGrove/영상 제작/descriptinc/skills/ascii-video

ascii-video

설치

$npx skills add https://github.com/descriptinc/skills --skill ascii-video
$git clone --depth 1 https://github.com/descriptinc/skills.git /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/ascii-video ~/.claude/skills/ascii-video
이 Agent Skill을 설치해 주세요: https://github.com/descriptinc/skills/tree/5f12371beeab726ed0338f46db02d7418189922a/ascii-video — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITGenerate colored ASCII art video using a Python renderer and finish in Descript. Choose from 5 templates (music visualizer, intro bumper, social clip, lyric video, product launch), customize the creative brief, render locally, then import to Descript for captions, music, voiceover, and export. Use this skill when creating ASCII art videos, retro-style video content, text-art animations, or stylized video effects.
아래 SKILL.md는 descriptinc/skills(커밋 5f12371)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 Descript. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

ASCII Video — Generate ASCII Art Video and Finish in Descript

A coding agent writes a bespoke Python renderer that outputs colored ASCII art as real MP4 video. You pick a template (music visualizer, intro bumper, social clip, lyric video, product launch), answer a few creative questions, and the agent generates the video from scratch. Then you import it into Descript for finishing.

For Descript API setup (auth, job polling, limitations), read ../references/descript-api.md.

Instructions for the AI

Guide a creator through generating an ASCII art video and finishing it in Descript. The workflow has two phases: video generation (Steps 1-5) and Descript post-production (Steps 6-7).

The video generation step involves writing a single-file Python renderer from scratch. The renderer uses NumPy + Pillow + ffmpeg to render colored ASCII characters as actual video frames. No pre-built templates or binaries.

After rendering, the video is imported into Descript for post-production: captions, music, voiceover, and export.

After every prompt_project_agent or import_media call: Poll get_job until job_state is "stopped" and check result.status before proceeding. See ../references/descript-api.md for details.


The workflow

Work through these steps in order.

Step 1: Environment setup

Start by asking: "Before we begin, do you already have Python 3, ffmpeg, and the required Python packages (numpy, pillow, scipy) installed? If yes, we can skip setup. If not, I'll walk you through it."

If setup is needed, guide per OS:

  • macOS: brew install ffmpeg then pip install numpy pillow scipy
  • Linux: sudo apt install ffmpeg then pip install numpy pillow scipy
  • Windows: Download ffmpeg from ffmpeg.org, add to PATH, then pip install numpy pillow scipy

Verify everything works:

python3 -c "import numpy, PIL, scipy; print('Ready')"
ffmpeg -version

Both commands should succeed before moving on.

Step 2: Pick a template

Present the five templates:

Template Description Input
Music Visualizer Audio-reactive ASCII visuals synced to a track Audio file
Intro Bumper Short (5-15s) branded ASCII animation None or logo image
Social Clip Portrait/square ASCII video for TikTok/IG/Shorts Optional source video
Lyric Video ASCII visuals synced to lyrics with karaoke-style text Audio + lyrics/SRT
Product Launch Product update/marketing video with ASCII aesthetic Optional footage + script

Once the user picks a template, read the corresponding reference file from references/ for template-specific details.

Step 3: Creative brief

Ask the template-specific questions from the reference file, plus these universal questions:

  • Target resolution: Landscape (1920x1080), portrait (1080x1920), square (1080x1080), or custom?
  • Target duration?
  • Color preferences or brand colors?

Step 4: Generate the Python script

Write a single-file Python renderer based on the creative brief and the template's rendering spec. Save it as a .py file the user can run directly.

Rendering guidance

This section gives the agent enough to write a working renderer without external dependencies beyond numpy, pillow, scipy, and ffmpeg.

Architecture: Single Python file. Core loop: for each frame, build a pixel canvas (uint8 numpy array H x W x 3), composite colored ASCII characters onto it using pre-rasterized font bitmaps, pipe raw RGB frames to ffmpeg via subprocess.

Font rasterization: Use Pillow to render each ASCII character once at the target font size, cache as numpy arrays. Common monospace fonts: "Menlo" (macOS), "Consolas" (Windows), "DejaVu Sans Mono" (Linux). Fall back through the list until one loads.

Character palettes: Density ramps (light to dark): .:-=+*#%@. Block elements: ░▒▓█. Braille patterns for high-density fields. Pick palette based on mood and template.

Color: Map source data (audio FFT bands, video luminance, procedural math) to RGB values. For perceptual color, use OKLAB/OKLCH color space conversions.

Audio analysis (for audio-reactive modes): Use scipy FFT to extract 6 frequency bands per frame. Detect beats via peak detection on RMS energy. Map spectral centroid to color temperature.

Video sampling (for video-to-ASCII modes): Use ffmpeg subprocess to decode input video frames. Sample luminance to select characters. Optionally apply edge detection for sharper ASCII mapping.

Tonemap: ASCII on black backgrounds is inherently dark. Use adaptive percentile-based tonemapping (np.percentile on the canvas, then rescale) to ensure the output isn't muddy.

Shaders: Composable post-processing effects applied per-frame: bloom (gaussian blur + additive blend), chromatic aberration, scanlines, vignette, color grading. Chain multiple shaders.

ffmpeg output: Pipe raw RGB frames to ffmpeg via subprocess.Popen:

ffmpeg -f rawvideo -pix_fmt rgb24 -s WxH -r FPS -i pipe: -c:v libx264 -pix_fmt yuv420p output.mp4

For GIF output: add -vf "fps=15,scale=640:-1".

Common pitfalls:

  1. macOS font height can be wrong — measure actual rendered height, not reported height.
  2. ffmpeg pipe deadlock — if you don't read stderr, the pipe can deadlock. Use communicate() or a separate thread for stderr.
  3. NumPy broadcasting errors are the #1 crash — always verify array shapes before operations.

For deeper reference material on effects, shaders, and advanced techniques, see the NousResearch ASCII Video skill.

Step 5: Render and verify

Run the script. Confirm:

  • Output file exists
  • Duration matches expectation: ffprobe -v error -show_entries format=duration -of csv=p=0 output.mp4
  • Resolution matches spec: ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 output.mp4
  • File size is reasonable — not 0 bytes, not absurdly large

If the render fails, debug common issues: ffmpeg not found, font not available, numpy broadcasting errors, ffmpeg pipe deadlock.

Ask the user to watch the rendered video and confirm they're happy with it before proceeding. For video-to-ASCII conversions, render a short preview (5s) first so the user can approve the look before committing to the full render.

Step 6: Import to Descript

Ask: "Do you want to manually upload your media to Descript, or import via the API?"

If manual:

Tell the user to drag and drop the rendered video (and any source audio files) into their Descript project via the desktop app. Ask for the project link once done (looks like https://web.descript.com/<project-id>).

If API:

Guide the user to upload the rendered MP4 to their cloud storage service of choice (Dropbox, Google Drive, S3, etc.) and get a publicly accessible URL. Then:

  1. Call import_media with the public URL to create a new project or add to an existing one
  2. If the template involves source audio (music visualizer, lyric video, product launch), that file also needs a public URL — import it alongside the video
  3. Poll get_job until complete

Note: The Descript API does not currently support local file upload — media must be at a publicly accessible URL. This limitation is expected to change. See docs.descriptapi.com for the latest capabilities.

Step 7: Descript finishing

Run the opinionated finishing workflow defined in the template's reference file. Use prompt_project_agent for each operation.

After each agent call, poll get_job until job_state is "stopped" and check result.status for "success" or "error".

Note any steps that require manual attention in the Descript desktop app (the reference file will specify these).


Key principles

  • One file, one render. The Python script is self-contained — no external dependencies beyond numpy, pillow, scipy, and ffmpeg.
  • Fresh script every time. The agent writes the renderer from scratch based on the creative brief, not from a template.
  • Show before you cut. For video-to-ASCII conversions, render a short preview (5s) first so the user can approve the look before committing to the full render.
  • Claude can't see video. All quality judgments about the rendered video require the user to watch it. The agent verifies technical specs (duration, resolution, file size) but not visual quality.
  • Jobs are async. After every Descript API call, poll with get_job until the job state is stopped. Check result.status for success or error.

Limitations

  • Claude cannot see or preview video. The user must watch renders to judge visual quality.
  • See ../references/descript-api.md for full API limitations and workarounds.

Source

Video generation approach based on the ASCII Video skill from NousResearch/hermes-agent.

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 Descript

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.