Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't play opus files #2284

Open
PLB42 opened this issue Jan 30, 2024 · 7 comments
Open

Can't play opus files #2284

PLB42 opened this issue Jan 30, 2024 · 7 comments

Comments

@PLB42
Copy link

PLB42 commented Jan 30, 2024

Overview

I have recently installed the app and imported my audio-book library. While mp3 and m4a files play fine, opus files don't play at all, even though the books, including cover art and chapters, are displayed correctly in the app. If selected for playback, the play button changes to the pause button for a split second before changing back. No error message is displayed.

The files can be played back in a different app on the same device without issue.

I was unsure whether including one of the files here would be permissible, due to them being copyrighted, but I could send one in private to help troubleshooting.

How to reproduce

  1. Open the App
  2. Select any audio-book with chapters formatted as .opus
  3. Click on Play
  4. Nothing

Version

8.2.0

Android Version

13, 14

Device Model

Oneplus Nord (AC2003)

@PLB42
Copy link
Author

PLB42 commented Feb 2, 2024

To add some further context - each book is a folder which contains the chapters as .opus files, as well as a jpg of the cover and a m3u of the folders contents, meaning each folders content look just about like this:

A Psalm for the Wild-Built: Monk & Robot, Book 1-01 Chapter 1.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-02 Chapter 2.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-03 Chapter 3.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-04 Chapter 4.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-05 Chapter 5.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-06 Chapter 6.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-07 Chapter 7.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-08 Chapter 8.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-09 Chapter 9.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-10 Chapter 10.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1-11 Chapter 11.opus
A Psalm for the Wild-Built: Monk & Robot, Book 1.jpg
A Psalm for the Wild-Built: Monk & Robot, Book 1.m3u

The contents of the m3u here look like this:

#EXTM3U
#EXTINF:21,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 1
A Psalm for the Wild-Built: Monk & Robot, Book 1-01 Chapter 1.opus
#EXTINF:299,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 2
A Psalm for the Wild-Built: Monk & Robot, Book 1-02 Chapter 2.opus
#EXTINF:2010,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 3
A Psalm for the Wild-Built: Monk & Robot, Book 1-03 Chapter 3.opus
#EXTINF:2824,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 4
A Psalm for the Wild-Built: Monk & Robot, Book 1-04 Chapter 4.opus
#EXTINF:1710,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 5
A Psalm for the Wild-Built: Monk & Robot, Book 1-05 Chapter 5.opus
#EXTINF:986,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 6
A Psalm for the Wild-Built: Monk & Robot, Book 1-06 Chapter 6.opus
#EXTINF:1996,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 7
A Psalm for the Wild-Built: Monk & Robot, Book 1-07 Chapter 7.opus
#EXTINF:966,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 8
A Psalm for the Wild-Built: Monk & Robot, Book 1-08 Chapter 8.opus
#EXTINF:1468,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 9
A Psalm for the Wild-Built: Monk & Robot, Book 1-09 Chapter 9.opus
#EXTINF:2587,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 10
A Psalm for the Wild-Built: Monk & Robot, Book 1-10 Chapter 10.opus
#EXTINF:37,A Psalm for the Wild-Built: Monk & Robot, Book 1 - Chapter 11
A Psalm for the Wild-Built: Monk & Robot, Book 1-11 Chapter 11.opus

@PLB42
Copy link
Author

PLB42 commented Feb 2, 2024

The Mediainfo Output for the first chapter here is as follows:

General
Complete name                            : A Psalm for the Wild-Built: Monk & Robot, Book 1-01 Chapter 1.opus
Format                                   : Ogg
File size                                : 311 KiB
Duration                                 : 21 s 960 ms
Overall bit rate                         : 116 kb/s
Frame rate                               : 25.000 FPS
Movie name                               : Chapter 1
Album                                    : A Psalm for the Wild-Built: Monk & Robot, Book 1
Album/Performer                          : Becky Chambers
Performer                                : Becky Chambers
Composer                                 : Em Grosland
Publisher                                : Macmillan Audio
Genre                                    : Hörbuch
Description                              : It's been centuries since the robots of Panga gained self-awareness and laid down their tools; centuries since they wandered, en masse, into the wilderness, never to be seen again; centuries since they faded into myth and urban legend. One day, the life of a tea monk is upended by the arrival of a robot, there to honor the old promise of checking in. The robot cannot go back until the question of "what do people need?" is answered. But the answer to that question depends on who you ask, and how.
Recorded date                            : 2021
Writing application                      : Lavc59.37.100 libopus
Copyright                                : ©2021 Becky Chambers (P)2021 Macmillan Audio

Video
ID                                       : 3179687515 (0xBD862E5B)
Format                                   : Theora
Duration                                 : 21 s 960 ms
Nominal bit rate                         : 200 kb/s
Width                                    : 500 pixels
Height                                   : 500 pixels
Display aspect ratio                     : 1.000
Frame rate                               : 25.000 FPS
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.032
Writing library                          : Lavf59.27.100
Track/Position                           : 1

Audio
ID                                       : 3491204967 (0xD0178F67)
Format                                   : Opus
Duration                                 : 21 s 960 ms
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Writing library                          : Lavf59.27.100
Track/Position                           : 1

@PLB42
Copy link
Author

PLB42 commented Feb 20, 2024

Little update - I recently updated the device to Android 14, and it still isn't working.

@PLB42
Copy link
Author

PLB42 commented Feb 20, 2024

And another little update - I tried app version 8.1.3 from the Play Store on a virtualised device, also running Android 14, and that didn't work either. I "fixed" the issue for now by converting the files to mp3 instead, but since the opus files use up less space for (to my ears) the same quality, I would be happy if either a fix could be implemented, or, if the problem lies with my files, you'd be kind enough to take a look at them, should you find the time.

@tibequadorian
Copy link

Works for me on my FP3 (LineageOS 20)

@40ZqTYY4ag3tAO4hdlxR1
Copy link

was unable to replicate issue
tested this opus file https://filesamples.com/samples/audio/opus/sample4.opus on version 8.2.0
it showed up , and played

@wompydomp
Copy link

Hi,

First of all, thanks for this awesome app!

I've been using Voice for years with different phones (mainly Google Pixels) w/ LineageOS. I do download audible files in aax format and convert them to opus with this tool: https://github.com/KrumpetPirate/AAXtoMP3
Since the very beginnng, I cannot listen "through" an audio book. After every file voice stops and jumps to the next file where it stays at 0 seconds. I then have to manually move the cursor to a few seconds into the file and it starts playing again.
This was quite acceptable for me, when a chapter is 1h long, but I just recently got two books with 4min snippets and it gets cumbersome..

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants