Skip to content
Back to skills

Video To Text Local

ASecurity

Transcribe 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.

  • 44 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 28, 2026
ai-agentspythonapibackend

Works with

  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 3 files and shows the line behind each finding

Scanned May 28, 2026

npx -y skills add 0xmariowu/Autosearch --skill video-to-text-local --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Video To Text Local?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Video To Text Local
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0xmariowu-video-to-text-local/badge)](https://www.skillsdirectory.com/skills/0xmariowu-video-to-text-local)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: video-to-text-local
description: Transcribe 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.
version: 0.1.0
layer: leaf
domains: [video-audio, transcription]
scenarios: [video-to-text, subtitle-extraction, podcast-transcription, offline-transcription]
trigger_keywords: [转文字, 字幕, 转录, transcribe, whisper, video to text, 播客字幕, 本地转录, offline transcribe]
model_tier: Fast
auth_required: false
cost: free
experience_digest: experience.md
---

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:

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

Successful calls return:

```python
{
    "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.

Files in this skill

  • SKILL.md3.2 KB
  • __init__.py48 B
  • transcribe.py9.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.