{"id":29302806,"url":"https://github.com/ewilan-riviere/m4b-extractor","last_synced_at":"2026-06-08T05:31:06.341Z","repository":{"id":303176953,"uuid":"1014641714","full_name":"ewilan-riviere/m4b-extractor","owner":"ewilan-riviere","description":"Rust CLI tool to extract chapters, metadata and cover for M4B Audiobook.","archived":false,"fork":false,"pushed_at":"2025-07-07T05:19:42.000Z","size":7042,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-22T17:52:36.826Z","etag":null,"topics":["audiobook","chapters","cli","extract","m4b","metadata","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/m4b-extractor","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ewilan-riviere.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-06T05:51:08.000Z","updated_at":"2025-07-07T05:19:45.000Z","dependencies_parsed_at":"2025-07-06T06:42:28.111Z","dependency_job_id":null,"html_url":"https://github.com/ewilan-riviere/m4b-extractor","commit_stats":null,"previous_names":["ewilan-riviere/m4b-extractor"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ewilan-riviere/m4b-extractor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilan-riviere%2Fm4b-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilan-riviere%2Fm4b-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilan-riviere%2Fm4b-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilan-riviere%2Fm4b-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ewilan-riviere","download_url":"https://codeload.github.com/ewilan-riviere/m4b-extractor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ewilan-riviere%2Fm4b-extractor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34050225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["audiobook","chapters","cli","extract","m4b","metadata","rust"],"created_at":"2025-07-07T00:13:32.555Z","updated_at":"2026-06-08T05:31:06.329Z","avatar_url":"https://github.com/ewilan-riviere.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# m4b-extractor\n\n[![rust][rust-version-src]][rust-version-href]\n[![tests][tests-src]][tests-href]\n\n[Rust](https://www.rust-lang.org/) CLI tool to extract chapters, metadata and cover for M4B Audiobook. Based on idea of [Hasan Arous](https://unix.stackexchange.com/questions/499179/using-ffmpeg-to-split-an-audible-audio-book-into-chapters).\n\nAvailable on [crates.io](https://crates.io/crates/m4b-extractor).\n\n## Requirements\n\n- [Rust](https://www.rust-lang.org/)\n- [FFmpeg](https://ffmpeg.org/) installed and available in your `PATH`\n\n## Installation\n\nYou can install `m4b-extractor` with [Cargo](https://doc.rust-lang.org/cargo/).\n\n```bash\ncargo install m4b-extractor\n```\n\n## Usage\n\nYou have to pass the path to the `.m4b` file you want to extract chapters from.\n\n```bash\nm4b-extractor /path/to/input.m4b\n```\n\nYou will get a directory named `\u003cinput_file\u003e_chapters` containing:\n\n- Each chapter as a separate `.mp3` file.\n- A `metadata.json` file with the metadata of the book.\n- A `tags.yaml` file with the tags of the book.\n- A `folder.jpg` file with the cover of the book.\n\n```plain\n1_Chapter 01.mp3\n2_Chapter 02.mp3\n3_Chapter 03.mp3\n# ...\nfolder.jpg\nmetadata.json\ntags.yaml\n```\n\n### Options\n\n```bash\nm4b-extractor --help\n```\n\n- `-o`, `--output \u003cOUTPUT\u003e`: Specify the output directory for extracted chapters (default: `\u003cinput_file\u003e_chapters`).\n- `-k`, `--keep`: Keep the original `.m4b` files without converting them to `.mp3`.\n- `-q`, `--quality \u003cQUALITY\u003e`: Specify the conversion quality (1=best, 9=worst) for `.mp3` files (default: `2`).\n- `-s`, `--sanitize`: Sanitize filenames by replacing invalid characters with underscores (default: `false`).\n- `-h`, `--help`: Print help information.\n- `-V`, `--version`: Print the version of the tool.\n\n## Test and publish\n\nBuild and test the package:\n\n```bash\n# debug build\ncargo build\n# release build\ncargo build --release\ncargo test\n```\n\nTest publishing:\n\n```bash\ncargo publish --dry-run\n```\n\nPublish the package to [crates.io](https://crates.io):\n\n```bash\ncargo publish\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n[rust-version-src]: https://img.shields.io/badge/Rust-v1.88.0-000000?colorA=18181B\u0026logo=Rust\u0026logoColor=ffffff\n[rust-version-href]: https://www.rust-lang.org/\n[tests-src]: https://img.shields.io/github/actions/workflow/status/ewilan-riviere/m4b-extractor/run-tests.yml?branch=main\u0026label=tests\u0026style=flat\u0026colorA=18181B\n[tests-href]: https://github.com/ewilan-riviere/m4b-extractor/actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewilan-riviere%2Fm4b-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fewilan-riviere%2Fm4b-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fewilan-riviere%2Fm4b-extractor/lists"}