SkillsGrove
SkillsGrove/영상 제작/0xmariowu/Autosearch/video-to-text-local

video-to-text-local

설치

$npx skills add https://github.com/0xmariowu/Autosearch --skill video-to-text-local
$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-local ~/.claude/skills/video-to-text-local
이 Agent Skill을 설치해 주세요: https://github.com/0xmariowu/Autosearch/tree/00ad54c022a3effb9e848bb70b158b79584f6014/autosearch/skills/tools/video-to-text-local — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITTranscribe video/audio URL or local file to text + SRT using yt-dlp + local mlx-whisper (Apple Silicon). Free, offline, fastest on M-series Macs. Opt-in advanced path for users with Apple Silicon + mlx-whisper installed. Returns raw text and segments; summary is caller's responsibility.
아래 SKILL.md는 0xmariowu/Autosearch(커밋 00ad54c)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 0xmariowu. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

Transcribe video or audio entirely on-device using yt-dlp audio extraction plus local mlx-whisper inference. Works offline, zero API cost, fastest on Apple Silicon M-series with MLX Metal acceleration.

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": "mlx-community/whisper-large-v3-turbo",
        "backend": "mlx-whisper",
    },
    "audio_path": "/tmp/autosearch-video-to-text-local-.../audio.mp3",
    "source": "https://www.youtube.com/watch?v=example",
}

Failure Modes

  • Missing mlx-whisper package returns reason: mlx_whisper_unavailable (install with pip install mlx-whisper, Apple Silicon only).
  • 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.
  • Model download failure (no network on first run) returns reason: model_download_failed.
  • Other MLX / transcription runtime errors return reason: mlx_whisper_runtime_error.

Downgrade chain: use video-to-text-groq as the free cloud fallback (requires GROQ_API_KEY), then video-to-text-openai as the paid cloud fallback.

Limits

  • Requires Apple Silicon (M1 / M2 / M3 / M4). Not compatible with Intel Macs, Linux, or Windows.
  • Requires mlx-whisper package installed separately: pip install mlx-whisper (not a default autosearch dependency because it's macOS/ARM-only).
  • First run downloads the Whisper model to ~/.cache/huggingface/hub/ (~3 GB for large-v3-turbo).
  • Default model: mlx-community/whisper-large-v3-turbo. Override via AUTOSEARCH_MLX_WHISPER_MODEL env var to any HuggingFace repo or local model path.

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.