Home

Awesome

Plex & Booksonic Audiobook Guide

This guide is specifically for optimal Audiobook experience using Plex, which in it's current state only quasi-supports audiobooks. This is my method for processing large libraries with bad/missing tags as quick as possible while getting the most metadata into Plex in the least amount of time. I'll be doing a deep dive into some advanced features of the tools available to us in order to get a nice, clean, and functional UI. This guide is meant to serve as a framework for fully utilizing metadata.  Everything is customizable, and easy to change. While focused on Plex, if you follow the tagging and file processing steps you will also be compatible with Booksonic and AudiobookShelf servers.

Note: This guide targets and has been tested on Windows systems. Most of it also works on Linux/Mac but the Mp3tag Audible WebSource script only works on Windows. For workarounds see issue #2.

Contents

Goal

Show as much metadata as possible in Plex & Booksonic.  Filter/browse/search by Narrator, Author, Genre, Year, Series, Rating, or Publisher.  Show Album Covers and Summary's. Make the organizing and tagging as quick and painless as possible. We need to do these 4 general steps:

  1. (Optional) Convert mp3's to chapterized m4b.
  2. Ensure the ALBUM and ALBUMARTIST (or ARTIST) tags are set and correct.
  3. Install the Audnexus Audible Metadata Agent in Plex.
  4. Use a 3rd party Audiobook player app such as BookCamp or Prologue.

Plex Library View

<p float="left"> <img src="https://i.imgur.com/C3wgGte.png" width="48%" /> <img src="https://i.imgur.com/YHqhdhO.png" width="50%" /> </p>

alt text

<p float="left"> <img src="https://i.imgur.com/A1IYa5I.png" width="24%" /> <img src="https://i.imgur.com/eKrH92i.png" width="23.5%" /> <img src="https://i.imgur.com/HGbPdNM.png" width="49%" /> </p> <!-- blank line -->
<!-- blank line -->

Backing up your Audible books

I plan on having a seprate walkthrough that will take you through backing up your Audible .aax files, and converting them to chapterized .M4B files. This guide will work for both mp3 and m4b files, but I prefer chapterized m4b's. Plex handles M4B metadata better than mp3's, some third party players like Prologue and BookCamp can handle the M4B chapter splits and names, and generally having less files helps plex run smoother.

For some more Software resources for Audible-centric audiobook management, including removing DRM from Audible files check out @rmcrackan's AudiobookHub

Now that you have your files, let get them in a format Plex can handle so we can stream our whole library with our firends and family.


Working folders

I have 3 working directories for my Audiobooks:

Anywhere these folders are referenced, make sure to update to your specific paths

Best Practice: Tag your files before adding them to Plex.

<!-- blank line -->
<!-- blank line -->

(Optional) Automatically copy untagged Audiobook files to a temp folder

Optional: This step is only required if you want to preserve the original unedited Audiobook files. This is required if you are seeding torrents, for example from librivox.org. That said, this is a recommended step for everyone, just incase something goes horribly wrong with Mp3tag or copying files.

<details> <summary>What I want to achieve with this step: (click to expand)</summary> <br>

This Script will:

Example:

/original
|
+-- /Book1
|   |
|   +-- book1.mp3 (Date: T-1min)
|   +-- book1cover.jpg (Date: T-1min)
|
+-- book2.m4b (Date: T-2min)
+-- book3.m4b (Date: T-1Hr)

RUN SCRIPT (every 2min)

/temp
|
+-- book1.mp3
+-- book2.m4b
</details> <br>

This will automatically copy untagged books from \Original to \temp, which we will set as the default folder Mp3tag opens to, so all you have to do is open Mp3tag and any books that need processing will be automatically loaded. Expand and follow one of the options below for your OS.

<details> <summary>[WINDOWS] Monitor /original folder and move untagged audiofiles to /temp: (click to expand)</summary> <br> <p float="left"> <img src="https://i.imgur.com/qrEFFQH.png" width="69%" /> <img src="https://i.imgur.com/DBdlB6k.png" width="30%" /> </p>

Test it by Copying an audiofile to /Original. Make sure it's working before moving on

</details> <details> <summary>[LINUX] Create a BookCopy script: (click to expand)</summary> <br>
#!/bin/sh
find /full/path/to/Original/ -type f \( -iname \*.m4b -o -iname \*.mp3 -o -iname \*.mp4 -o -iname \*.m4a -o -iname \*.ogg \) -mmin -3 -exec cp -n "{}" /full/path/to/temp/ \;
</details>

(Optional) Automatically convert mp3 audiobooks to chapterized M4B [Linux+Windows]

Let's face it, Large Libraries Sink Ships. Everything runs quicker, and smoother, the lower the total number of files there are to scan. Let's say you have 5000 books. If they were mp3's then you would be looking at least 100,000 files, vs 5000 m4b's. M4b's can also hold chapter data, and generally the metadata works better with Plex over mp3's.

If you use both Linux and Windows, I have a Linux script that watches your /original folder for newly added mp3 audiobooks and converts them to M4b files with chapters separated by mp3 file. It's pretty slick.


Configure Mp3tag

Set the default folder Mp3tag automatically looks for book files in.

