🎵 Smart Bash utility for renaming audio files using metadata tags.
mp3fixer automatically renames your music files into:
Artist - Title.ext
using metadata extracted via ffprobe.
- 🎵 Metadata-based renaming
- 🔁 Recursive directory scanning
- 🧪 Dry-run preview mode
- 🛡 Collision protection
- 🧼 Safe filename sanitization
- ⚡ Fast and lightweight
- 🐧 Linux/macOS compatible
- 🔧 Powered by ffprobe (ffmpeg)
- mp3
- flac
- m4a
- wav
- aac
- ogg
bash <(curl -fsSL https://raw.githubusercontent.com/WhoisGray/mp3fixer/refs/heads/main/install.sh)or:
curl -fsSL https://raw.githubusercontent.com/WhoisGray/mp3fixer/refs/heads/main/install.sh | bashGitHub raw URLs are commonly used to distribute install scripts directly from repositories. ([codegenes][1])
sudo apt install ffmpegbrew install ffmpegmp3fixer song.mp3mp3fixer ~/MusicPreview changes without renaming files:
mp3fixer -n ~/MusicSkip confirmation prompts:
mp3fixer -y ~/Musicmp3fixer -v ~/Music| Option | Description |
|---|---|
-y |
Auto confirm all renames |
-n |
Dry run mode |
-v |
Verbose output |
-h |
Show help |
01_track.mp3
music_final_v2.mp3
unknown.mp3
Daft Punk - Harder Better Faster Stronger.mp3
Hans Zimmer - Time.mp3
Unknown Artist - Unknown Title.mp3
Invalid filename characters are automatically replaced:
/:*?"<>|
mp3fixer/
├── install.sh
├── mp3fixer.sh
└── README.md
- Bug with Directory : /
Yashar Razban
Made with Bash + ffprobe