jellyfin / jellyfin-androidtv

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

[BUG] Jellyfin pauses before next song #3986

Open Mis1ify opened 2 months ago

Mis1ify commented 2 months ago

Describe the bug

  1. Play album
  2. Song is playing
  3. Song is coming to an end, it should play next song, but the player stops and shows 0:01 remaining.

It applies to specific songs.

Logs

[2024-09-12 14:19:34.987 +00:00] [INF] Sending ForceKeepAlive message to 2 inactive WebSockets. [2024-09-12 14:20:32.899 +00:00] [INF] Playback stopped reported by app "Android TV" "0.17.4" playing "Jak w paranormal". Stopped at "209269" ms [2024-09-12 14:20:32.914 +00:00] [INF] Playback stopped reported by app "Android TV" "0.17.4" playing "Jak w paranormal". Stopped at "209269" ms

FFmpeg logs

There are no logs

Media info of the file

ffprobe version 5.1.6-0+deb12u1 Copyright (c) 2007-2024 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, flac, from 'Verba - Jak w paranormal.flac':
  Metadata:
    TITLE           : Jak w paranormal
    ARTIST          : Verba
    ALBUM           : 14 Lutego
    album_artist    : Verba
    YEAR            : 2013
    GENRE           : Pop
    DATE            : 2013-12-01
    ISRC            : PLC061302206
  Duration: 00:03:30.11, start: 0.000000, bitrate: 923 kb/s
  Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
  Stream #0:1: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 500x500 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn (attached pic)
    Metadata:
      comment         : Cover (front)

Application version

0.17.4

Device information

Nvidia Shield Pro (2019)

Android version

Android 11 Stock

Jellyfin server version

10.9.9

nielsvanvelzen commented 2 months ago

When you say it only happens on specific songs, do they consistently fail? And is the media info the same for all of them?

Also, can you try updating your server and see if that makes a difference?

Mis1ify commented 2 months ago

I updated the server to the newest version. Specific songs always fail.

Here is an example of song that doesn't fail:

Input #0, flac, from 'Verba - Hej Kochanie(Explicit).flac':
  Metadata:
    ARTIST          : Verba, hemmerling
    ISRC            : PLC062252805
    TITLE           : Hej Kochanie
    COMPOSER        : Bartłomiej Kielar
    COPYRIGHT       : 2023 MyMusic
    album_artist    : Verba, hemmerling
  Duration: 00:03:14.80, start: 0.000000, bitrate: 833 kb/s
  Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
  Stream #0:1: Video: mjpeg (Progressive), yuvj444p(pc, bt470bg/unknown/unknown), 1280x1280 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn (attached pic)
    Metadata:
      comment         : Other

Here is an example of another song that does fail:

Input #0, flac, from 'Verba - Ja i moja dziewczyna.flac':
  Metadata:
    TITLE           : Ja i moja dziewczyna
    ARTIST          : Verba
    ALBUM           : 14 Lutego
    album_artist    : Verba
    YEAR            : 2013
    GENRE           : Pop
    DATE            : 2013-12-01
    ISRC            : PLC061302166
  Duration: 00:03:36.45, start: 0.000000, bitrate: 938 kb/s
  Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
  Stream #0:1: Video: mjpeg (Progressive), yuvj420p(pc, bt470bg/unknown/unknown), 500x500 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn (attached pic)
    Metadata:
      comment         : Cover (front)

https://github.com/user-attachments/assets/c320373e-7e0c-4de0-9c16-4d3e2e0f4283

It looks like I pressed pause button, but I didn't! Could it be related to metadata/cover?

Mis1ify commented 2 weeks ago

Well I don't think it's related to metadata of the file, I removed everything and left just the audio file, and still the bug occurs.