[GH-ISSUE #1222] Opus encoded music doesn't play #695

Closed
opened 2026-02-26 02:33:59 +03:00 by kerem · 3 comments
Owner

Originally created by @TobiasKozel on GitHub (May 5, 2020).
Original GitHub issue: https://github.com/koel/koel/issues/1222

Describe the bug
Opus encoded music doesn't play back. Instead the player gets stuck in a intermediate state.

To reproduce
Steps to reproduce the behavior:

  1. Encode music with the reference encoder. Make sure it uses the .ogg extension.
  2. Scan the library. Since opus uses the ogg container, all the meta data and album covers can be imported without a problem.
  3. Play back the file on the client.
  4. Silence
  5. In Chrome the file eventually starts to play

Expected behavior
A browser wich supports opus in the audio tag should be able to play the file.

Screenshots
none

Environment

  • Koel version [v4.3.1]
  • OS: [Debian Buster]
  • Browser [e.g. Firefox 75]
  • PHP version [v7.3.0]
  • Node version [v10.19.0]

Additional context
The javascript console doesn't show any errors and the network inspector lists a request witht a ogg file type. Since the response seems to be smaller than the actual file, I suspect the whole file is needed for decoding to start.

Originally created by @TobiasKozel on GitHub (May 5, 2020). Original GitHub issue: https://github.com/koel/koel/issues/1222 **Describe the bug** Opus encoded music doesn't play back. Instead the player gets stuck in a intermediate state. **To reproduce** Steps to reproduce the behavior: 1. Encode music with the reference encoder. Make sure it uses the .ogg extension. 2. Scan the library. Since opus uses the ogg container, all the meta data and album covers can be imported without a problem. 3. Play back the file on the client. 4. Silence 5. In Chrome the file eventually starts to play **Expected behavior** A browser wich supports opus in the audio tag should be able to play the file. **Screenshots** none **Environment** - Koel version [v4.3.1] - OS: [Debian Buster] - Browser [e.g. Firefox 75] - PHP version [v7.3.0] - Node version [v10.19.0] **Additional context** The javascript console doesn't show any errors and the network inspector lists a request witht a ogg file type. Since the response seems to be smaller than the actual file, I suspect the whole file is needed for decoding to start.
kerem 2026-02-26 02:33:59 +03:00
Author
Owner

@songliqiangcn commented on GitHub (May 5, 2020):

I have same issue. (looks it is playing, but no sound).

Environment

Koel: v4.3.1
OS: Ubuntu18.04
Browser Chrome Version 81.0.4044.129 (Official Build) (64-bit)
PHP 7.2.24-0ubuntu0.18.04.4 (cli) (built: Apr 8 2020 15:45:57) ( NTS )
Node version v12.16.3

Screenshot from 2020-05-05 23-41-34

<!-- gh-comment-id:624059885 --> @songliqiangcn commented on GitHub (May 5, 2020): I have same issue. (looks it is playing, but no sound). Environment Koel: v4.3.1 OS: Ubuntu18.04 Browser Chrome Version 81.0.4044.129 (Official Build) (64-bit) PHP 7.2.24-0ubuntu0.18.04.4 (cli) (built: Apr 8 2020 15:45:57) ( NTS ) Node version v12.16.3 ![Screenshot from 2020-05-05 23-41-34](https://user-images.githubusercontent.com/12743413/81072832-1875e780-8f2a-11ea-81f0-03990dac134f.png)
Author
Owner

@TobiasKozel commented on GitHub (May 5, 2020):

After switching to x-accel-redirect as the streaming method opus files seem to play fine.
I'll leave this open for now since this might be helpful to know.

<!-- gh-comment-id:624220261 --> @TobiasKozel commented on GitHub (May 5, 2020): After switching to x-accel-redirect as the streaming method opus files seem to play fine. I'll leave this open for now since this might be helpful to know.
Author
Owner

@BrookeDot commented on GitHub (Jan 1, 2021):

I'm going to go ahead and close this out. Glad you got it resolved!

<!-- gh-comment-id:753229988 --> @BrookeDot commented on GitHub (Jan 1, 2021): I'm going to go ahead and close this out. Glad you got it resolved!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#695
No description provided.