GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - clFaster/LibreToM4b: A CLI tool to convert LibreGrab audiobooks to M4B files.

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
LibreToM4b.Core
LibreToM4b.Core
 
 
LibreToM4b
LibreToM4b
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
LibreToM4b.slnx
LibreToM4b.slnx
 
 
README.md
README.md
 
 
dotnet-tools.json
dotnet-tools.json
 
 

Repository files navigation

LibreToM4b

A command-line tool to convert audiobooks downloaded with LibreGrab into M4B audiobook format.

Features

  • Multi-Format to M4B Conversion: Concatenates supported audio files (.mp3, .m4a, .aac, .flac, .wav, .ogg, .opus, .wma, .ts) into a single M4B audiobook file
  • Automatic Chapter Detection: Parses LibreGrab metadata to preserve chapter markers
  • Metadata Preservation: Extracts and embeds title, author, narrator, and description
  • Fallback Metadata: Generates metadata from ID3 tags when LibreGrab metadata is unavailable
  • Progress Reporting: Visual progress bar during conversion
  • Configurable Output: Custom output directory support

Prerequisites

  • .NET 10.0 SDK or later
  • FFmpeg installed and available in PATH

Installation

# Clone the repository
git clone https://github.com/clFaster/LibreToM4b.git
cd LibreToM4b

# Build the project
dotnet build

# Run the tool
dotnet run --project LibreToM4b -- convert <input-folder>

Usage

# Basic usage - converts audiobook to default output folder (Music/LibreToM4b)
LibreToM4b convert <input-folder>

# With custom output folder
LibreToM4b convert <input-folder> --output <output-folder>
LibreToM4b convert <input-folder> -o <output-folder>

Arguments

Argument Description
input-folder Path to the folder containing supported audio files from LibreGrab

Options

Option Short Description
--output -o Output folder for the M4B file (default: Music/LibreToM4b)

Input Folder Structure

The input folder should contain:

audiobook-folder/
├── 001.mp3
├── 002.ts
├── ...
└── metadata/
    └── metadata.json    (optional - LibreGrab metadata)

Project Structure

LibreToM4b/
├── LibreToM4b.Core/     # Core library with models and services
│   ├── Models/          # Data models (Book, Chapter, etc.)
│   ├── Services/        # Conversion service logic
│   └── Interfaces/      # Service abstractions
└── LibreToM4b/          # CLI application
    └── Commands/        # Command-line command handlers

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A CLI tool to convert LibreGrab audiobooks to M4B files.

Topics

clilibbym4b-tool

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.