Skip to content

Latest commit

 

History

History
143 lines (111 loc) · 4.49 KB

File metadata and controls

143 lines (111 loc) · 4.49 KB

Auto-M4B Documentation

Welcome to the Auto-M4B documentation! This guide will help you get started with automated audiobook conversion and management.

Quick Links

Getting Started

Troubleshooting & Guides

API Documentation

What is Auto-M4B?

Auto-M4B is a Docker-based automation tool that:

  • Watches a folder for new audiobooks
  • Converts multi-file MP3/M4A/OGG books to chapterized M4B format
  • Organizes completed books into an output folder
  • Archives original files for safekeeping
  • Backs up your data (optional)

Quick Start

# 1. Create your folder structure
mkdir -p ~/audiobooks/{inbox,converted,archive,backup}

# 2. Create docker-compose.yml
cat > docker-compose.yml << EOF
version: '3.7'
services:
  auto-m4b:
    image: darthdobber/auto-m4b
    container_name: auto-m4b
    restart: unless-stopped
    volumes:
      - ~/audiobooks/inbox:/inbox
      - ~/audiobooks/converted:/converted
      - ~/audiobooks/archive:/archive
      - ~/audiobooks/backup:/backup
    environment:
      - PUID=1000
      - PGID=1000
      - INBOX_FOLDER=/inbox
      - CONVERTED_FOLDER=/converted
      - ARCHIVE_FOLDER=/archive
      - BACKUP_FOLDER=/backup
EOF

# 3. Validate configuration (optional but recommended)
docker-compose run --rm auto-m4b pipenv run python -m src --validate

# 4. Start the container
docker-compose up -d

# 5. Add audiobooks to ~/audiobooks/inbox
# They'll automatically be converted and moved to ~/audiobooks/converted

See the Getting Started Guide for detailed instructions.

Key Features

✅ Automated Conversion

  • Converts MP3, M4A, M4B, OGG, and WMA files
  • Creates chapterized M4B audiobooks
  • Preserves metadata and cover art
  • Handles multi-disc books and series

✅ Smart Processing

  • Watches inbox folder continuously
  • Handles nested folder structures
  • Detects and skips already-processed books
  • Graceful error handling

✅ Flexible Configuration

  • Configure via environment variables
  • Adjustable CPU cores, chapter lengths, and more
  • Test mode for dry runs
  • Debug mode for troubleshooting

✅ Docker-Ready

  • Pre-built images on Docker Hub
  • No manual dependencies to install
  • Configurable PUID/PGID for permissions
  • Works on Linux, macOS (Intel/ARM), and Windows

System Requirements

  • Docker and Docker Compose installed
  • CPU: Multi-core recommended (configurable)
  • Storage: Sufficient space for inbox, converted, archive, and working directories
  • Supported Audio Formats: MP3, M4A, M4B, OGG, WMA

Common Use Cases

Automated Audiobook Pipeline

1. Download audiobooks → inbox/
2. Auto-M4B converts to M4B → converted/
3. Tag with beets-audible → organized library
4. Import to Plex/Audiobookshelf

Manual Chapter Adjustment

  1. Let Auto-M4B process the book
  2. Edit the .chapters.txt file in the output
  3. Move folder back to inbox/ for re-processing

Batch Conversion

# Copy multiple books at once
cp -r /path/to/books/* ~/audiobooks/inbox/

# Auto-M4B will process them sequentially

Getting Help

Credits

License

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