jellyfin / jellyfin-androidtv

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

Turning off subtitles while video is playing not working #2045

Closed Scratchydisk closed 1 year ago

Scratchydisk commented 2 years ago

Describe the bug

Expected Behaviour: Changing the CC option to None from the Android app should turn off subtitles.

Actual Behaviour: Selecting the None CC option has no effect at all.

Changing to any other subtitle works, it is just changing to None that doesn't work.

To Reproduce:

  1. Play video
  2. Default subtitles for video shown.
  3. Select CC option
  4. Scroll to top (None) option
  5. Select None option
  6. Playback resumes but subtitles are still shown

Workaround:

The workaround is to access the video via the web interface and set the default subtitles to None there. Then play the video in the web app (a few seconds is enough). The Android app then shows no subtitles.

Logs

No response

FFmpeg logs

No response

Media info of the file

ffprobe version 4.2.7-0ubuntu0.1 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 13 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 14 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 15 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 16 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 17 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 18 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 19 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 20 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 21 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[matroska,webm @ 0x55dbc583de40] Could not find codec parameters for stream 22 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, matroska,webm, from 'Prometheus.2012.2160p.4K.BluRay.x265.10bit.AAC5.1-[YTS.MX].mkv':
  Metadata:
    ENCODER         : Lavf58.67.100
  Duration: 02:03:46.84, start: 0.000000, bitrate: 7451 kb/s
    Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      ENCODER         : Lavc58.122.100 libx265
      DURATION        : 02:03:46.838000000
    Stream #0:1: Audio: aac (LC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      ENCODER         : Lavc58.122.100 libfdk_aac
      DURATION        : 02:03:46.837000000
    Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle (default)
    Metadata:
      title           : English (SDH)
      BPS-eng         : 28620
      DURATION-eng    : 01:59:53.228000000
      NUMBER_OF_FRAMES-eng: 3206
      NUMBER_OF_BYTES-eng: 25733896
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:3(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Spanish (Latin American)
      BPS-eng         : 24331
      DURATION-eng    : 01:58:40.822000000
      NUMBER_OF_FRAMES-eng: 2874
      NUMBER_OF_BYTES-eng: 21657753
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:4(fre): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : French
      BPS-eng         : 19144
      DURATION-eng    : 01:58:12.252000000
      NUMBER_OF_FRAMES-eng: 2418
      NUMBER_OF_BYTES-eng: 16972407
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:5(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Spanish (Castilian)
      BPS-eng         : 23690
      DURATION-eng    : 01:58:12.419000000
      NUMBER_OF_FRAMES-eng: 2818
      NUMBER_OF_BYTES-eng: 21002492
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:6(dan): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Danish
      BPS-eng         : 22849
      DURATION-eng    : 01:58:12.419000000
      NUMBER_OF_FRAMES-eng: 2318
      NUMBER_OF_BYTES-eng: 20256861
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:7(dut): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Dutch
      BPS-eng         : 20550
      DURATION-eng    : 01:58:12.419000000
      NUMBER_OF_FRAMES-eng: 1936
      NUMBER_OF_BYTES-eng: 18219154
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:8(fin): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Finnish
      BPS-eng         : 20680
      DURATION-eng    : 01:58:12.419000000
      NUMBER_OF_FRAMES-eng: 2078
      NUMBER_OF_BYTES-eng: 18334530
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:9(ger): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : German
      BPS-eng         : 23107
      DURATION-eng    : 01:58:12.419000000
      NUMBER_OF_FRAMES-eng: 2586
      NUMBER_OF_BYTES-eng: 20485582
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:10(ita): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Italian
      BPS-eng         : 21678
      DURATION-eng    : 01:58:12.419000000
      NUMBER_OF_FRAMES-eng: 2238
      NUMBER_OF_BYTES-eng: 19219151
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:11(jpn): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Japanese
      BPS-eng         : 16681
      DURATION-eng    : 01:58:11.919000000
      NUMBER_OF_FRAMES-eng: 2252
      NUMBER_OF_BYTES-eng: 14787984
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:43.627000000
    Stream #0:12(nor): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Norwegian
      BPS-eng         : 20457
      DURATION-eng    : 01:58:12.419000000
      NUMBER_OF_FRAMES-eng: 2612
      NUMBER_OF_BYTES-eng: 18136361
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:13(swe): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Swedish
      BPS-eng         : 21328
      DURATION-eng    : 01:58:12.419000000
      NUMBER_OF_FRAMES-eng: 1840
      NUMBER_OF_BYTES-eng: 18908604
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:14(chi): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Chinese (Cantonese)
      BPS-eng         : 20495
      DURATION-eng    : 01:58:40.822000000
      NUMBER_OF_FRAMES-eng: 2866
      NUMBER_OF_BYTES-eng: 18243181
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:15(chi): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Chinese (Mandarin Traditional)
      BPS-eng         : 21890
      DURATION-eng    : 01:58:12.419000000
      NUMBER_OF_FRAMES-eng: 2664
      NUMBER_OF_BYTES-eng: 19407036
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:16(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : English (Commentary #1)
      BPS-eng         : 58036
      DURATION-eng    : 02:03:25.690000000
      NUMBER_OF_FRAMES-eng: 3896
      NUMBER_OF_BYTES-eng: 53725357
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.210000000
    Stream #0:17(fre): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : French (Commentary #1)
      BPS-eng         : 51430
      DURATION-eng    : 02:03:25.690000000
      NUMBER_OF_FRAMES-eng: 3756
      NUMBER_OF_BYTES-eng: 47610248
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.210000000
    Stream #0:18(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Spanish (Commentary #1)
      BPS-eng         : 48935
      DURATION-eng    : 02:03:25.690000000
      NUMBER_OF_FRAMES-eng: 3788
      NUMBER_OF_BYTES-eng: 45299851
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.210000000
    Stream #0:19(dut): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Dutch (Commentary #1)
      BPS-eng         : 48540
      DURATION-eng    : 02:03:25.690000000
      NUMBER_OF_FRAMES-eng: 3482
      NUMBER_OF_BYTES-eng: 44934580
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.210000000
    Stream #0:20(ger): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : German (Commentary #1)
      BPS-eng         : 49808
      DURATION-eng    : 02:03:25.690000000
      NUMBER_OF_FRAMES-eng: 3770
      NUMBER_OF_BYTES-eng: 46108398
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.210000000
    Stream #0:21(ita): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Italian (Commentary #1)
      BPS-eng         : 53146
      DURATION-eng    : 02:03:25.690000000
      NUMBER_OF_FRAMES-eng: 3738
      NUMBER_OF_BYTES-eng: 49198695
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.210000000
    Stream #0:22(jpn): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title           : Japanese (Commentary #1)
      BPS-eng         : 32986
      DURATION-eng    : 02:03:25.148000000
      NUMBER_OF_FRAMES-eng: 2512
      NUMBER_OF_BYTES-eng: 30533557
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:43.585000000
    Stream #0:23(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      title           : English (Commentary #2)
      BPS-eng         : 71373
      DURATION-eng    : 02:03:39.955000000
      NUMBER_OF_FRAMES-eng: 4118
      NUMBER_OF_BYTES-eng: 66198299
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:24(fre): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      title           : French (Commentary #2)
      BPS-eng         : 67834
      DURATION-eng    : 02:03:39.955000000
      NUMBER_OF_FRAMES-eng: 4100
      NUMBER_OF_BYTES-eng: 62916558
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:25(spa): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      title           : Spanish (Commentary #2)
      BPS-eng         : 64543
      DURATION-eng    : 02:03:39.955000000
      NUMBER_OF_FRAMES-eng: 4108
      NUMBER_OF_BYTES-eng: 59863369
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:26(dut): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      title           : Dutch (Commentary #2)
      BPS-eng         : 57570
      DURATION-eng    : 02:03:39.955000000
      NUMBER_OF_FRAMES-eng: 4044
      NUMBER_OF_BYTES-eng: 53396675
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:27(ger): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      title           : German (Commentary #2)
      BPS-eng         : 66712
      DURATION-eng    : 02:03:39.955000000
      NUMBER_OF_FRAMES-eng: 4114
      NUMBER_OF_BYTES-eng: 61875073
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:28(ita): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      title           : Italian (Commentary #2)
      BPS-eng         : 56113
      DURATION-eng    : 02:03:39.955000000
      NUMBER_OF_FRAMES-eng: 4089
      NUMBER_OF_BYTES-eng: 52044873
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:44.044000000
    Stream #0:29(jpn): Subtitle: hdmv_pgs_subtitle, 1920x1080
    Metadata:
      title           : Japanese (Commentary #2)
      BPS-eng         : 42653
      DURATION-eng    : 02:03:39.496000000
      NUMBER_OF_FRAMES-eng: 3052
      NUMBER_OF_BYTES-eng: 39558845
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      DURATION        : 02:03:43.585000000

Application version

0.14.03

Device information

AQUOS_TVE19A

Android version

Android 9, Kernel 4.9.118+

Jellyfin server version

10.8.4

mueslimak3r commented 2 years ago

Can you test setting the "preferred video player" in the app settings to libvlc and exoplayer and let us know if this happens with both or just one of them?

mike546378 commented 2 years ago

Can confirm I was having this same issue, changing to libvlc solved it. Seems like the issue is only in exoplayer - attempting to select "None" just closes the subtitles menu and either resumes playing or pauses the media depending on its previous state.

kghost commented 2 years ago

Also confirm this.

I'm not sure whether libvlc has same issue. because libvlc can not load the subtitle, it is a ass subtitle embedded inside the mkv file. When switching the subtitle using libvlc, it pop up a toast saying "Unable to load subtitle"

joshuaboniface commented 1 year ago

Interestingly I was having this same problem - subtitles stuck on, selecting "None" would do nothing - with the default option. But it was LibVLC that was broken, and manually switching to Exoplayer fixed it.

Russell-S commented 1 year ago

I can also confirm this. After some testing these are my results.

Exoplayer has the issue where you cannot turn off the subtitles. You cab choose any other subtitles and they work but you cannot select 'None'. LibVLC works as expected and you can select any subtitles as well as 'None' and they all work as expected.

Unfortunately though I cannot really use LibVLC as quite a few of my TV shows are in 4:3 format and LibVLC does not offer the stretch option to stretch the video to fill the 16:9 screen.

DJPlaya commented 1 year ago

Ime not sure if this is a different bug, but with ExoPlayer or VLC, my AndroidTV cannot change from subs to none. The app seems todo something when disabling the subs as it closes the transcoded stream, but seems to fail and revert back. This only seems happens if the video got transcoded, in my case because my TV doesn't support ASS subs. MI TV-4S(MSSP3), Jellyfin 0.15.9, Server latest stable, transcoded stream are mkv avc aac.

Edit: I can confirm the same behavior on the Shield TV Pro 2019 with Jellyfin 0.15.10. Here the audio is not supported and does get transcoded and repacked with the video.

drewoprea commented 1 year ago

I was also unable to turn off subtitles (ASS in a MKV container) while streaming from my Jellyfin 10.8.10 server to jellyfin-androidtv 0.15.10 running on a Xiaomi MiBox S.
I tried to use the [cc] menu selection during video playback, and when I would select None the video stop for a moment, then continue with subtitles. I watched this process from the web dashboard and saw that Jellyfin was transcoding the video, with the message "Reason for transcoding: The subtitle codec is not supported" When I first play the file, I get a about 4.5 seconds of "Direct playing" (Then the first line of subtitles hits, and transcoding begins.)

I was able to use the workaround described in the original report (set subtitles to Off on the individual video file, via the web interface, then play a few second of the file from the web interface so the selection "sticks") After doing this, if I use the [cc] menu selection during playback I get the "please wait while we burn in subtitles" message, followed by subtitles that I am not able to turn off.

I was also able to set LibVLC in Preferences > Playback > Preferred media player. This was the best behaved solution. Subtitles do render initially, without requiring transcoding, and subtitles can be turned off (and back on) from the [cc] menu during payback. (I'm going to use this method until it breaks something else)

Interestingly, when I play the video file in my browser (Chrome 115.0.5790.171 from the Jellyfin server web interface), the dashboard tells me "Reason for transcoding: The video codec is not supported The audio codec is not supported", so the subtitle codec appears to be supported, and the [cc] menu selection works to toggle subtitles on and off. Setting subtitles to off while the move is playing this way seems to work like the first workaround. (Selects the Off option on the individual video file info screen)

I think I found something interesting in my jellyfin.log:

I think this is me playing the file with the workaround:

[2023-08-18 00:48:36.915 -04:00] [INF] User policy for "jellyfin". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-08-18 00:48:36.916 -04:00] [INF] StreamBuilder.BuildVideoItem( Profile="AndroidTV-ExoPlayer", Path="\\192.168.1.182\video.mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/43dec9c2-ad19-016f-ec86-c33b191b0cfb/stream.mkv?MediaSourceId=43dec9c2ad19016fec86c33b191b0cfb&Static=true&VideoCodec=hevc&AudioCodec=eac3&AudioStreamIndex=1&api_key=<token>&SubtitleMethod=Encode&Tag=73486732408f1a1f40f5018f75338fac"

Then a similar line when I used the [cc] menu to turn subtitles back on:

[2023-08-18 00:49:27.638 -04:00] [INF] User policy for "jellyfin". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-08-18 00:49:27.638 -04:00] [INF] StreamBuilder.BuildVideoItem( Profile="AndroidTV-ExoPlayer", Path="\\192.168.1.182\video.mkv", AudioStreamIndex=null, SubtitleStreamIndex=2 ) => ( PlayMethod=Transcode, TranscodeReason=SubtitleCodecNotSupported ) "media:/videos/43dec9c2-ad19-016f-ec86-c33b191b0cfb/master.m3u8?MediaSourceId=43dec9c2ad19016fec86c33b191b0cfb&VideoCodec=hevc,h264,hevc&AudioCodec=eac3&AudioStreamIndex=1&SubtitleStreamIndex=2&VideoBitrate=17029795&AudioBitrate=640000&AudioSampleRate=48000&MaxFramerate=24&api_key=<token>&SubtitleMethod=Encode&RequireAvc=false&Tag=73486732408f1a1f40f5018f75338fac&SegmentContainer=ts&BreakOnNonKeyFrames=False&hevc-level=120&hevc-videobitdepth=10&hevc-profile=main10&hevc-audiochannels=6&aac-audiochannels=8&TranscodeReasons=SubtitleCodecNotSupported"

And finally, I think this is my attempt to turn subtitles off, and it not working:

[2023-08-18 00:49:54.793 -04:00] [INF] User policy for "jellyfin". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-08-18 00:49:54.793 -04:00] [INF] StreamBuilder.BuildVideoItem( Profile="AndroidTV-ExoPlayer", Path="\\192.168.1.182\video.mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=Transcode, TranscodeReason=SubtitleCodecNotSupported ) "media:/videos/43dec9c2-ad19-016f-ec86-c33b191b0cfb/master.m3u8?MediaSourceId=43dec9c2ad19016fec86c33b191b0cfb&VideoCodec=hevc,h264,hevc&AudioCodec=eac3&AudioStreamIndex=1&SubtitleStreamIndex=2&VideoBitrate=17029795&AudioBitrate=640000&AudioSampleRate=48000&MaxFramerate=24&api_key=<token>&SubtitleMethod=Encode&RequireAvc=false&Tag=73486732408f1a1f40f5018f75338fac&SegmentContainer=ts&BreakOnNonKeyFrames=False&hevc-level=120&hevc-videobitdepth=10&hevc-profile=main10&hevc-audiochannels=6&aac-audiochannels=8&TranscodeReasons=SubtitleCodecNotSupported"

I'm seeing:

  1. ... SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay ... (I read: no subtitles called for, direct play)
  2. ... SubtitleStreamIndex=2 ) => ( PlayMethod=Transcode ... (I read: subtitles called for, transcode)
  3. ... SubtitleStreamIndex=null ) => ( PlayMethod=Transcode ... (I read: no subtitles called for, transcode???)

I don't know if this is the right direction, or where to look next, but I'm quite sure I can reproduce this as needed, please let me know if more log files or testing can help.

mo-st commented 11 months ago

This issue still persits with exoplayer today, not closed.

Sectimus commented 2 weeks ago

Yes this bug is still open

No using VLC externally isn't a good enough solution, it doesn't handover your language preferences or anything.

Queue me surprised to hear Japanese Goku with no obvious way to change it with a different interface.