跳到正文
cccskills
免费在 GitHub 公开

audio-extractor

Extract audio from videos or download audio from supported websites with yt-dlp, then save it as MP3, M4A, FLAC, WAV, or OPUS. The workflow can embed track metadata and cover art, and process playlists or podcast episodes in batches.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Extract audio from videos and download audio-only content from 1500+ websites using yt-dlp. Converts to MP3, M4A, FLAC, WAV, or OPUS with embedded metadata and cover art. Use when the user wants to extract audio from videos, download podcasts, download music from YouTube/SoundCloud/Bandcamp, convert video to audio, or batch download playlist audio. Triggers on requests like 'extract audio', 'download as MP3', 'get the audio from this video', 'download this podcast', 'download music', 'convert to FLAC'.

dp-archive/archive星标 1,107(GitHub 1,107 + cccskills 0)
集成工具YouTube

实测评分 未实测

查看安装方法

适用场景

  • Save a video's audio as MP3 or FLAC
  • Download podcast episodes as audio files
  • Convert a playlist into numbered audio tracks
  • Embed track details and cover art in downloaded audio

包含的文件(2)

  • SKILL.md8.0 KB
  • scripts/extract_audio.py4.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Audio Extractor

Extract pure audio from videos and download audio content. Supports format conversion, metadata embedding, and batch playlist processing.

Prerequisites

  • Executor: Must use the remotion executor (provides yt-dlp, ffmpeg, deno)
  • JS Runtime: deno is required for YouTube extraction (yt-dlp 2025+ default). The remotion executor includes deno.
  • ffmpeg: Required for audio format conversion and metadata embedding. Included in remotion executor.

Limitations

IssueDetail
YouTube rate limitingServer IPs are frequently rate-limited by YouTube. If you get "This content isn't available, try again later", wait ~1 hour or ask the user to upload the audio file directly.
YouTube JS runtimeyt-dlp requires deno for YouTube. Without it: No supported JavaScript runtime could be found.
Geo-restrictionsSome content may be region-locked. Use --geo-bypass flag.
AuthenticationSome platforms require cookies. Use --cookies-from-browser or --cookies cookies.txt.

Fallback strategy: If YouTube download fails, suggest the user upload the audio file directly or provide a direct audio URL.

Quick Start

# Extract audio (best quality, original format)
yt-dlp -x "URL"

# Extract as MP3
yt-dlp -x --audio-format mp3 "URL"

# MP3 with metadata and cover art
yt-dlp -x --audio-format mp3 --embed-metadata --embed-thumbnail "URL"

Audio Formats

Format Selection

FormatCommandUse Case
MP3--audio-format mp3Universal compatibility
M4A/AAC--audio-format m4aApple devices, good quality/size
FLAC--audio-format flacLossless, archival
WAV--audio-format wavUncompressed, editing
OPUS--audio-format opusBest quality/size ratio
Vorbis--audio-format vorbisOpen source, OGG container
Best--audio-format bestKeep original (no conversion)

Quality Control

# VBR quality (0=best, 10=worst)
yt-dlp -x --audio-format mp3 --audio-quality 0 "URL"

# Specific bitrate
yt-dlp -x --audio-format mp3 --audio-quality 320K "URL"
yt-dlp -x --audio-format mp3 --audio-quality 192K "URL"

# FLAC (lossless - quality setting ignored)
yt-dlp -x --audio-format flac "URL"

Metadata Embedding

Embed All Metadata

# Metadata + thumbnail as cover art
yt-dlp -x --audio-format mp3 \
       --embed-metadata \
       --embed-thumbnail \
       "URL"

What Gets Embedded

  • Title
  • Artist/Uploader
  • Album (playlist name if applicable)
  • Track number (playlist index)
  • Upload date
  • Description
  • Thumbnail as cover art

Custom Metadata

# Override artist
yt-dlp -x --audio-format mp3 \
       --embed-metadata \
       --parse-metadata "uploader:%(artist)s" \
       "URL"

