MP3 to M4B
БесплатноЗапускает вложенные скриптыНе проверенJoins a folder of audio files, such as the mp3 parts of an audiobook, into one .m4b with chapters, cover and book tags that Apple Books, BookPlayer and other…
от geragarazagh212 установок в других каталогахОб этом скилле
MP3 to M4B
Turns a folder of audio files (mp3 parts of an audiobook, or m4a, ogg, flac,
wav) into one .m4b file: the parts joined in the right order, one chapter
per part with real chapter names, the cover, title, author and narrator.
Apple Books, BookPlayer, Smart AudioBook Player, VLC and most players read it.
Answer in the language of the person's message, briefly. When the message names the folder (or the files are attached), start at once and ask nothing. Ask only when it is unclear which files make the book.
The job is done only by running ffmpeg on the files. If you cannot run
commands here, say so in one sentence and stop. Never read the book aloud
with a voice, generate audio, or retell it instead. Never change, rename or
delete the person's files; write only the new .m4b. Never say the book is
ready unless the check in step 5 passed.
Every book
The helper script scripts/m4b.py lives in this skill's folder, not in the
person's folder: call it by its full path. It needs only Python 3 and
ffmpeg. Without Python, use «Without the script» below.
Check the tools once per conversation:
ffmpeg -versionandpython3 --version(on Windowspython --version). If one is missing, see «Install» and wait for a yes.Look at the plan:
python3 /full/path/to/skills/mp3-to-m4b/scripts/m4b.py plan "FOLDER"It prints the parts in the order they will be joined, the length of each, the chapter name each part gets, the book title and author from the files' tags, the cover it found and the sound settings. It changes nothing and takes no options except
--order tags; titles, cover and chapters are given tobuild.Read the plan as an editor and fix what is wrong before building:
- Order. Parts must follow the book: 1, 2, … 9, 10, not 1, 10, 2 (the
script sorts numbers in names as numbers). If the file names and the
track numbers disagree, the plan warns: run plan again with
--order tags, and use the order whose chapter names follow the book. - Chapter names. Good: «The Happy Prince», «Chapter 3», «Part Two,
Chapter 1». Bad: file-name leftovers such as «hp 01 wilde 64kb», or
the same name on every part. When they are bad, write a text file with
one chapter name per line, one line per part, in order, and pass it as
--chapters FILE. Take names from the file names, the tags or the book's table of contents; do not invent titles. If you do not know them, use «Chapter 1», «Chapter 2», …. Write the chapters file in a temporary folder (not among the person's files) and delete it at the end. - Several parts make one chapter, or one long file holds several
chapters: write the chapters file as lines
PART Title(the chapter starts at that part, counted from 1; parts without a line continue the chapter before) orPART+SECONDS Title(it starts that many seconds into the part). Use exact times only when the person gave them or the file names them. - Title and author: taken from the tags (album, artist). If they are
missing or wrong, pass
--title "…"and--author "…". Add--narrator "…"and--yearwhen known. - Cover: an image named cover, folder or front in the folder, else the
only or largest image there, else the art inside the files. Another
image:
--cover FILE. None: the book is made without a cover; say so.
- Order. Parts must follow the book: 1, 2, … 9, 10, not 1, 10, 2 (the
script sorts numbers in names as numbers). If the file names and the
track numbers disagree, the plan warns: run plan again with
Build:
python3 /full/path/to/skills/mp3-to-m4b/scripts/m4b.py build "FOLDER" -o "OUT.m4b" --title "…" --author "…"Put the
.m4bnext to the folder (in the folder that contains it), named after the book:The Happy Prince and Other Tales.m4b. Use another place when the person named one. If the name is taken, add « (2)». A ten-hour book takes a few minutes; wait for it.Check:
python3 /full/path/to/skills/mp3-to-m4b/scripts/m4b.py check "OUT.m4b" --parts NUMBER_OF_CHAPTERSIt must end with
ok. Read every «warning» and «problem» line. A warning that a part «plays» shorter than its header says means a file is cut off (often an unfinished download): tell the person which one.Report in three or four lines: the file and its folder, length, size, number of chapters, cover yes or no, and what you decided or guessed (order, names, title).
Sound settings
The script chooses these; set them yourself only on request or without the script.
- AAC in an
.m4b, the same sample rate as the parts. Mono when the parts are mono or their two channels carry the same sound (common in audiobooks; half the size). 64 kbps per channel at most and never above the source: re-encoding cannot add quality, and 64 kbps mono is plenty for a voice.--bitrateand--channelsoverride. - Encoder:
aac_at(Apple's, on macOS) when ffmpeg lists it, elselibfdk_aac, else ffmpeg's ownaac. - One encode of the whole book from the decoded parts, so the chapter marks fall on t
Установить MP3 to M4B в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл MP3 to M4B?
Joins a folder of audio files, such as the mp3 parts of an audiobook, into one .m4b with chapters, cover and book tags that Apple Books, BookPlayer and other players read. Use when someone wants to make an audiobook or m4b from mp3 files, merge audiobook parts, or add chapters and a cover.
Как установить скилл MP3 to M4B?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл MP3 to M4B запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic