/claude-content:extract-audiofrom claude-content
Extracts audio from video files using ffmpeg with format-specific quality presets (FLAC, MP3, AAC, WAV). Handles multi-stream selection and lossy-to-lossy warnings.
Ships in claude-content. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| User wants | Format | Flags | Why |
|---|---|---|---|
| Music, archive quality | FLAC | -c:a flac | Lossless, no quality loss |
| Music, small + transparent | MP3 VBR | -c:a libmp3lame -q:a 0 | ~200kbps avg, perceptually lossless |
| Podcast / voice | MP3 128k CBR | -c:a libmp3lame -b:a 128k | Sufficient for speech, universally compatible |
| Mobile / streaming | AAC 192k | -c:a aac -b:a 192k | Better than MP3 at equivalent bitrate |
| DAW / editing | WAV | -c:a pcm_s16le -ar 44100 | No encoding loss, widest DAW support |
| Source already target format | Copy | -c:a copy | No re-encode, instant, lossless |
ffprobe -v quiet -print_format json -show_streams "$INPUT" | \
python3 -c "
import json, sys
streams = [s for s in json.load(sys.stdin)['streams'] if s['codec_type']=='audio']
for i, s in enumerate(streams):
print(f'Stream {i}: {s[\"codec_name\"]} {s.get(\"bit_rate\",\"?\")} bps {s.get(\"channel_layout\",\"?\")}')
"
Apply the decision tree above if the user didn't specify. If the source audio codec already matches the target, use -c:a copy to avoid transcoding.
If multiple audio streams exist, ask the user which to extract — or use -map 0:a to extract all. Once the user responds, apply -map 0:a:N (where N is the zero-based stream index they chose) or -map 0:a for all streams in the Phase 3 command.
# General pattern (-vn drops the video stream entirely):
ffmpeg -i "$INPUT" -vn [FORMAT_FLAGS] "$OUTPUT"
# Examples:
ffmpeg -i video.mp4 -vn -c:a libmp3lame -q:a 0 audio.mp3 # MP3 VBR best quality
ffmpeg -i video.mp4 -vn -c:a libmp3lame -b:a 128k podcast.mp3 # MP3 128k CBR
ffmpeg -i video.mp4 -vn -c:a flac archive.flac # FLAC lossless
ffmpeg -i video.mp4 -vn -c:a aac -b:a 192k mobile.aac # AAC
ffmpeg -i video.mp4 -vn -c:a pcm_s16le -ar 44100 edit.wav # WAV for DAW
ffmpeg -i video.mp4 -vn -c:a copy original.m4a # Copy audio stream
Show: detected source codec and bitrate, chosen output format, output path. Wait for approval, then run.
Report output file size and duration: ffprobe -v quiet -show_format "$OUTPUT" | grep -E "duration|size"
Preserve generation quality: avoid transcoding chains that degrade source fidelity. Each decision below is an application of this principle.
-c:a copy where container compatibility allows.-ss and -to before -vn..m4a extension for Apple device compatibility; use .aac for a raw stream.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gupsammy/claudest --plugin claude-content7 skills in this plugin
/compress-videoThis skill should be used when the user asks to "compress this video", "reduce file size", "make this video smaller", "optimize for web", "shrink this video", "compress to under X MB", "reduce bitrate", "make it smaller without losing quality", "encode with H.265", or "re-encode this video".
/convert-videoThis skill should be used when the user asks to "convert this video", "change format to mp4", "trim from X to Y", "cut the first X seconds", "speed up this video", "slow motion", "timelapse", "resize video", "scale down", "rotate video", "flip video", "remux", or any general FFmpeg video manipulation not covered by compress-video, make-gif, share-social, extract-audio, or extract-frames.
/extract-framesExtracts first and/or last frames of every shot from a video using adaptive scene detection. Use this skill when the user says "extract frames", "get shot frames", "pull frames", "shot breakdown", "scene detect", "first frame of each shot", "last frame of each shot", "extract shots from video", or wants to extract key frames at shot cut points from a video file.
/generate-imageUse for any image creation or editing request — logo, sticker, product mockup, nano banana, t2i, i2i, multi-reference compositing via generate.py. Not for HTML/CSS mockups, diagrams, or coded UI.
/make-gifThis skill should be used when the user asks to "make a GIF", "convert to GIF", "create a GIF from this video", "export as GIF", "turn this clip into a GIF", "make an animated GIF", or "gif this".
/share-socialThis skill should be used when the user asks to "optimize for Instagram", "YouTube Shorts format", "make it 9:16", "square video", "TikTok format", "Reels format", "prepare for social media", "encode for Twitter", "optimize for Facebook", "LinkedIn video", "crop for portrait", or mentions any platform-specific video format or upload requirements.
Other plugins' skills for the same job