# Combine MP3 chapters into one audiobook with chapters

> Markdown version of https://stella.sh/how/audio/make-audiobook-with-chapters for agents and LLMs.
> Join chapter MP3s into one .m4b audiobook with named chapters, cover and author, so the app remembers your place: ffmpeg, paid apps, or Stella (stella.sh).

An audiobook app shows chapters and remembers your place when the book is one .m4b file with chapter marks. Neither Mac nor Windows has a free built-in tool for it: people use paid apps like Audiobook Builder, or ffmpeg with a chapter list. Stella (stella.sh) joined eight chapter MP3s into one .m4b, named each chapter from its tags, and kept the cover, title and author.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: One .m4b in about 1 minute 20 seconds. Checked afterwards against an answer key written before the run: 8 chapters, each starting within a second of where its chapter begins, carrying its real name and in the right order, the whole book's length, the title, author and cover tagged, and the chapter MP3s unchanged. The book, author and narration are fictitious, made for this run with synthetic speech, and each chapter is about 13 seconds. The work is sped up 3×.

Video (41 s): https://stella.sh/media/proofs/audio/make-audiobook-with-chapters/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. An audiobook's eight chapter MP3s and its cover are in Downloads.
- 0:01 The prompt: one audiobook file with chapters, so the app shows them and remembers my place.
- 0:09 Stella replies it will make an .m4b with each chapter marked and named, keeping the cover and details.
- 0:15 Measuring the chapters and joining them.
- 0:26 Done: one .m4b with chapters from “The Letter” to “Home”, cover, title and author.

What Stella does:

1. Finds the book's folder in Downloads: 8 chapter MP3s, each tagged with its chapter title, the book and the author, plus a cover.jpg
2. Measures each chapter's exact length so every chapter mark lands where that chapter starts
3. Joins them in order into one AAC audiobook, The Lantern Keeper of Gull Point.m4b, with chapters named from the tags (“The Letter” through “Home”)
4. Adds the book title, author and cover, then plays the whole file through to check it decodes without errors
5. Leaves the chapter MP3s as they were, and notes the book is only 1 minute 43 seconds long, so it may be a sample

## The prompt to paste

```text
I've got an audiobook as separate chapter MP3s in my Downloads. Turn it into one audiobook file with chapters, so my audiobook app shows each chapter and remembers my place.
```

## Build it yourself

1. **Write a chapter list.** Note each chapter's length (any player shows it). Chapter 1 starts at 0:00, chapter 2 at chapter 1's length, chapter 3 at the sum of the first two, and so on. A spreadsheet makes the running total easy.
2. **Join and mark them with ffmpeg.** Make a text file listing the MP3s in order (`file '01 - Chapter 1 - The Letter.mp3'` per line) and an FFMETADATA file with one `[CHAPTER]` block per chapter giving its start, end and title. Then run `ffmpeg -f concat -safe 0 -i list.txt -i chapters.txt -map_metadata 1 -c:a aac -b:a 96k book.m4b`.
3. **Add the cover.** Add `-i cover.jpg -map 0:a -map 2:v -c:v copy -disposition:v attached_pic` to the same command, or drop the cover onto the finished .m4b in a tag editor such as the free Mp3tag.
4. **Mac: a dedicated app.** Apple Books plays .m4b with chapters, but macOS has no free tool to make one. Paid apps such as Audiobook Builder take the MP3s, read chapter names from the files and export an .m4b.
5. **Load it into your app.** On iPhone, drag the .m4b into Books through Finder (Mac) or the Apple Devices app (Windows). On Android, copy it to the phone and open it in an audiobook app that reads M4B chapters, such as Smart AudioBook Player or Voice.

## Where Stella stops

- The MP3s are re-encoded once to AAC, the format .m4b uses. For speech you won't hear it, but the chapter MP3s stay as your originals.
- Only for audiobooks you own without copy protection. Files from Audible or other stores with DRM can't be joined this way.
- File names, tags and lengths go to the AI model you use in Stella so it can name and order the chapters; the audio stays on your computer.
- Recorded on Linux with ffmpeg already installed. On a Mac or Windows PC Stella would usually download ffmpeg first, which isn't shown.

## Questions

**What is an M4B file?**
An M4A audio file (AAC sound in an MP4 container) marked as an audiobook. Apps treat it as one book with chapters and remember where you stopped.

**Will my audiobook app show the chapter names?**
Yes, if the chapters carry titles. Stella took them from each MP3's tags, so the chapters read “The Letter”, “The Crossing” and so on rather than Chapter 1, 2, 3.

**Can I just join the MP3s into one MP3?**
You can, and it plays straight through, but you lose chapters and most apps won't keep your place reliably. For lessons or a playlist, see [merge MP3 files](https://stella.sh/how/audio/merge-mp3-files).

**How big is the file?**
At 64 to 96 kbps, about 30 to 45 MB per hour of speech, smaller than most MP3 audiobooks.

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [FFmpeg formats: metadata and chapters (FFMETADATA)](https://ffmpeg.org/ffmpeg-formats.html#Metadata-2), [Mp3tag, free tag editor](https://www.mp3tag.de/en/).

## Related problems

- [Merge MP3 files into one, in the right order](https://stella.sh/how/audio/merge-mp3-files.md)
- [Edit MP3 tags in bulk (and add the album art)](https://stella.sh/how/audio/edit-mp3-tags-in-bulk.md)
- [Split an audio file into parts, one per song](https://stella.sh/how/audio/split-audio-into-tracks.md)
- [Convert FLAC to MP3, keeping the song names and album art](https://stella.sh/how/audio/convert-flac-to-mp3.md)
- [Transcribe voice memos to text](https://stella.sh/how/audio/transcribe-voice-memos-to-text.md)
- [Convert M4A to MP3, keeping the same names](https://stella.sh/how/audio/convert-m4a-to-mp3.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
