Builderoom

October 17, 2026

native-subtitle-quote-image

Get resource

An Agent Skill that preserves in-video subtitles, extracts precise frames, and generates long-form social images.

MITClaude CodeText InputVideo InputImage Output
安装 / 调用方式bash
git clone https://github.com/chengyi-ai/native-subtitle-quote-image.git
cd native-subtitle-quote-image
mkdir -p ~/.codex/skills && cp -R skills/native-subtitle-quote-image ~/.codex/skills/
python3 -m pip install -r skills/native-subtitle-quote-image/requirements.txt
python3 skills/native-subtitle-quote-image/scripts/check_environment.py
调用示例json
python3 skills/native-subtitle-quote-image/scripts/native_subtitle_stitch.py check-source VIDEO --min-height 720
python3 skills/native-subtitle-quote-image/scripts/native_subtitle_stitch.py sample VIDEO --start 30 --end 120 --interval 5 --out candidate-contact-sheet.jpg
python3 skills/native-subtitle-quote-image/scripts/native_subtitle_stitch.py render VIDEO --manifest manifest.json --out-dir output-v1 --band-top 0.78 --band-bottom 0.96

Product facts

Type
AI Skill & Agent
Category
Creativity & Media › Memes and Social Graphics
Pricing
Open source
Platforms
Claude Code
License
MIT
Launched
Oct 17, 2026
Listed
Oct 17, 2026
Website
github.com

Overview

GitHubGitHub

native-subtitle-quote-image is an open-source Agent Skill that extracts real video frames and subtitles, stitching them into long images optimized for social media (default 3:4 ratio). It accepts local video files or YouTube links as input sources.

Its core design principle strictly separates two subtitle modes without mixing them:

  • Native Subtitle Mode: Crops burned-in subtitles directly from the video pixels. No OCR or redrawing is performed, preserving original fonts, watermarks, and other visual details.
  • Script Subtitle Mode: Renders user-reviewed dialogue or translated text onto actual video frames, clearly marking them as added later rather than passing them off as original subtitles.

The workflow includes fetching the video and subtitle tracks, inspecting real frames to identify burned-in subtitles, selecting quotes based on transcripts, locking the mode, cropping or rendering subtitles, and performing per-image quality checks after mode-specific rendering. Outputs include individual JPG images, a corresponding JSON file with timestamps, and an overview image for multi-image tasks.

For layout, native subtitles are stitched from source pixels first and then scaled uniformly to avoid enlarging the first line alone. In script mode, the main image occupies about 70% of the area, subtitle bars have no gaps between them, and the overall layout remains compact.

It can be invoked with a single sentence in AI agents like Codex or Claude Code, or run independently via Python CLI scripts for source checking, frame selection, crop confirmation, and rendering without an agent. It is ideal for social media operators and content creators who need to extract quotes from videos and create image-text content. The project is written in Python and open-sourced under the MIT license.

Key features

  • Direct image generation from video: Accepts local files or YouTube links, selects quotes, extracts precise frames, stitches images, performs per-image QA, and outputs JPG long images.
  • Native subtitle mode: Only crops burned-in subtitles already present in the frame—no OCR, redrawing, translation, or rewriting.
  • Script subtitle mode: Renders user-reviewed dialogue onto actual frames and marks it as added later, never passing it off as original subtitles.
  • Compact layout: Native subtitles stitch source pixels before uniform scaling; script mode uses ~70% for the main image with no gaps between subtitle bars.
  • One-sentence agent invocation: Trigger execution directly via natural language instructions in agents like Codex or Claude Code.
  • Standalone CLI execution: Run Python scripts directly without an agent for self-checks, frame selection, rendering, and more.
  • Environment self-check: Provides a read-only environment check script that explains missing components and asks for consent before installing them.
  • Candidate frame preview: Generates an overview of candidate frames with timestamps so you can pick the right shot without trial and error.
  • Per-image QA: Inspects every output image for quality after rendering completes.

Releases

Notify me

Initial · native-subtitle-quote-image

Q&A

What is the difference between native and script subtitles?AI-generated
In native subtitle mode, text comes solely from the video pixels by cropping burned-in subtitles without redrawing. In script subtitle mode, text comes from user-reviewed JSON files, rendered onto actual frames and marked as added later. The two modes must never be mixed.
Which input sources are supported?AI-generated
It supports direct processing of local video files, as well as fetching videos, metadata, and auxiliary subtitle tracks from YouTube links via yt-dlp.
How do I use it in Codex?AI-generated
Clone the repository, copy the skills/native-subtitle-quote-image directory to ~/.codex/skills/, install dependencies from requirements.txt, run the environment self-check script, and then invoke it with a single sentence in your agent task.
How do I use it in Claude Code?AI-generated
Copy the skills/native-subtitle-quote-image directory to ~/.claude/skills/. To invoke it, use /native-subtitle-quote-image or simply describe what you need.
Can I run it directly without an agent?AI-generated
Yes. The project provides a Python CLI script native_subtitle_stitch.py supporting commands like check-source, sample, band, and render.
What if the video has no burned-in subtitles?AI-generated
If you request native subtitles but the video only has toggleable subtitle tracks, the agent will explain the limitation first and switch to script mode only after you agree.
More
Get resource
Bookmark

This product has no owner yet

It was listed by the platform or its author left. If it is your work, prove your relationship to become the owner.

Claim this product

The product content on this page was translated by AI from the author's original.