video-content-extractor – skill Viết lách & Nội dung cho agent AI
Trích xuất khung hình chính từ video MP4 theo khoảng thời gian tùy chỉnh, chạy OCR bằng Tesseract và tạo báo cáo Markdown có cấu trúc, gồm metadata video và bản ghi văn bản theo timestamp.
Cài skill video-content-extractor bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/video-content-extractor-4da7e.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /video-content-extractor – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/video-content-extractor-4da7e.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $video-content-extractor – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/video-content-extractor-4da7e.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /video-content-extractor – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/video-content-extractor-4da7e.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /video-content-extractor – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Supporting material availability
This catalog copy contains the inline guidance below, but does not include the following supporting paths. They are external prerequisites, not bundled files:
scripts/extract_video.py
Obtain the required material from the [declared upstream source](https://github.com/274326424/video-content-extractor), or from a user-provided installation of that source. Resolve each path relative to that installation, inspect its contents, and verify any applicable license and execution prerequisites. Do not run a command or claim a referenced procedure was followed until its required file exists. Do not fabricate the missing scripts or treat an unrelated file with the same name as equivalent. Independent steps fully documented here can proceed within the user’s authorized scope; report any dependent step as unavailable.
Video Content Extractor
Overview
Automatically extracts key frames from MP4 video files at configurable time intervals, performs OCR text recognition on each frame, and generates a structured Markdown report. The report includes video metadata (duration, resolution, codecs) and frame-by-frame OCR transcripts with timestamp references.
This skill is designed for Codex CLI and requires FFmpeg and Tesseract OCR installed on the local machine.
When to Use This Skill
- Use when you need to extract text content from video presentations, lectures, or screencasts.
- Use when you want to create searchable transcripts from video files without embedded subtitles.
- Use when you need to analyze video content programmatically and generate structured summaries.
- Use when the user asks to "read what is on screen" or "extract the content from this video."
How It Works
Step 1: Analyze Video Metadata
The skill uses ffprobe to extract video metadata: duration, resolution, frame rate, codec information, and file size.
Step 2: Extract Key Frames
Using FFmpeg, the skill captures frames at the configured interval (default: every 30 seconds). Each frame is saved as a timestamped JPEG image.
Step 3: OCR Text Recognition
Each extracted frame is processed by Tesseract OCR. If the default PSM mode returns no meaningful text, it falls back to fully automatic page segmentation.
Step 4: Generate Markdown Report
All extracted data is assembled into a structured Markdown document.
Examples
Example 1: Basic Extraction
Agent prompt:
Use the video-content-extractor skill to extract content from lecture.mp4
Output generates lecture.md and lecture_frames/ directory.
Example 2: Custom Interval
Parameters: video_path, output_dir, interval(seconds), lang
Extract every 60 seconds with English-only OCR:
python scripts/extract_video.py recording.mp4 ./output 60 eng
Example 3: Bilingual Content
Extract with default Chinese + English OCR:
python scripts/extract_video.py lecture.mp4 . 15 chi_sim+eng
Best Practices
- Use shorter intervals (10-15s) for fast-paced content with frequent text changes.
- Use longer intervals (30-60s) for presentation slides or slow lectures to reduce duplicate frames.
- For Chinese content, ensure Tesseract Chinese language pack is installed (chi_sim).
Limitations
- Requires FFmpeg and Tesseract OCR to be installed and accessible via PATH.
- Tesseract OCR accuracy depends on video quality, text size, and font clarity.
- Does not extract audio or perform speech-to-text transcription.
- Frame extraction is time-based (not scene-change-based), which may produce near-duplicate frames.
- Large videos with short intervals can generate many frames - ensure sufficient disk space.
Security and Safety Notes
- This skill only reads video files and writes extracted frames and Markdown reports.
- It does NOT send any data over the network - all processing is local.
- No invocation script is bundled or vetted by this entry. Review actual subprocess argument handling and output paths in the installed runtime; use local media inputs and bounded output/frame counts. Sampled OCR can miss transient text and is not a complete transcript.
- The skill does not modify or delete the original video file.
Common Pitfalls
- Problem: Tesseract returns garbled text
Solution: Ensure the correct language pack is installed. Run tesseract --list-langs to verify.
- Problem: FFmpeg fails with "not found"
Solution: Make sure FFmpeg is on PATH. Run ffmpeg -version to verify.
- Problem: OCR is slow on large videos
Solution: Increase the interval parameter to reduce frames processed.
Related Skills
- @media-summarizer - For summarizing video content using visual and audio cues.
- @document-ocr - For OCR on static images or scanned documents without video processing.
Skill liên quan
- wechat-cover-maker – Cài đặt và sử dụng gói WeChat Article Cover chính thức, ghim theo digest, cho các công…
- wechat-official-account-strategist – Phát triển WeChat Official Accounts (微信公众号) với chiến lược nội dung chuyển đổi cao, công…
- why-did-this-post-flop – Chẩn đoán vì sao một bài đăng trên Twitter/X hoặc LinkedIn hoạt động kém: không được…
- wiki-changelog – Tạo changelog có cấu trúc từ lịch sử git. Dùng khi người dùng hỏi "có gì thay đổi gần…
- wiki-page-writer – Bạn là kỹ sư tài liệu cấp cao, tạo các trang tài liệu kỹ thuật toàn diện với chiều sâu…
- write-in-my-voice – Soạn bài đăng Twitter/X hoặc LinkedIn giống giọng người yêu cầu, dựa trên các bài họ đã…
- writer – Tạo tài liệu, chuyển đổi định dạng (ODT/DOCX/PDF), trộn thư (mail merge) và tự động hóa…
- writing-great-skills – Tài liệu tham khảo về cách viết và chỉnh sửa skill hiệu quả, gồm từ vựng và nguyên tắc…