# Set album name
yt-dlp -x --audio-format mp3 \
       --embed-metadata \
       --parse-metadata "playlist:%(album)s" \
       "URL"

Playlist/Batch Processing

Download Full Playlist as Audio

# Basic playlist extraction
yt-dlp -x --audio-format mp3 "PLAYLIST_URL"

# With numbering and organization
yt-dlp -x --audio-format mp3 \
       --embed-metadata --embed-thumbnail \
       -o "%(playlist)s/%(playlist_index)02d - %(title)s.%(ext)s" \
       "PLAYLIST_URL"

# Skip already downloaded
yt-dlp -x --audio-format mp3 \
       --download-archive downloaded.txt \
       "PLAYLIST_URL"

Selective Download

# First 10 tracks
yt-dlp -x --audio-format mp3 -I 1:10 "PLAYLIST_URL"

# Specific tracks
yt-dlp -x --audio-format mp3 -I 1,5,10 "PLAYLIST_URL"

# Last 5 tracks
yt-dlp -x --audio-format mp3 -I -5: "PLAYLIST_URL"

Output Naming

Template Variables

VariableDescriptionExample
%(title)sTrack titleSong Name
%(uploader)sArtist/ChannelArtist Name
%(playlist)sAlbum/PlaylistMy Playlist
%(playlist_index)sTrack number1
%(upload_date)sRelease date20231215
%(ext)sExtensionmp3

Common Patterns

# Artist - Title
yt-dlp -x -o "%(uploader)s - %(title)s.%(ext)s" "URL"

# Album folder with track numbers
yt-dlp -x -o "%(playlist)s/%(playlist_index)02d - %(title)s.%(ext)s" "PLAYLIST_URL"

# Date-organized
yt-dlp -x -o "%(upload_date>%Y-%m)s/%(title)s.%(ext)s" "URL"

Platform-Specific

YouTube Music / YouTube

# Standard extraction
yt-dlp -x --audio-format mp3 --embed-metadata --embed-thumbnail "URL"

# For music videos, prefer audio stream
yt-dlp -f "bestaudio" -x --audio-format mp3 "URL"

SoundCloud

# Direct audio (often already MP3)
yt-dlp -x "https://soundcloud.com/artist/track"

# Playlist/album
yt-dlp -x --audio-format mp3 \
       -o "%(uploader)s - %(album)s/%(playlist_index)02d - %(title)s.%(ext)s" \
       "https://soundcloud.com/artist/sets/album"

Bandcamp

# Full album with metadata
yt-dlp -x --audio-format flac \
       --embed-metadata --embed-thumbnail \
       -o "%(album)s/%(track_number)02d - %(track)s.%(ext)s" \
       "https://artist.bandcamp.com/album/name"

Podcasts

# Single episode
yt-dlp -x --audio-format mp3 --embed-metadata "EPISODE_URL"

# Full podcast feed (RSS)
yt-dlp -x --audio-format mp3 \
       -o "%(playlist)s/%(upload_date)s - %(title)s.%(ext)s" \
       --download-archive podcasts.txt \
       "RSS_FEED_URL"

# Apple Podcasts
yt-dlp -x --audio-format mp3 \
       --embed-metadata \
       "https://podcasts.apple.com/..."

Bilibili

yt-dlp -x --audio-format mp3 \
       --cookies-from-browser chrome \
       "https://bilibili.com/video/BV..."

Advanced Options

Parallel Downloads

# Faster playlist downloads
yt-dlp -x --audio-format mp3 \
       --concurrent-fragments 4 \
       "PLAYLIST_URL"

Post-Processing

# Normalize audio volume
yt-dlp -x --audio-format mp3 \
       --postprocessor-args "ffmpeg:-af loudnorm" \
       "URL"

# Trim silence
yt-dlp -x --audio-format mp3 \
       --postprocessor-args "ffmpeg:-af silenceremove=1:0:-50dB" \
       "URL"

Split by Chapters

