[Bug]: Cannot play mka+opus file on desktop client #3258

Closed
opened 2026-04-25 00:14:33 +02:00 by adam · 3 comments
Owner

Originally created by @rktjmp on GitHub (Mar 10, 2026).

What happened?

Trying to play a .mka file with opus streams inside doesn't play anything and logs an error to the console.

What did you expect to happen?

The file should play as normal.

Steps to reproduce the issue

  1. Add a mka container file with opus streams inside it (Public domain sample file, 9mb) (cant directly add .mka files to this issue).
  2. Play the file on the desktop client
  3. Observe the play button stuck spinning, see the following error in console:
[HLS] Error mediaError fragParsingError 
Object { type: "mediaError", details: "fragParsingError", fatal: true, error: Error, frag: {…}, reason: 'Found no media in msn 8 of level "https://domain/audiobookshelf/hls/decf9195-38ed-406a-af06-b75f800f851d/output.m3u8"', errorAction: {…} }
​
details: "fragParsingError"
​
error: Error: Found no media in fragment 8 of level 0 resetting transmuxer to fallback to playlist timing
​
errorAction: Object { action: 2, flags: 1, retryCount: 8, … }
​
fatal: true
​
frag: Object { _byteRange: Getter & Setter, _url: Getter & Setter, baseurl: Getter & Setter, … }
​
reason: 'Found no media in msn 8 of level "https://domain/audiobookshelf/hls/decf9195-38ed-406a-af06-b75f800f851d/output.m3u8"'
​
type: "mediaError"
​
<prototype>: Object { … }
5ac40cc.js:1:92627

Audiobookshelf version

v2.32.1

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs


Additional Notes

No response

Originally created by @rktjmp on GitHub (Mar 10, 2026). ### What happened? Trying to play a `.mka` file with `opus` streams inside doesn't play anything and logs an error to the console. ### What did you expect to happen? The file should play as normal. ### Steps to reproduce the issue 1. Add a `mka` container file with `opus` streams inside it ([Public domain sample file, 9mb](https://files.catbox.moe/71hpeh.mka)) (cant directly add .mka files to this issue). 2. Play the file on the desktop client 3. Observe the play button stuck spinning, see the following error in console: ``` [HLS] Error mediaError fragParsingError Object { type: "mediaError", details: "fragParsingError", fatal: true, error: Error, frag: {…}, reason: 'Found no media in msn 8 of level "https://domain/audiobookshelf/hls/decf9195-38ed-406a-af06-b75f800f851d/output.m3u8"', errorAction: {…} } ​ details: "fragParsingError" ​ error: Error: Found no media in fragment 8 of level 0 resetting transmuxer to fallback to playlist timing ​ errorAction: Object { action: 2, flags: 1, retryCount: 8, … } ​ fatal: true ​ frag: Object { _byteRange: Getter & Setter, _url: Getter & Setter, baseurl: Getter & Setter, … } ​ reason: 'Found no media in msn 8 of level "https://domain/audiobookshelf/hls/decf9195-38ed-406a-af06-b75f800f851d/output.m3u8"' ​ type: "mediaError" ​ <prototype>: Object { … } 5ac40cc.js:1:92627 ``` ### Audiobookshelf version v2.32.1 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:14:33 +02:00
adam closed this issue 2026-04-25 00:14:33 +02:00
Author
Owner

@mihailim commented on GitHub (Apr 9, 2026):

Oddly enough, mp4+opus works perfectly, both with the browser client on Linux (Firefox and Chromium-derived) and with the Android client.
(Please, please don't force transcoding for mp4+opus :D)

@mihailim commented on GitHub (Apr 9, 2026): Oddly enough, mp4+opus works _perfectly_, both with the browser client on Linux (Firefox and Chromium-derived) and with the Android client. (Please, please don't force transcoding for mp4+opus :D)
Author
Owner

@Vito0912 commented on GitHub (Apr 9, 2026):

Oddly enough, mp4+opus works perfectly

That's not really oddly at all. Opus is supported in mp4/m4a/m4b and all these mp4 extensions.

Also this issue here and the PR are not wrong per se, but it's not the solution. The problem simply is that the clients don't advertise that they can indeed support mka containers. Thus fallback to transcoding. Transcoding uses hls which does not support opus afaik, which why it fails. If you tell ABS that your client supports mka it does work without any problem. I will leave a comment on the PR too

@Vito0912 commented on GitHub (Apr 9, 2026): > Oddly enough, mp4+opus works perfectly That's not really oddly at all. Opus is supported in mp4/m4a/m4b and all these mp4 extensions. Also this issue here and the PR are not wrong per se, but it's not the solution. The problem simply is that the clients don't advertise that they can indeed support mka containers. Thus fallback to transcoding. Transcoding uses hls which does not support opus afaik, which why it fails. If you tell ABS that your client supports mka it does work without any problem. I will leave a comment on the PR too
Author
Owner

@github-actions[bot] commented on GitHub (Apr 20, 2026):

Fixed in v2.33.2.

@github-actions[bot] commented on GitHub (Apr 20, 2026): Fixed in [v2.33.2](https://github.com/advplyr/audiobookshelf/releases/tag/v2.33.2).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3258