SkillsGrove
SkillsGrove/Видеопроизводство/0xmariowu/Autosearch/video-to-text-openai

video-to-text-openai

Установка

$npx skills add https://github.com/0xmariowu/Autosearch --skill video-to-text-openai
$git clone --depth 1 https://github.com/0xmariowu/Autosearch.git /tmp/Autosearch && mkdir -p ~/.claude/skills && cp -r /tmp/Autosearch/autosearch/skills/tools/video-to-text-openai ~/.claude/skills/video-to-text-openai
Пожалуйста, установи для меня этот Agent Skill: https://github.com/0xmariowu/Autosearch/tree/00ad54c022a3effb9e848bb70b158b79584f6014/autosearch/skills/tools/video-to-text-openai — сначала прочитай его SKILL.md и скрипты и устанавливай в мою папку навыков только после того, как убедишься, что он безопасен.

Кратко

Исходное описание · MITTranscribe video/audio URL or local file to text + SRT using yt-dlp + OpenAI Whisper API. Paid fallback for v2 transcription when Groq is rate-limited or unavailable. Returns raw text and segments; summary is caller's responsibility.
Приведённый ниже SKILL.md воспроизведён из 0xmariowu/Autosearch (коммит 00ad54c) под лицензией MIT. Текст не изменён; опущены только метаданные заголовка файла, изображения показаны как ссылки, а очень длинные файлы сокращены. Авторские права: 2026 0xmariowu. Лицензия: LICENSE. Показан только файл с инструкциями; скрипты смотрите в исходном репозитории.

Transcribe video or audio into raw text and SRT subtitles through a reliable paid path: yt-dlp audio extraction plus OpenAI Whisper. Use this when video-to-text-groq is unavailable or quota-exceeded.

Input Fit

  • YouTube URLs.
  • Bilibili URLs.
  • Douyin URLs.
  • Xiaoyuzhou podcast URLs.
  • Local audio files such as MP3, M4A, WAV, AAC, FLAC, OGG, and OPUS.
  • Local video files such as MP4, MOV, MKV, AVI, WEBM, FLV, and M4V.

Invocation

Call transcribe.py's sync transcribe(url_or_path: str) function with the original URL or local file path:

result = transcribe("https://www.youtube.com/watch?v=example")

Successful calls return:

{
    "ok": True,
    "raw_txt": "...",
    "subtitle_srt": "1\n00:00:00,000 --> 00:00:03,100\n...\n",
    "meta": {
        "language": "en",
        "duration_sec": 123.4,
        "model": "whisper-1",
        "backend": "openai",
    },
    "audio_path": "audio.mp3",
    "source": "https://www.youtube.com/watch",
}

source is a query-stripped URL for URL input and only the basename for local file input. audio_path is always the prepared audio basename, never an absolute local or temporary path.

Failure Modes

  • Missing OPENAI_API_KEY returns reason: missing_api_key.
  • Unsupported URLs, network failures, and non-zero yt-dlp exits return reason: yt_dlp_failed.
  • Missing local ffmpeg for video conversion returns reason: ffmpeg_missing.
  • OpenAI rate limits return reason: rate_limited.
  • Other OpenAI API 4xx or 5xx responses return reason: openai_api_error.
  • Audio larger than 25 MB returns reason: audio_too_large.

Downgrade chain: use video-to-text-local on Apple Silicon with LM Studio when cloud transcription is unavailable or unsuitable. When possible, prefer video-to-text-groq (free tier) first and fall back to this skill for quality or quota reasons.

Limits

  • Requires a paid OpenAI API key in OPENAI_API_KEY (pay-as-you-go, approximately $0.006/min for whisper-1).
  • OpenAI rate limits and tier quotas can throttle bursts or long files.
  • The upload cap is 25 MB per request; slice long media or use local transcription.
  • URL extraction depends on yt-dlp support for the target platform and current site behavior.

This tool does not produce a summary. It returns raw_txt and subtitles so the runtime AI can decide how to process, summarize, quote, or cite the transcript.

Quality Bar

  • Evidence items have non-empty title and url.
  • No crash on empty or malformed API response.
  • Source channel field matches the channel name.
Полный текст лицензии (MIT)
MIT License

Copyright (c) 2026 0xmariowu

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.