Home
cd ../playbooks
ProductivityBeginner

Audio Format Converter

Convert audio formats, adjust sample rates, normalize levels, and process batch audio files with ffmpeg commands.

5 minutes
By communitySource
#audio#conversion#ffmpeg#podcasts#music#batch-processing

You need to convert 50 audio files from WAV to MP3 but ffmpeg's command-line flags are a foreign language. Every Stack Overflow answer uses different options and you're not sure which one won't destroy your audio quality.

Who it's for: podcasters processing episode files, musicians converting between formats, video editors handling audio tracks, audiobook producers, content creators repurposing audio for different platforms

Example

"Convert all WAV files in this folder to 192kbps MP3 and normalize the volume" → Correct ffmpeg commands generated and executed for all 50 files with consistent sample rates, normalized levels, and preserved metadata

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add audio-format-converter
# Audio Format Converter

## Your Role
You help convert audio formats, adjust sample rates, normalize volume levels, and batch process audio files. You generate appropriate ffmpeg commands and explain audio concepts in accessible terms.

## Core Capabilities

### Format Conversions
- MP3, WAV, FLAC, M4A, AAC, OGG, WMA
- Lossy to lossless and vice versa
- Container format changes

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Convert audio between formats, adjust sample rates, normalize volume levels, and batch process multiple files. Claude generates the right ffmpeg commands for your needs.


Quick Start

Step 1: Ensure ffmpeg is Installed

# macOS
brew install ffmpeg

# Ubuntu/Debian
sudo apt install ffmpeg

# Windows (with Chocolatey)
choco install ffmpeg

Step 2: Create an Audio Folder

mkdir -p ~/Documents/Audio-Processing

Step 3: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ~/Documents/Audio-Processing/

Step 4: Run Claude Code

cd ~/Documents/Audio-Processing
claude

Say: "Convert my audio files to [format]"


Common Tasks

Format Conversion

From To Use Case
WAV MP3 Reduce file size
MP3 WAV Lossless editing
M4A MP3 Compatibility
FLAC MP3 Streaming
OGG MP3 Universal playback

Quality Settings

Quality MP3 Bitrate File Size Best For
Low 128 kbps Small Voice/podcasts
Medium 192 kbps Medium General music
High 320 kbps Large Quality music
Lossless N/A Very large Archival

Example Commands

Single File Conversion

# WAV to MP3 (high quality)
ffmpeg -i input.wav -b:a 320k output.mp3

# MP3 to WAV
ffmpeg -i input.mp3 output.wav

# M4A to MP3
ffmpeg -i input.m4a -c:a libmp3lame -b:a 256k output.mp3

Batch Conversion

# All WAV files to MP3
for f in *.wav; do ffmpeg -i "$f" -b:a 320k "${f%.wav}.mp3"; done

# All files in folder
find . -name "*.flac" -exec ffmpeg -i {} -b:a 320k {}.mp3 \;

Audio Adjustments

# Change sample rate to 44.1kHz
ffmpeg -i input.wav -ar 44100 output.wav

# Normalize volume
ffmpeg -i input.mp3 -filter:a loudnorm output.mp3

# Trim audio (start at 10s, duration 30s)
ffmpeg -i input.mp3 -ss 10 -t 30 output.mp3

Sample Rate Guide

Sample Rate Use Case
8000 Hz Telephone quality
22050 Hz AM radio quality
44100 Hz CD quality (standard)
48000 Hz DVD/video standard
96000 Hz High-resolution audio

Output Organization

Audio-Processing/
├── originals/          # Source files (untouched)
├── converted/          # Processed files
├── normalized/         # Volume-adjusted
└── _log.txt           # Processing log

Tips

  • Keep originals: Always preserve source files
  • Match sample rates: Use 44.1kHz for music, 48kHz for video
  • Normalize carefully: Loudness normalization preserves dynamics
  • Check before batch: Test on one file first
  • Name systematically: Include format in filename

Commands

"Convert [file] to MP3"
"Batch convert all WAV files to MP3 at 320kbps"
"Change sample rate to 44.1kHz"
"Normalize the volume of these files"
"Extract audio from video"
"Trim this audio from [start] to [end]"
"Compress this podcast for smaller file size"

Troubleshooting

ffmpeg not found Install it first (see Quick Start)

Quality sounds bad Increase bitrate: "Use 320kbps instead"

Files too large Ask: "Compress while maintaining decent quality"

Batch command fails Check for spaces in filenames, use quotes

$Related Playbooks

Productivity

Calendar & Scheduling Automation

Google Calendar and Outlook automation - scheduling optimization, meeting workflows, time blocking, and Slack/Sheets integration

10 minutes
Intermediate
Productivity

Calendar Availability Checker

Check Google Calendar availability across all calendars and draft professional scheduling replies with optimal time slot proposals.

10 minutes
Intermediate
Productivity

Claude Export Fixer

Fix broken line-wrapping in Claude Code exported conversation files — reconstruct tables, paragraphs, paths, and tool calls that were hard-wrapped at fixed column widths, with an automated validation suite.

5 minutes
Beginner
Productivity

Chief of Staff Check-In

Run a structured 10-15 minute interactive session combining inbox triage, reminder management, meeting prep, email drafting, and priority alignment.

20 minutes
Advanced
Productivity

Claude Code Custom Personalities for Non-Coding Tasks

Use Claude Code for non-coding tasks by creating custom personalities. Turn each project folder into a different assistant — writing editor, media manager, notes organizer, and more.

10 minutes
Intermediate
Productivity

Decision Matrix

Stop going in circles — define criteria, weight importance, score options, and let the math reveal what your gut already knows.

5 minutes
Beginner
Productivity

Credential Switch

Switch brand credentials.

15 minutes
Intermediate
Productivity

Data Export

Export marketing data.

15 minutes
Intermediate
Productivity

Data Import

Import data from external sources.

15 minutes
Intermediate
Productivity

Enterprise Search Aggregator

Search across all connected sources with a single unified query

10 minutes
Intermediate
Productivity

Daily Morning Briefing

Generate a comprehensive daily briefing consolidating your calendar, email inbox, tasks, weather, and meeting context into one unified view.

15 minutes
Intermediate
Productivity

DIY Project Planner — Materials Lists, Costs & Build Instructions

Plan any home improvement project with AI-generated materials lists, itemized cost estimates, tool checklists, and step-by-step build instructions. From shelves to decks to full renovations.

10 minutes
Intermediate

Browse all Productivity playbooks →