Download my example configuration files to Mp3tag's Appdata directory

Edit the newly copied config files with your specific paths

<details> <summary>Alternatively, you can manually create and configure mp3tag to your specific needs (click to expand)</summary> <br>

Install the Audible custom web sources

Cofigure the Tag Panel

Create a custom Action that will Rename, Proper Folder Structure, and Export cover/desc/reader

$filename(desc.txt,utf-8)
%comment%
$filename(reader.txt,utf-8)
%composer%

Your New Action should look like this:
alt text alt text alt text

</details>

Test

Note: After selecting the Web Source manually for the first time we can then use the keyboard shortcut ctrl+shift+i to call it moving forward. Likewise the action script can be called using alt+a 1.

<!-- blank line -->
<!-- blank line -->

Configure Plex

Install Metadata Agent for Plex

Follow the Instructions here

<details> <summary>Alternate Installation using WebTools Plex Plugin (click to expand)</summary> <br> </details>

Configure Metadata Agent in Plex

Create Audiobook Library in Plex

<!-- blank line -->
<!-- blank line -->

Workflow

Now that the hard part of setting everything up is out of the way, this is what your typical workflow will look like moving forward:

Mp3tag can only work on one audiobook at a time.

Open Mp3tag
  1. Ctrl-a or, Select All tracks of an Audiobook
  2. Ctrl-k Set/fix the track numbers
  3. Ctrl-shift-i or Click the Web Source (quick) button alt text
  4. Alt-a 1 or Click the Action drop down menu
    alt text
  5. This does not set the TITLE tag for multifile books. Plex uses TITLE as the Chapter Name. There are two easy options to set this:
    • Click the Filename - Tag button, Format String= %Title%, this will set the filename as the Chapter name.
    • Click the Action drop down, select Chapter %track% which will give you a generic "Chapter 1, Chapter 2, ..."
<!-- blank line -->
<!-- blank line -->

Tips!

<!-- blank line -->
<!-- blank line -->

Tags that are being set

I did a lot of digging into ID3 standards and this was the best way I could come up with to shoehorn Audiobook metadata into mp3 tags. It certainly isn't perfect, but it does work very nicely for Plex and other Audiobook apps. These can be changed to fit your particular style by editing the Audible.com#Search by Album.src file in Notepad++.

mp3tag TagAudible.com Value
TIT1 (CONTENTGROUP)Series, Book #
TALB (ALBUM)Title
TIT3 (SUBTITLE)Subtitle
TPE1 (ARTIST)Author, Narrator
TPE2 (ALBUMARTIST)Author
TCOM (COMPOSER)Narrator
TCON (GENRE)Genre1/Genre2
TYER (YEAR)Copyright Year*
COMM (COMMENT)Publisher's Summary (MP3)
desc (DESCRIPTION)Publisher's Summary (M4B)
TSOA (ALBUMSORT)If ALBUM only, then %Title%<br>If ALBUM and SUBTITLE, then %Title% - %Subtitle%<br>If Series, then %Series% %Series-part% - %Title%
TDRL (RELEASETIME)Audiobook Release Year
TPUB (PUBLISHER)Publisher
TCOP (COPYRIGHT)Copyright
ASIN (ASIN)Amazon Standard Identification Number
POPM (RATING WMP)Audible Rating
WOAF (WWWAUDIOFILE)Audible Album URL
stik (ITUNESMEDIATYPE)M4B Media type = Audiobook
pgap (ITUNESGAPLESS)M4B Gapless album = 1
shwm (SHOWMOVEMENT)Show Movement (M4B), if Series then = 1 else blank
MVNM (MOVEMENTNAME)Series
MVIN (MOVEMENT)Series Book #
TXXX (SERIES)**Series
TXXX (SERIES-PART)**Series Book #
TXXX (TMP_GENRE1)**Genre 1
TXXX (TMP_GENRE2)**Genre 2
CoverUrlAlbum Cover Art
TIT2 (TITLE)Not Scraped, but used for Chapter Title<br>If no chapter data available set to filename

*I would prefer Original Pub. year, but Audible is really bad at providing this data
**Custom Tags used as placeholders, To view this tag Tools>Options>Tag Panel>New

<!-- blank line -->
<!-- blank line -->

Players:

<!-- blank line -->
<!-- blank line -->

Notes:

Once you have mp3tag, Audiobook metadata agent, and Plex configured the work flow becomes pretty quick and painless, especially when using keyboard shortcuts.

Following this guide will also give you everything you need for a properly organized AudiobookShelf and Booksonic server. While Plex doesn't really care about your folder structure beyond /Audiobook/Author/Book/book.mp3, Booksonic exclusively uses folder structure for it's organization and it also looks for cover.jpg/desc.txt/reader.txt files (automatically created with the Action script) for additional metadata.

I currently use BookCamp ($12/yr), it is miles better than the Plex app and PlexAmp and works on both iOS and Android, but if you are on iOS then Prologue is the preferred option.

<!-- blank line -->
<!-- blank line -->

<a href="https://www.buymeacoffee.com/seanap" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-green.png" alt="Buy Me A Book" height="41" width="174"></a>