[PR #4253] [MERGED] Audiobook tools enhancements #4200

Closed
opened 2026-04-25 00:18:45 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4253
Author: @advplyr
Created: 5/3/2025
Status: Merged
Merged: 5/3/2025
Merged by: @advplyr

Base: masterHead: audiobook_tools_enhancements


📝 Commits (2)

  • e0b90c6 Add channels, codec and bitrate to tracks table & breakpoint updates
  • 342d100 Replace advanced options with presets/advanced card

📊 Changes

7 files changed (+266 additions, -46 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 client/components/ui/ToggleBtns.vue (+15 -2)
client/components/widgets/EncoderOptionsCard.vue (+211 -0)
📝 client/pages/audiobook/_id/manage.vue (+35 -42)
📝 client/strings/en-us.json (+1 -0)
📝 server/controllers/LibraryItemController.js (+2 -2)
📝 server/controllers/ToolsController.js (+1 -0)

📄 Description

Brief summary

This improves the m4b encoder tool default values and the UI/UX on the audiobook tools page.

Which issue is fixed?

Fixes #4169 and fixes #1257

In-depth Description

M4b tool improvements:

  • Default to copy codec if all audio file codecs are AAC
  • Select closest bit rate to one of 32k, 64k, 128k, 192k (instead of always 128k potentially increasing the size)
  • Use mono channel if all audio files are mono (instead of always stereo)
  • UI improvements
    • Better breakpoints for mobile and small screens
    • Use card with tabs for presets/advanced
    • Show bit rate, channels, and codec in the audio tracks table
    • Show the current bit rate, channels and codec below the presets (bit rate is averaged & channels use the max)

The preset defaults are best explained in the screenshots below.

Screenshots

When audio tracks are mp3's the default is to encode to AAC
image

When not all audio track codecs are the same the default is to encode to AAC.
Note the bit rate rounds up to the nearest, this can be improved to add more presets
image

When all audio tracks are AAC then default to copy (don't re-encode).
image

When all audio tracks are mono channel then default to mono (if mixed the default is stereo)
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/4253 **Author:** [@advplyr](https://github.com/advplyr) **Created:** 5/3/2025 **Status:** ✅ Merged **Merged:** 5/3/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `audiobook_tools_enhancements` --- ### 📝 Commits (2) - [`e0b90c6`](https://github.com/advplyr/audiobookshelf/commit/e0b90c6813defde58ef8944415cdb84b1c6379a7) Add channels, codec and bitrate to tracks table & breakpoint updates - [`342d100`](https://github.com/advplyr/audiobookshelf/commit/342d100f3e3110ae24a895f265c96c6fa6586155) Replace advanced options with presets/advanced card ### 📊 Changes **7 files changed** (+266 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `client/components/ui/ToggleBtns.vue` (+15 -2) ➕ `client/components/widgets/EncoderOptionsCard.vue` (+211 -0) 📝 `client/pages/audiobook/_id/manage.vue` (+35 -42) 📝 `client/strings/en-us.json` (+1 -0) 📝 `server/controllers/LibraryItemController.js` (+2 -2) 📝 `server/controllers/ToolsController.js` (+1 -0) </details> ### 📄 Description <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary This improves the m4b encoder tool default values and the UI/UX on the audiobook tools page. ## Which issue is fixed? Fixes #4169 and fixes #1257 ## In-depth Description M4b tool improvements: - Default to `copy` codec if all audio file codecs are AAC - Select closest bit rate to one of 32k, 64k, 128k, 192k (instead of always 128k potentially increasing the size) - Use mono channel if all audio files are mono (instead of always stereo) - UI improvements - Better breakpoints for mobile and small screens - Use card with tabs for presets/advanced - Show bit rate, channels, and codec in the audio tracks table - Show the current bit rate, channels and codec below the presets (bit rate is averaged & channels use the max) The preset defaults are best explained in the screenshots below. ## Screenshots When audio tracks are mp3's the default is to encode to AAC ![image](https://github.com/user-attachments/assets/6cb63e95-1c12-44c5-b556-42383b826d12) When not all audio track codecs are the same the default is to encode to AAC. Note the bit rate rounds up to the nearest, this can be improved to add more presets ![image](https://github.com/user-attachments/assets/a6a4e90d-5649-4e5c-8c5a-ffe1789c7d17) When all audio tracks are AAC then default to copy (don't re-encode). ![image](https://github.com/user-attachments/assets/7264a4d9-8063-4be6-b086-023ee35b731f) When all audio tracks are mono channel then default to mono (if mixed the default is stereo) ![image](https://github.com/user-attachments/assets/7e6f4429-2fd5-4c2e-8410-678c636b016c) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:18:45 +02:00
adam closed this issue 2026-04-25 00:18:45 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4200