[Enhancement]: Generate Opus Files #1038

Closed
opened 2026-04-24 23:29:37 +02:00 by adam · 3 comments
Owner

Originally created by @venyxal on GitHub (Mar 23, 2023).

Describe the feature/enhancement

Is it possible to use the encoder to create Opus files?

Originally created by @venyxal on GitHub (Mar 23, 2023). ### Describe the feature/enhancement Is it possible to use the encoder to create Opus files?
adam added the enhancement label 2026-04-24 23:29:37 +02:00
adam closed this issue 2026-04-24 23:29:38 +02:00
Author
Owner

@iconoclasthero commented on GitHub (Dec 7, 2023):

I would assume that the index looks the same for the m4b as it does for opus:
CHAPTER000=00:00:00.000
CHAPTER000NAME=Chapter One
...
Instead of going to the trouble of adding additional encoders, you could export something in a format or a .cue sheet. The latter would probably be more useful since it could be used to burn discs if anyone actually does that anymore. The former would be more convenient personally. This would mean users would have to process their own files, but the script I wrote should make that fairly straight forward and I'm assuming that if you[re using .opus you already have a modicum of proficiency with how one would rearrange a cue to an index for opus files.

Might as well copy this over here:
Describe the feature/enhancement
This is an extension of https://github.com/advplyr/audiobookshelf/issues/1633 but the one line description was lacking so I'm opening a new one; I don't care which way they get merged.

All of the things that are done with .m4b in the AFMT can be done with .opus. I and the OP of №. 1633 are not the only ones who use it (e.g., exor on the Discord). The addition of .opus support should be relatively trivial (I created this bash script and I have no idea what I'm doing). Such tools are very much needed in the audiobook community as there is really a dearth of appropriate tagging utilities for audiobooks — .opus-encoded audiobooks in particular.

With, what I have been told is the pending replacement of tone, now seems like it would be a good time to implement an option for tagging .opus. I should note that—while I do not know how it is done now—I would hope that there be some basic encoding options if transcoding (e.g., bitrate) and that files that are in the destination format have a stream-copy option[1] as well.

[1] the functional equivalent to ffmpeg -acodec copy such that lossy formats (especially low-bit-rate encodings) are not transcoded lossy to lossy in the same format.

@iconoclasthero commented on GitHub (Dec 7, 2023): I would assume that the index looks the same for the m4b as it does for opus: CHAPTER000=00:00:00.000 CHAPTER000NAME=Chapter One ... Instead of going to the trouble of adding additional encoders, you could export something in a format or a .cue sheet. The latter would probably be more useful since it could be used to burn discs if anyone actually does that anymore. The former would be more convenient personally. This would mean users would have to process their own files, but the script I wrote should make that fairly straight forward and I'm assuming that if you[re using .opus you already have a modicum of proficiency with how one would rearrange a cue to an index for opus files. Might as well copy this over here: Describe the feature/enhancement This is an extension of https://github.com/advplyr/audiobookshelf/issues/1633 but the one line description was lacking so I'm opening a new one; I don't care which way they get merged. All of the things that are done with .m4b in the AFMT can be done with .opus. I and the OP of №. 1633 are not the only ones who use it (e.g., exor on the Discord). The addition of .opus support should be relatively trivial (I created [this bash script](https://github.com/iconoclasthero/indexopus) and I have no idea what I'm doing). Such tools are very much needed in the audiobook community as there is really a dearth of appropriate tagging utilities for audiobooks — .opus-encoded audiobooks in particular. With, what I have been told is the pending replacement of tone, now seems like it would be a good time to implement an option for tagging .opus. I should note that—while I do not know how it is done now—I would hope that there be some basic encoding options if transcoding (e.g., bitrate) and that files that are in the destination format have a stream-copy option[1] as well. [1] the functional equivalent to ffmpeg -acodec copy such that lossy formats (especially low-bit-rate encodings) are not transcoded lossy to lossy in the same format.
Author
Owner

@advplyr commented on GitHub (May 2, 2025):

You can create opus files with the m4b tool using advanced settings

Image

@advplyr commented on GitHub (May 2, 2025): You can create opus files with the m4b tool using advanced settings ![Image](https://github.com/user-attachments/assets/9e315289-d0ab-431b-a16b-460053dd4e83)
Author
Owner

@venyxal commented on GitHub (May 16, 2025):

Nice feature, but the created file can only be played with ABS.
Other players won't play it. In my case, Lyrion Media Server and Jellyfin.
I think, it is the wrong Container.

@venyxal commented on GitHub (May 16, 2025): Nice feature, but the created file can only be played with ABS. Other players won't play it. In my case, Lyrion Media Server and Jellyfin. I think, it is the wrong Container.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1038