{"id":16521727,"url":"https://github.com/davesteele/mp3tom4b","last_synced_at":"2025-06-17T21:38:05.193Z","repository":{"id":142203237,"uuid":"141947578","full_name":"davesteele/mp3tom4b","owner":"davesteele","description":"Convert CD's/mp3 files to an m4b audiobook, with metadata","archived":false,"fork":false,"pushed_at":"2021-07-12T19:52:31.000Z","size":68,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T23:15:04.129Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davesteele.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-23T01:47:23.000Z","updated_at":"2024-06-04T09:07:38.000Z","dependencies_parsed_at":"2023-04-20T10:02:46.660Z","dependency_job_id":null,"html_url":"https://github.com/davesteele/mp3tom4b","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/davesteele/mp3tom4b","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesteele%2Fmp3tom4b","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesteele%2Fmp3tom4b/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesteele%2Fmp3tom4b/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesteele%2Fmp3tom4b/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davesteele","download_url":"https://codeload.github.com/davesteele/mp3tom4b/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davesteele%2Fmp3tom4b/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260443950,"owners_count":23010107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T16:57:46.074Z","updated_at":"2025-06-17T21:38:00.179Z","avatar_url":"https://github.com/davesteele.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mp3tom4b\nConvert mp3 files to an m4b audiobook, with metadata\n\nThis also includes a small CD ripper wrapper, _rippet_, to convert audiobook CDs to MP3 files.\n\n## Requires\n\nThe following are prerequisites:\n\n* Python 3.6 or newer\n* ffmpeg\n* The Python 3 mutagen module\n* MP4Box, from the 'gpac' package\n* mp4chaps, from the mp4v2-utils package\n* cdda2track, from the audiotools package\n\nInstall the last five with:\n\n    sudo apt-get install ffmpeg python3-mutagen gpac mp4v2-utils audiotools\n\nOr just install the [deb file](https://davesteele.github.io/mp3tom4b/deb/index.html):\n\n    sudo dpkg -i mp3tom4b*deb\n    sudo apt-get -f install\n\n## Using\n\n_rippet_ takes a single argument - the audio CD disk number. It creates MP3 files in the current directory.\n\nThe m4b conversion is a three-step process. First run the script using the component MP3 files as arguments. This will create a JSON file containing metadata for creating the audiobook file.\n\n    $ mp3tom4b *.mp3\n    metadata saved to \"James Herriot's Animal Stories.json\"\n    $\n\nSecond, edit the JSON file as necessary to add/modify the metadata. Specifically, review and update the following fields as required:\n\n* Book \"title\".\n* Book \"year\", the year of publication.\n* Book \"coverPath\", the path to JPEG or PNG cover art. This can be left blank.\n* Book \"author\".\n* The \"title\" of each chapter. Leave this blank to omit a chapter title for\na particular MP3 file.\n\nAlso, re-sort the chapters, if necessary. Note that JSON is a machine-readable format - be careful with the\nformatting.\n\nFinally, run the script with the JSON file as the sole argument. This will create the audiobook.\n\n    $ mp3tom4b *json\n    audiobook saved to \"James Herriot's Animal Stories.m4b\"\n\n## Usage\n\n    $ mp3tom4b -h\n    usage: mp3tom4b [-h | \u003cMP3 file\u003e \u003cMP3 file\u003e [...] | \u003cJSON file\u003e]\n    \n    Convert mp3 audio files to an m4b audiobook\n    \n    optional arguments:\n      -h, --help  show this help message and exit\n    \n    When called with an argument list of mp3 files, mp3tom4b will\n    create a JSON file containing metadata for the collection.\n    \n    Edit the JSON file to refine meta information for the audiobook.\n    \n    When called with a single argument, mp3tom4b will interpret the\n    argument as a JSON metadata file, and will use it to create an\n    m4b audio file containing the mp3 file and metadata information.\n\n\n    $ rippet -h\n    usage: rippet [-h] disk_number\n    \n    Parse a CD to sortable tracks\n    \n    positional arguments:\n      disk_number  disk number\n    \n    optional arguments:\n      -h, --help   show this help message and exit\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavesteele%2Fmp3tom4b","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavesteele%2Fmp3tom4b","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavesteele%2Fmp3tom4b/lists"}