GitHunt
TI

timpiglowski/libation-m4b-chapter-cleaner

A python script to fix m4b audiobook chapters.

libation-m4b-chapter-cleaner

License: Unlicense status: hibernate

When using rmcrackan's Libation to save Audible audiobooks, you may encounter a problem where the chapters are not recognized correctly in Prologue.

This issue occurs because of a mismatch between different types of chapters within the audiobook file, as explained here.

To resolve this problem, you can use a simple fix recommended in the 'Common Issues' section of Prologue's GitHub project page. This fix involves remuxing the audiobook file using the following command: ffmpeg -i <input file> -map 0:a -map 0:v -c copy <output file>

That's exactly what my script does. After running the script, you'll be prompted to select the problematic audiobook file. The script will then apply the fix and save the corrected version alongside the original file. Once you import the fixed version into Prologue, the chapters should work as expected.

Usage

python3 libation-m4b-chapter-cleaner.py

Dependencies

  • tkinter
  • ffmpeg in PATH

Notes

Remuxing in ffmpeg will NOT retain sort-title and sort-album metadata. For more info, see Prologue's wiki.

Languages

Python100.0%

Contributors

The Unlicense
Created March 14, 2024
Updated May 20, 2025
timpiglowski/libation-m4b-chapter-cleaner | GitHunt