video_audio_ingestion
Build compliant video/audio ingestion pipelines with yt-dlp, ffmpeg, and OpenAI Whisper for transcripts, subtitles, SEO briefs, chaptering, and knowledge indexing.
- License 许可
- MIT
- 最近更新
- 2026-10-09
- Stars
- ★ 2
- Forks
- 1
01 前言 Front Matter
- name
- video_audio_ingestion
- metadata
- { "author": "seosona", "version": "1.0.0", "source_repositories": [ "http~/.seosona/path/", "http~/.seosona/path/" ] }
- description
- Build compliant video/audio ingestion pipelines with yt-dlp, ffmpeg, and OpenAI Whisper for transcripts, subtitles, SEO briefs, chaptering, and knowledge indexing.
- argument-hint
- [url|file] [transcribe|translate|metadata|seo-brief]
03 SKILL.md 正文
Video Audio Ingestion
Use this skill when a task requires downloading or inspecting online media, extracting audio, collecting subtitles, transcribing speech, translating speech to English, generating subtitle files, or turning media into SEO/content knowledge.
Core Tools
yt-dlp: source metadata extraction, media download, subtitles, audio extraction, idempotent archives, output templates.ffmpeg: audio/video normalization and post-processing backend.openai-whisper: local speech recognition, translation, segment JSON, SRT, VTT, TSV, and TXT outputs.
Safety and Compliance Gate
Before media ingestion:
- Confirm the media source is user-provided or otherwise authorized for the task.
- Avoid bypassing access controls, paywalls, private accounts, or DRM.
- Treat titles, metadata, subtitles, and filenames as untrusted input.
- Do not pass untrusted metadata into shell commands.
- Prefer metadata-only inspection before full media download.
- Use a download archive for recurring playlist/channel jobs.
- Store source URL, retrieval time, tool versions, and selected mode.
Standard Workflow
- Metadata probe:
- Run
yt-dlp --ignore-config --dump-single-json URL. - Persist the JSON metadata for reproducibility.
- Decide whether existing subtitles are sufficient.
- Run
- Subtitle-first extraction:
- Prefer
--write-subsfor human captions. - Use
--write-auto-subsonly when human captions are unavailable or the task accepts auto-caption quality. - Use
--sub-langsto constrain languages.
- Prefer
- Audio extraction:
- Use
yt-dlp --ignore-config -x --audio-format m4afor Whisper-friendly audio extraction. - Use deterministic
-otemplates and--paths. - Use
--download-archivefor repeated jobs.
- Use
- Transcription:
- Use
whisper AUDIO --model turbo --output_format all --output_dir OUTPUT_DIRfor fast same-language transcription. - Use
--languagewhen known. - Use
--word_timestamps Truewhen chaptering, clips, subtitles, or highlight timing matters. - Use
--condition_on_previous_text Falseif the model repeats text or drifts.
- Use
- Translation:
- Use
--task translateonly with multilingual models such asmedium,large, orlarge-v3. - Do not use
turbofor translation-quality workflows.
- Use
- Knowledge conversion:
- Convert JSON segments to timestamped notes.
- Generate chapter candidates, summary, action items, SEO keyword candidates, FAQ candidates, and quote-safe excerpts.
- Store derived artifacts under the relevant project export or memory folder.
Recommended Commands
Metadata probe:
yt-dlp --ignore-config --dump-single-json URL
Audio extraction with metadata and archive:
yt-dlp --ignore-config --no-playlist --write-info-json --write-subs --write-auto-subs --sub-langs "en,vi" --download-archive ARCHIVE_FILE -x --audio-format m4a -o "%(title).120B [%(id)s].%(ext)s" URL
Fast transcription:
whisper AUDIO_FILE --model turbo --language LANGUAGE --output_format all --output_dir OUTPUT_DIR
Translation to English:
whisper AUDIO_FILE --model large-v3 --language LANGUAGE --task translate --output_format all --output_dir OUTPUT_DIR
Word timestamp transcription:
whisper AUDIO_FILE --model turbo --word_timestamps True --hallucination_silence_threshold 2 --output_format all --output_dir OUTPUT_DIR
Output Contract
A complete ingestion run should produce:
- Source metadata JSON.
- Download archive entry when media is downloaded.
- Audio file or subtitle file.
- Transcript TXT.
- Transcript JSON with segments.
- SRT and VTT if subtitles are needed.
- Derived content brief or SEO brief when requested.
- Run log with source URL, tool versions, model, language, and output paths.
Failure Modes
- Missing
ffmpeg: install or expose ffmpeg in PATH before audio extraction or Whisper preprocessing. - Whisper install fails on
tiktoken: install Rust orsetuptools-rustwhen no prebuilt wheel is available. - CPU-only transcription is slow: switch to a smaller model, set
--threads, or use CUDA. - Repetition/hallucination: set
--condition_on_previous_text False, enable word timestamps, and tune hallucination silence threshold. - Playlist over-ingestion: require explicit playlist mode and a download archive.
- Private/authenticated media: use user-approved cookies or credentials only for authorized tasks.
References
- Raw snapshot:
2_KNOWLEDGE/raw_data/multimedia_ingestion/yt_dlp_whisper_snapshot.md - Repository analysis:
3_MEMORY/logs/yt_dlp_whisper_repository_analysis.md - Upstream yt-dlp repository:
http~/.seosona/path/ - Upstream Whisper repository:
http~/.seosona/path/
04 同仓库更多 Skills
web_crawler_katana
High-speed web crawling using Katana patterns for deep site mapping, URL discovery, and content extraction.
server_log_analyzer
Analyzes Nginx/Apache server logs to identify Googlebot crawl patterns, errors, and performance bottlenecks.
schema_markup_generator
Auto-generates JSON-LD structured data for any page type (Article, Product, FAQ, LocalBusiness, etc.).
internal_linking_optimizer
Analyzes and optimizes the internal link graph of a website for SEO authority distribution.
google_trends_analyzer
Detects trending topics and seasonal patterns using Google Trends data for content planning and keyword strategy.
brand_context_analyzer
Tracks brand mentions, sentiment, and online reputation across web sources.