jellyfin / jellyfin-androidtv

Android TV Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.66k stars 455 forks source link

Can't play .WAV songs #3734

Closed Mis1ify closed 1 month ago

Mis1ify commented 1 month ago

Describe the bug

On the last beta v0.17.0, there is a bug that prevents me to play any song that is in the wave format. Downgrading to stable 0.16 fortunately fixed the problem.

Steps to reproduce:

  1. Select music library
  2. Select a track which is in .wav format
  3. Song just won't start, timer shows 0:00, and the Jellyfin server shows nothing is playing right now

Logs

[2024-07-08 23:10:44.485 +02:00] [INF] [32] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Android TV" "0.17.0-beta.2" playing "BGM - Melancholy". Stopped at "0" ms [2024-07-08 23:10:44.499 +02:00] [INF] [27] Jellyfin.Plugin.ListenBrainz: Processing playback stop event for item "BGM - Melancholy" associated with user "Mistify"

FFmpeg logs

No response

Media info of the file

Input #0, wav, from 'BGM - Melancholy.wav':
  Metadata:
    encoded_by      : Logic Pro X
    date            : 2024-05-20
    creation_time   : 15:06:31
    time_reference  : 158760000
    umid            : 0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000D800C095
    coding_history  : 
  Duration: 00:02:16.00, bitrate: 1414 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 136.000000
      Metadata:
        title           : Tempo: 120.0
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s

Application version

0.17.0

Device information

Nvidia Shield Pro (2019)

Android version

Android 11 Stock

Jellyfin server version

10.9.7

nielsvanvelzen commented 1 month ago

I found two issues that cause this problem:

  1. we don't direct play wav
  2. a bug removed authorization when transcoding

The second one is fixed for the next beta, allowing transcoding to work again. I'm working on a solution for direct play as well. Thanks for the report!

Mis1ify commented 1 month ago

Thanks!

nielsvanvelzen commented 1 month ago

I've also implemented direct play support now, so next beta will no longer need to transcode wav files!