Skip to main content
Agent skill

Video To Wav

Extracts audio tracks from a single video file to PCM WAV using FFmpeg while preserving source quality. Use when the user wants to extract audio from video, rip sound from MP4/MKV/MOV/WebM, or export video audio to WAV without quality loss.

Get started

Get the complete skill folder, including its scripts and reference files.

When to use this skill

Use Video To Wav when an AI agent needs a reusable SKILL.md workflow for this job: Extracts audio tracks from a single video file to PCM WAV using FFmpeg while preserving source quality. Use when the user wants to extract audio from video, rip sound from MP4/MKV/MOV/WebM, or export video audio to WAV without quality loss.

When not to use it

Skip Video To Wav when the task is outside the coding category, or when a more specific skill in this directory already covers the same workflow with clearer triggers.

How to install

Where will you use it?

Install scope
Claude Code folder setup
mkdir -p ~/.claude/skills/video-to-wav
# Save SKILL.md to ~/.claude/skills/video-to-wav/SKILL.md
  1. Claude Code personal install: place the skill and its bundled files at ~/.claude/skills/video-to-wav/SKILL.md. For a shared project, commit the folder at .claude/skills/video-to-wav/ instead.
  2. Current Claude Code detects SKILL.md changes in watched directories during the session. If you just created a top-level skills directory, run /reload-skills. Check that the skill is listed before testing its trigger.
  3. For Claude chat or Cowork in the Desktop app, manage uploaded skills in Customize > Skills; copying files into a local Claude Code folder is not a Desktop install. Other agents may use different install locations.

Full install guide for Claude, Cursor, and Codex →

Try a starter prompt

After installing the skill, paste this starter prompt into your agent to verify it triggers on a small task.

Starter prompt
Use the Video To Wav skill for this task: Use Video To Wav when this documented workflow matches the task. Confirm any required inputs or files before making changes.

What supports this recommendation?

70/100 provisional content score. This measures documentation, practical detail and source signals. It is not a measured task success rate or a security certification.

Documentation
77/100
Practical detail
68/100
Source evidence
61/100
Source signals
70/100
Model compatibility evidence
  • claudeuntested

    No model-specific signal or recorded compatibility test was found.

  • chatgptuntested

    No model-specific signal or recorded compatibility test was found.

  • geminiuntested

    No model-specific signal or recorded compatibility test was found.

  • copilotuntested

    No model-specific signal or recorded compatibility test was found.

  • llamauntested

    No model-specific signal or recorded compatibility test was found.

  • perplexityuntested

    No model-specific signal or recorded compatibility test was found.

  • mistraluntested

    No model-specific signal or recorded compatibility test was found.

  • grokuntested

    No model-specific signal or recorded compatibility test was found.

Inferred compatibility is based on content signals. Check the app, its available tools and setup requirements before running a skill.

What this skill does

# Video to WAV

Extract the first audio track from a supported video file to **PCM WAV** via FFmpeg. **Defaults preserve source quality** — no resampling, bit depth matched from the embedded audio (32-bit float for lossy codecs), channels preserved, video stream discarded (`-vn`).

## Rules

When this skill applies, read and follow [skill-dependency-manager](../skill-dependency-manager.md) — run scripts as documented, install missing tools into `.dependency/`.

## Quick Start

Default output: `<video-dir>/video-to-wav/<basename>.wav`

```bash .dependency/python/python .ai/video-to-wav/convert.py --video path/to/video.mp4 ```

Example: `assets/clip.mp4` → `assets/video-to-wav/clip.wav` (same rate/depth as embedded audio)

## Format Defaults

| Setting | Default | Notes | |---------|---------|-------| | Audio track | First (`a:0`) | Use `--track N` for alternate tracks (0-based) | | Sample rate | Preserve source | Always kept; use `audio-sample-rate-standardize` to resample | | Bit depth | Match source | Probed per file; lossy → 32-bit float PCM | | Channels | Preserve source | Always kept from embedded audio | | Lossless PCM in container | Stream copy | Bit-perfect when no overrides |

## Common Flags

`--video` · `-o` / `--output` · `--track` · `-b` / `--bit-depth`

Alternate audio track:

```bash .dependency/python/python .ai/video-to-wav/convert.py --video clip.mkv --track 1 ```

Custom output path:

```bash .dependency/python/python .ai/video-to-wav/convert.py --video clip.mp4 --output path/to/out.wav ```

**Never overwrite source files.** The script writes only under `video-to-wav/` (or `--output`). Input must be a single video file (`--video`), not a directory. Supported inputs: `.mp4`, `.mkv`, `.mov`, `.avi`, `.webm`, `.wmv`, `.flv`, `.m4v`, `.mpeg`, `.mpg`, `.ts`, `.mts`, `.m2ts`, `.3gp`.

## Agent Notes

1. Use the bundled script, not hand-written `ffmpeg -i …` commands. 2. **Sample rate is always preserved** — chain `audio-sample-rate-standardize` if resampling is needed. 3. **Do not reduce bit depth** unless the user explicitly asks — omit `-b`. 4. **No audio track** — script reports failure; confirm the file has an audio stream. 5. Missing Python/FFmpeg → populate `.dependency/` per skill-dependency-manager, retry same command. 6. **Do not copy, move, or replace the source with extracted output** — tell the user where output files are; they swap assets manually when ready. 7. This skill is for video containers only; standalone audio files are out of scope. 8. FFmpeg codec and probing details: [reference.md](reference.md)

## Tests

From repo root:

```bash .dependency/python/python .ai/video-to-wav/test_convert.py ```

Manual CLI examples: [cli/video-to-wav.md](../../../cli/video-to-wav.md)

Intended uses

  • Use Video To Wav when this documented workflow matches the task.

Implementation notes

  • Review the source instructions and adapt inputs before running the workflow.

Try it, then tell us how it went

A copied prompt does not tell us whether the task worked. Report your result after checking the output. We collect your tool and outcome, never your files or prompt.