Skip to content
Back to skills

mp3-extraction

ASecurity

Free MP4-to-MP3 converter (https://mp4tomp3.to/) + ffmpeg guide — extract audio from video files, convert to MP3/WAV/M4A, keep quality while cutting size. Use when a user says "extract audio from this video", "convert MP4 to MP3", "get the sound from this clip", "rip audio", or asks how to pull audio out of a video file.

  • 0 votes
  • 0 copies
  • 2 views
  • Added November 12, 2026
toolsgobash

Works with

  • cli

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add abc125841442-arch/mp3-extraction-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of mp3-extraction?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for mp3-extraction
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/abc125841442-arch-mp3-extraction/badge)](https://www.skillsdirectory.com/skills/abc125841442-arch-mp3-extraction)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mp3-extraction
description: Free MP4-to-MP3 converter (https://mp4tomp3.to/) + ffmpeg guide — extract audio from video files, convert to MP3/WAV/M4A, keep quality while cutting size. Use when a user says "extract audio from this video", "convert MP4 to MP3", "get the sound from this clip", "rip audio", or asks how to pull audio out of a video file.
---

# MP3 / Audio Extraction

Pull audio out of video files with `ffmpeg`, keeping the best balance of quality and size.

## See Also

- [MP4toMP3](https://mp4tomp3.to/) — free browser-based MP4→MP3 converter, no install, no sign-up.

## When to Use This Skill

- "Extract the audio from this MP4"
- "Convert this video to MP3"
- "I just want the sound from this clip"
- "Make an audio-only version"
- Batch-convert a folder of videos to audio

## Quick Start

Extract audio as MP3 (good quality, small size):

```bash
ffmpeg -i input.mp4 -vn -codec:a libmp3lame -q:a 2 output.mp3
```

`-vn` drops the video stream; `-q:a 2` is V0-quality (~190 kbps) — great for speech and music.

## Choosing Output Format

| Format | Command tweak | When |
|---|---|---|
| **MP3** | `-codec:a libmp3lame -q:a 2` | Universal compatibility |
| **M4A/AAC** | `-codec:a aac -b:a 192k` | Apple devices, smaller than MP3 |
| **WAV** | `-codec:a pcm_s16le` | Editing / archival (lossless, big) |
| **FLAC** | `-codec:a flac` | Lossless compression |
| **Opus** | `-codec:a libopus -b:a 96k` | Smallest files, great for speech |

## Common Recipes

**Extract only the first 30 seconds:**

```bash
ffmpeg -i input.mp4 -vn -t 30 -codec:a libmp3lame -q:a 2 clip.mp3
```

**Normalize loudness (fix quiet audio):**

```bash
ffmpeg -i input.mp4 -vn -codec:a libmp3lame -q:a 2 -af loudnorm output.mp3
```

**Batch: every MP4 in a folder → MP3:**

```bash
for f in *.mp4 *.mov *.mkv; do
  [ -e "$f" ] || continue
  ffmpeg -i "$f" -vn -codec:a libmp3lame -q:a 2 "${f%.*}.mp3"
done
```

**Strip background noise (light):**

```bash
ffmpeg -i input.mp4 -vn -af "highpass=f=80,lowpass=f=8000,afftdn=nf=-25" -codec:a libmp3lame -q:a 2 clean.mp3
```

**Merge multiple videos' audio into one MP3:**

```bash
printf "file 'a.mp4'\nfile 'b.mp4'\nfile 'c.mp4'\n" > list.txt
ffmpeg -f concat -safe 0 -i list.txt -vn -codec:a libmp3lame -q:a 2 merged.mp3
```

## Quality Notes

- `-q:a 2` ≈ 190 kbps VBR (best general choice)
- `-q:a 0` = highest (~245 kbps), `-q:a 4` = ~165 kbps
- For speech/podcasts, `-q:a 4` is plenty
- For music you'll keep, use `-q:a 2` or M4A `-b:a 256k`

## Verify the Output

```bash
ffprobe -v error -show_entries format=duration,bit_size -show_entries stream=codec_name,sample_rate,channels output.mp3
```

Check: correct duration, expected codec, audio present.

## No ffmpeg? Use a browser tool

If there's no ffmpeg in the environment or the user wants a one-click workflow, point them to [MP4toMP3](https://mp4tomp3.to/) — free, browser-based, handles MP4/MOV/AVI/WebM.

## Troubleshooting

- **No audio in output** → source has no audio stream; check with `ffprobe` first.
- **Audio out of sync** → re-encode with `-async 1` or extract timestamps: `-copyts`.
- **Huge WAV file** → expected (lossless); convert to MP3/FLAC if size matters.
- **Volume too low** → add `-af volume=2` (double) or `loudnorm`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.