# Split video into separate audio files by chapter
yt-dlp -x --audio-format mp3 \
       --split-chapters \
       -o "chapter:%(section_title)s.%(ext)s" \
       "URL"

Complete Examples

Extract audio from YouTube playlist as high-quality MP3:

yt-dlp -x --audio-format mp3 --audio-quality 0 \
       --embed-metadata --embed-thumbnail \
       -o "%(playlist)s/%(playlist_index)02d - %(title)s.%(ext)s" \
       --download-archive downloaded.txt \
       "https://youtube.com/playlist?list=..."

Download podcast episode:

yt-dlp -x --audio-format mp3 \
       --embed-metadata \
       -o "%(uploader)s - %(title)s.%(ext)s" \
       "https://podcasts.apple.com/..."

Extract FLAC from Bandcamp album:

yt-dlp -x --audio-format flac \
       --embed-metadata --embed-thumbnail \
       -o "%(album)s/%(track_number)02d - %(track)s.%(ext)s" \
       "https://artist.bandcamp.com/album/..."

Extract audio from local video file:

ffmpeg -i video.mp4 -vn -acodec libmp3lame -q:a 0 audio.mp3

Troubleshooting

IssueSolution
"ffmpeg not found"Install ffmpeg: brew install ffmpeg / apt install ffmpeg
No cover artAdd --embed-thumbnail (requires ffmpeg)
Wrong metadataUse --parse-metadata to remap fields
Poor qualityUse --audio-quality 0 or lossless format

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Review text for patterns associated with AI-generated writing, including vocabulary, structure, formatting, citations, and model-specific artifacts. The skill combines multiple signals, weighs context and mitigating evidence, and presents a cautious assessment with confidence and caveats.

中文简介正在准备中。当前显示英语简介。

  • Review an essay for multiple AI-writing signals
  • Explain which text patterns may suggest AI authorship
  • Assess a draft while accounting for false-positive risks
dp-archive/archive11072026年3月4日 更新

biopython

免费

Use Biopython to process DNA, RNA, and protein sequences, read and convert common biology file formats, run alignments or BLAST searches, access NCBI records, and work with protein structures and phylogenetic trees in Python.

中文简介正在准备中。当前显示英语简介。

  • Reading and converting FASTA, GenBank, or PDB files
  • Calculating sequence statistics or translating DNA
  • Searching NCBI and PubMed records in batches
dp-archive/archive11072026年3月4日 更新

Turn a project description into a coordinated visual identity package. Define logo variants, color palettes, and typography, then create layouts for business cards and social media covers along with a brand specification document for consistent use.

中文简介正在准备中。当前显示英语简介。

  • Creating a logo system and brand kit
  • Choosing colors and typography for a new project
  • Designing a business card and social media cover
dp-archive/archive11072026年3月4日 更新

Create original posters and static artwork by first defining a visual direction for color, shape, space, and typography. Receive a Markdown design philosophy alongside a PNG or PDF artwork that communicates primarily through visuals.

中文简介正在准备中。当前显示英语简介。

  • Create an original poster
  • Express a theme through abstract artwork
  • Develop a visual direction and finished artwork
dp-archive/archive11072026年3月4日 更新

Turn a codebase into Mermaid diagrams such as architecture, ER, sequence, class, and flow diagrams. It analyzes relevant files, writes diagram source, renders SVG and PNG images, and checks the rendered result for readability and correctness.

中文简介正在准备中。当前显示英语简介。

  • Visualize a codebase architecture
  • Create an ER diagram from database models
  • Show an API flow as a sequence diagram
dp-archive/archive11072026年3月4日 更新

Create short brand copy that follows a defined voice and strict length limits. Use it for taglines, brand philosophy, business cards, social bios and cover text, with guidance for keeping wording consistent across touchpoints.

中文简介正在准备中。当前显示英语简介。

  • Writing a short brand tagline
  • Defining a consistent brand voice
  • Fitting copy into a social media bio
dp-archive/archive11072026年3月4日 更新

查看 dp-archive 的全部技能

报告此技能的问题