ConfusedPolarBear / intro-skipper

Fingerprint audio to automatically detect and skip intro sequences in Jellyfin
GNU General Public License v3.0
984 stars 363 forks source link

Skip intro button freezes jellyfin after pressed for the second time #182

Open GabeDuarteM opened 1 year ago

GabeDuarteM commented 1 year ago

Describe the bug

If I open a tv show for the first time, skip the intro, watch the rest of the episode, and let Jellyfin autostart the next episode for me, when that second episode starts, if I click on the Skip intro button, then Jellyfin completely freezes... I see that the video frame changes, but the episode time doesnt change (it keeps on the same minute/second), and after freezing, it does never come back, the cursor keeps as a "pointer", and no matter where I click, nothing happens, and the only way out of this is to force-kill it. When I do force kill it, I hear that the episode continues from the point it was supposed to continue, this is for like, a few milliseconds before it actually closes, so it feels like after I click on the skip intro button the whole UI just gets blocked.

All of this only happens on the second episode watched on that session and onwards, and that behavior is very consistent on normal usage. I tried to do a quick repro of this by going to an episode, clicking the skip intro, then going to the end and letting the autoplay carry me to the next episode, but when I then click on the skip intro button, it works, so I wasn't able to pinpoint a quickly reproducible example, but whenever I'm watching normally, the way I mentioned on the first paragraph, this happens consistently from the second episode onward.

Another thing I noticed is that instead of letting Jellyfin carry me to the next episode with the autoplay, if I go back to the initial dashboard by clicking on the back button on the top left, and then manually click on the next episode and click on the skip intro button, then this bug does not happen.

Operating system

Pop!_OS 22.04 LTS

Jellyfin installation method

Flatpak

Container image and tag

lscr.io/linuxserver/jellyfin

Support Bundle

FFmpeg version:

ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 11 (Ubuntu 11.3.0-1ubuntu1~22.04.1)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
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

Jellyfin logs

No response

stefanluth commented 1 year ago

I have the same issue. The first skip works fine, the next one freezes the Jellyfin Media Player. Sometimes it will continue playing after waiting a few minutes. @GabeDuarteM have you also experienced this?

Edit: It seems as if the player freezes as long as the intro would take, e.g. if the intro takes 90s, the player unfreezes after 90 seconds / after the intro would have finished. Maybe that helps.

Operating System

Server: Fedora Linux 38 (Server Edition) Client: Fedora Linux 38 (Workstation Edition)

Jellyfin installation method

Server: Docker Client: Flatpak

Container image and tag

jellyfin/jellyfin:latest

Support Bundle

FFmpeg version:

ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 10 (Debian 10.2.1-6)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
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