Autosearch video-to-text-groq
Transcribe video/audio URL or local file to text + SRT using yt-dlp + Groq Whisper API (free tier). Preferred default for v2 transcription. Returns raw text and segments; summary is caller's responsibility.
install
source · Clone the upstream repo
git clone https://github.com/0xmariowu/Autosearch
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/0xmariowu/Autosearch "$T" && mkdir -p ~/.claude/skills && cp -r "$T/autosearch/skills/tools/video-to-text-groq" ~/.claude/skills/0xmariowu-autosearch-video-to-text-groq && rm -rf "$T"
manifest:
autosearch/skills/tools/video-to-text-groq/SKILL.mdsource content
Transcribe video or audio into raw text and SRT subtitles through the cheapest fast path:
yt-dlp audio extraction plus Groq Whisper.
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-large-v3", "backend": "groq", }, "audio_path": "/tmp/autosearch-video-to-text-groq-.../audio.mp3", "source": "https://www.youtube.com/watch?v=example", }
Failure Modes
- Missing
returnsGROQ_API_KEY
.reason: missing_api_key - Unsupported URLs, network failures, and non-zero
exits returnyt-dlp
.reason: yt_dlp_failed - Missing local
for video conversion returnsffmpeg
.reason: ffmpeg_missing - Groq rate limits return
.reason: rate_limited - Other Groq API 4xx or 5xx responses return
.reason: groq_api_error - Audio larger than 25 MB returns
.reason: audio_too_large
Downgrade chain: use
video-to-text-openai as the paid fallback, then video-to-text-local on Apple Silicon with LM Studio when cloud transcription is unavailable or unsuitable.
Limits
- Requires a free Groq API key in
.GROQ_API_KEY - Groq free-tier rate limits can throttle bursts or long files.
- The free-tier audio upload cap is 25 MB; slice long media or use local transcription.
- URL extraction depends on
support for the target platform and current site behavior.yt-dlp
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.