youtube-video-to-audio

Download YouTube videos as audio files using yt-dlp

⭐0stars🔀0forks📁View on GitHub🕐Updated Dec 28, 2025⬇️1downloads

When & Why to Use This Skill

This Claude skill provides a streamlined way to extract and download high-quality audio from YouTube videos directly through an agent interface. By leveraging the powerful yt-dlp and ffmpeg libraries, it allows users to convert video content into various audio formats like MP3, AAC, and WAV with customizable bitrates and quality settings, making it an essential tool for media management and content repurposing.

Use Cases

  • Podcast Archiving: Convert video-based podcasts or interviews into audio files for convenient offline listening and personal library management.
  • Content Repurposing: Extract high-fidelity audio clips from YouTube videos to be used as background tracks, sound bites, or references in creative projects and social media content.
  • Educational Resource Gathering: Save audio from lectures, tutorials, or seminars to facilitate learning and review during commutes or while multitasking.
  • High-Quality Media Conversion: Download music or performances with specific technical requirements, such as 320K bitrate MP3s, for professional-grade audio storage.
nameyoutube-video-to-audio
descriptionDownload YouTube videos as audio files using yt-dlp

YouTube Video to Audio

Extract and download audio from YouTube videos.

Usage

python scripts/download_audio.py --video-url "https://www.youtube.com/watch?v=VIDEO_ID"

Options

  • --video-url (required) - YouTube video URL to download
  • --quality - Quality selector (default: "bestaudio[abr<=64]/worstaudio")
  • --audio-format - Output format: mp3, aac, wav (default: mp3)
  • --bitrate - Audio bitrate: 64K, 128K, 192K, 320K (default: 64K)
  • --output - Custom output path (default: ~/tmp/download_audio_result.mp3)

Examples

# Basic usage (default: 64K bitrate MP3 to ~/tmp/download_audio_result.mp3)
python scripts/download_audio.py --video-url "https://www.youtube.com/watch?v=d6rZtgHcbWA"

# High quality with custom bitrate
python scripts/download_audio.py --video-url "https://youtu.be/xyz" --quality "bestaudio" --bitrate "128K"

# Custom output location
python scripts/download_audio.py --video-url "https://youtu.be/xyz" --output "/path/to/output.mp3"

Requirements

  • Python 3.11+
  • ffmpeg installed at ~/ffmpeg
  • yt-dlp (auto-downloaded on first run)