metadata-tagging
БесплатноБез исполняемых скриптовНе проверенopustags and ffmpeg patterns for applying metadata to audio and video files
от jmagly★ 233 звезды на GitHubОб этом скилле
Metadata Tagging Skill
Concrete patterns for applying metadata tags to audio and video files using opustags (Opus) and ffmpeg (MP4/MP3/FLAC).
opustags (Opus Files)
Install
# macOS
brew install opustags
# Ubuntu/Debian
sudo apt install opustags
# Arch
sudo pacman -S opustags
# From source
git clone https://github.com/fmang/opustags.git
cd opustags
cmake -S . -B build
cmake --build build
sudo cmake --install build
Set Basic Tags
# Set all common tags at once
opustags input.opus \
--set "TITLE=Both Sides Now" \
--set "ARTIST=Joni Mitchell" \
--set "ALBUM=Clouds" \
--set "ALBUMARTIST=Joni Mitchell" \
--set "TRACKNUMBER=12" \
--set "DATE=1969" \
--set "GENRE=Folk" \
-o output.opus
Set Individual Tags
# Title
opustags input.opus --set "TITLE=Song Title" -o output.opus
# Artist
opustags input.opus --set "ARTIST=Artist Name" -o output.opus
# Album
opustags input.opus --set "ALBUM=Album Name" -o output.opus
# Album Artist (for compilations)
opustags input.opus --set "ALBUMARTIST=Various Artists" -o output.opus
# Track number
opustags input.opus --set "TRACKNUMBER=3" -o output.opus
# Track number with total
opustags input.opus --set "TRACKNUMBER=3/12" -o output.opus
# Year
opustags input.opus --set "DATE=1969" -o output.opus
# Genre
opustags input.opus --set "GENRE=Folk Rock" -o output.opus
# Comment
opustags input.opus --set "COMMENT=Live at Carnegie Hall" -o output.opus
In-Place Updates
# Modify file in place (overwrites original)
opustags -i input.opus --set "TITLE=New Title"
# Multiple tags in-place
opustags -i input.opus \
--set "TITLE=New Title" \
--set "ARTIST=New Artist"
Read Tags
# Display all tags
opustags input.opus
# Save tags to file
opustags input.opus > tags.txt
# Check if specific tag exists
opustags input.opus | grep "TITLE="
Delete Tags
# Delete specific tag
opustags input.opus --delete "COMMENT" -o output.opus
# Delete all tags (keep only vendor string)
opustags input.opus --delete-all -o output.opus
Set Cover Art
# Embed cover from JPEG file
opustags input.opus --set-cover cover.jpg -o output.opus
# In-place cover embedding
opustags -i input.opus --set-cover cover.jpg
# Replace existing cover
opustags -i input.opus --set-cover new-cover.jpg
Batch Operations
# Set same tags on all files in directory
for file in *.opus; do
opustags -i "$file" \
--set "ALBUMARTIST=Joni Mitchell" \
--set "ALBUM=Blue" \
--set "DATE=1971"
done
# Embed same cover into all files
for file in *.opus; do
opustags -i "$file" --set-cover ../cover.jpg
done
# Set track numbers sequentially
track=1
for file in *.opus; do
opustags -i "$file" --set "TRACKNUMBER=$track"
((track++))
done
Extract Cover Art
# Extract cover to file (requires parsing output)
opustags input.opus | grep -A 1000 "METADATA_BLOCK_PICTURE" > cover-encoded.txt
# Note: opustags does not have built-in cover extraction
# Use ffmpeg for this instead (see below)
ffmpeg (MP4/MP3/FLAC)
Set MP4 Metadata
# Set all common tags
ffmpeg -i input.mp4 -c copy \
-metadata title="Both Sides Now" \
-metadata artist="Joni Mitchell" \
-metadata album="Live at Isle of Wight 1970" \
-metadata date="1970" \
-metadata genre="Folk" \
-metadata comment="Restored from VHS" \
output.mp4
Set MP3 Metadata (ID3v2.3)
# Set tags with ID3v2.3 for compatibility
ffmpeg -i input.mp3 -c copy \
-id3v2_version 3 \
-metadata title="Both Sides Now" \
-metadata artist="Joni Mitchell" \
-metadata album="Clouds" \
-metadata date="1969" \
-metadata track="12/14" \
-metadata genre="Folk" \
output.mp3
Set FLAC Metadata (Vorbis Comments)
# FLAC uses Vorbis comments like Opus
ffmpeg -i input.flac -c copy \
-metadata TITLE="Both Sides Now" \
-metadata ARTIST="Joni Mitchell" \
-metadata ALBUM="Clouds" \
-metadata DATE="1969" \
-metadata TRACKNUMBER="12" \
output.flac
Embed Cover Art into MP4
# Add cover as attached picture
ffmpeg -i input.mp4 -i cover.jpg \
-map 0 -map 1 \
-c copy \
-disposition:v:1 attached_pic \
output.mp4
Embed Cover Art into MP3
# Add cover with proper ID3v2.3 tags
ffmpeg -i input.mp3 -i cover.jpg \
-map 0 -map 1 \
-c copy \
-id3v2_version 3 \
-metadata:s:v title="Album cover" \
-metadata:s:v comment="Cover (front)" \
output.mp3
Embed Cover Art into FLAC
# Add cover to FLAC file
ffmpeg -i input.flac -i cover.jpg \
-map 0 -map 1 \
-c copy \
-disposition:v:0 attached_pic \
output.flac
Extract Cover Art from Any File
# Extract first attached picture
ffmpeg -i input.mp3 -an -vcodec copy cover.jpg
# Extract from MP4
ffmpeg -i input.mp4 -map 0:v -map -0:V -c copy cover.jpg
# Extract and convert to PNG
ffmpeg -i input.flac -an -vcodec png cover.png
Read Metadata
Установить metadata-tagging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл metadata-tagging?
opustags and ffmpeg patterns for applying metadata to audio and video files
Как установить скилл metadata-tagging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл metadata-tagging запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic