jellyfin / jellyfin-roku

The Official Roku Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
419 stars 128 forks source link

Choosing subtitles embedded in .mkv file crashes playback #673

Closed RelicCornhusk closed 2 years ago

RelicCornhusk commented 2 years ago

I choose from subtitles that were downloaded from Bazarr, they work just fine, but when I select one of the subtitles that came with the movie's .mkv, it gives an error and exits to the menu. Let me know what other info I should provide.

whiteowl3 commented 2 years ago

@RelicCornhusk app version and server version, please. an ffprobe of the video itself would also likely be helpful, as would server logs of the incident.

RelicCornhusk commented 2 years ago

App version: 1.4.12 Server version: 10.8.0 ffprobe:

ffprobe version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2007-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --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-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --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 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
Input #0, matroska,webm, from 'The Legend of Drunken Master (1994) (1080p BluRay x265 SAMPA).mkv':
  Metadata:
    encoder         : libebml v1.3.9 + libmatroska v1.5.2
    creation_time   : 2019-06-23T16:02:32.000000Z
    Writing frontend: StaxRip v2.0.2.0
  Duration: 01:42:18.15, start: 0.000000, bitrate: 6988 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 213.400000
      Metadata:
        title           : The Beginning
    Chapter #0:1: start 213.400000, end 451.761000
      Metadata:
        title           : Main Titles
    Chapter #0:2: start 451.761000, end 977.050000
      Metadata:
        title           : The Mix Up
    Chapter #0:3: start 977.050000, end 1027.000000
      Metadata:
        title           : Foreign Thieves
    Chapter #0:4: start 1027.542000, end 1497.580000
      Metadata:
        title           : Returning Home
    Chapter #0:5: start 1497.580000, end 1715.685000
      Metadata:
        title           : The Factory
    Chapter #0:6: start 1715.685000, end 2035.000000
      Metadata:
        title           : The Fish Market
    Chapter #0:7: start 2035.000000, end 2158.200000
      Metadata:
        title           : Relief Efforts
    Chapter #0:8: start 2158.200000, end 2746.570000
      Metadata:
        title           : Teach Them a Lesson
    Chapter #0:9: start 2746.570000, end 3235.630000
      Metadata:
        title           : Disapproval
    Chapter #0:10: start 3235.630000, end 3464.200000
      Metadata:
        title           : Sorrow
    Chapter #0:11: start 3464.200000, end 3643.800000
      Metadata:
        title           : Regret
    Chapter #0:12: start 3643.800000, end 3826.268000
      Metadata:
        title           : Master Fu Returns
    Chapter #0:13: start 3826.268000, end 4250.169000
      Metadata:
        title           : The Ax Gang
    Chapter #0:14: start 4250.169000, end 4463.380000
      Metadata:
        title           : The Consulate
    Chapter #0:15: start 4463.380000, end 4639.333000
      Metadata:
        title           : Bruised and Beaten
    Chapter #0:16: start 4639.333000, end 5025.590000
      Metadata:
        title           : Chinese Pride
    Chapter #0:17: start 5025.590000, end 5910.200000
      Metadata:
        title           : Final Showdown
    Chapter #0:18: start 5910.200000, end 5958.822000
      Metadata:
        title           : Proud Family
    Chapter #0:19: start 5958.822000, end 5990.916000
      Metadata:
        title           : Blind Boxing (Deleted Scene)
    Chapter #0:20: start 5990.916000, end 6138.131000
      Metadata:
        title           : Credits
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 1920x824, SAR 1:1 DAR 240:103, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      title           : Uncut Hong Kong Version
      BPS-eng         : 5513477
      DURATION-eng    : 01:42:18.132000000
      NUMBER_OF_FRAMES-eng: 147168
      NUMBER_OF_BYTES-eng: 4230306944
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : English (Dialogue)
      BPS-eng         : 7111
      DURATION-eng    : 01:41:27.162000000
      NUMBER_OF_FRAMES-eng: 1291
      NUMBER_OF_BYTES-eng: 5411116
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: dvd_subtitle, 1920x1080
    Metadata:
      title           : English
      BPS-eng         : 8866
      DURATION-eng    : 00:00:25.644000000
      NUMBER_OF_FRAMES-eng: 6
      NUMBER_OF_BYTES-eng: 28421
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(chi): Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      title           : New Cantonese 2.0
      BPS-eng         : 104375
      DURATION-eng    : 01:42:18.133000000
      NUMBER_OF_FRAMES-eng: 287725
      NUMBER_OF_BYTES-eng: 80084196
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(chi): Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      title           : Original Cantonese 2.0
      BPS-eng         : 103718
      DURATION-eng    : 01:42:18.133000000
      NUMBER_OF_FRAMES-eng: 287725
      NUMBER_OF_BYTES-eng: 79579966
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(chi): Audio: aac (LC), 48000 Hz, 5.1, fltp (forced)
    Metadata:
      title           : Cantonese Surround Remix 5.1
      BPS-eng         : 400179
      DURATION-eng    : 01:42:18.069000000
      NUMBER_OF_FRAMES-eng: 287722
      NUMBER_OF_BYTES-eng: 307041313
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:6(chi): Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      title           : Mandarin 2.0
      BPS-eng         : 197468
      DURATION-eng    : 01:42:18.133000000
      NUMBER_OF_FRAMES-eng: 287725
      NUMBER_OF_BYTES-eng: 151510739
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:7(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp (default) (forced)
    Metadata:
      title           : US English Dub 5.1
      BPS-eng         : 441936
      DURATION-eng    : 01:42:18.069000000
      NUMBER_OF_FRAMES-eng: 287722
      NUMBER_OF_BYTES-eng: 339079263
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:8(eng): Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      title           : Warner English Dub 2.0
      BPS-eng         : 106010
      DURATION-eng    : 01:42:18.133000000
      NUMBER_OF_FRAMES-eng: 287725
      NUMBER_OF_BYTES-eng: 81338401
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:9(chi): Audio: aac (LC), 48000 Hz, stereo, fltp
    Metadata:
      title           : Music and Sound Effects Only
      BPS-eng         : 108544
      DURATION-eng    : 01:42:18.133000000
      NUMBER_OF_FRAMES-eng: 287725
      NUMBER_OF_BYTES-eng: 83282338
      _STATISTICS_WRITING_APP-eng: mkvmerge v35.0.0 ('All The Love In The World') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-06-23 16:02:32
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:10: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 975x1204 [SAR 96:96 DAR 975:1204], 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      filename        : cover.jpg
      mimetype        : image/jpeg

Server log during incident:

[2022-07-06 11:27:10.889 -04:00] [INF] [117] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "vitor". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2022-07-06 11:27:10.917 -04:00] [INF] [117] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/data/media/movies/The Legend of Drunken Master (1994)/The Legend of Drunken Master (1994) (1080p BluRay x265 SAMPA).mkv", AudioStreamIndex=5, SubtitleStreamIndex=0 ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "media:/videos/fa44f1ab-a9ca-19c8-2db7-7a7cd79ba974/stream.mkv?MediaSourceId=fa44f1aba9ca19c82db77a7cd79ba974&Static=true&VideoCodec=hevc&AudioCodec=aac&AudioStreamIndex=5&api_key=<token>&Tag=81075ab04998996f33c20f7a131673c9"
[2022-07-06 11:27:17.959 -04:00] [WRN] [33] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Sessions/Playing" to "10.0.0.67" in 0:00:03.9491691 with Status Code 204
[2022-07-06 11:27:29.339 -04:00] [WRN] [33] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Sessions/Playing/Progress" to "10.0.0.67" in 0:00:00.5938072 with Status Code 204
[2022-07-06 11:27:30.214 -04:00] [WRN] [27] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Sessions/Playing/Progress" to "10.0.0.201" in 0:00:00.5062336 with Status Code 204
[2022-07-06 11:27:32.016 -04:00] [INF] [27] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Roku" "1.4.12" playing "The Legend of Drunken Master". Stopped at "6000" ms
[2022-07-06 11:27:32.637 -04:00] [INF] [107] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "vitor". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2022-07-06 11:27:32.695 -04:00] [INF] [107] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="/data/media/movies/The Legend of Drunken Master (1994)/The Legend of Drunken Master (1994) (1080p BluRay x265 SAMPA).mkv", AudioStreamIndex=5, SubtitleStreamIndex=4 ) => ( PlayMethod=Transcode, TranscodeReason=SubtitleCodecNotSupported ) "media:/videos/fa44f1ab-a9ca-19c8-2db7-7a7cd79ba974/master.m3u8?MediaSourceId=fa44f1aba9ca19c82db77a7cd79ba974&VideoCodec=h264,mpeg2video,h265,hevc,hevc&AudioCodec=aac&AudioStreamIndex=5&SubtitleStreamIndex=4&VideoBitrate=139895625&AudioBitrate=104375&AudioSampleRate=48000&MaxFramerate=23.976025&api_key=<token>&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=81075ab04998996f33c20f7a131673c9&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=120&hevc-videobitdepth=10&hevc-profile=main10&hevc-audiochannels=2&aac-profile=lc&h264-profile=high,main,baseline,constrainedbaseline&h264-level=51&aac-audiochannels=2&TranscodeReasons=SubtitleCodecNotSupported"
[2022-07-06 11:27:32.695 -04:00] [WRN] [27] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Sessions/Playing/Stopped" to "10.0.0.67" in 0:00:00.6806164 with Status Code 204
[2022-07-06 11:27:32.708 -04:00] [WRN] [107] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Items/fa44f1aba9ca19c82db77a7cd79ba974/PlaybackInfo?audiostreamindex=5&AutoOpenLiveStream=true&IsPlayback=true&MaxStaticBitrate=140000000&MaxStreamingBitrate=140000000&mediasourceid=fa44f1aba9ca19c82db77a7cd79ba974&StartTimeTicks=68010000&SubtitleStreamIndex=4&UserId=ad6787583d1743fbbde41c1b152598e1" to "10.0.0.67" in 0:00:00.5786499 with Status Code 200
[2022-07-06 11:27:33.134 -04:00] [INF] [33] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Roku" "1.4.12" playing "The Legend of Drunken Master". Stopped at "0" ms
[2022-07-06 11:27:33.767 -04:00] [WRN] [33] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Sessions/Playing/Stopped" to "10.0.0.67" in 0:00:00.6376476 with Status Code 204
[2022-07-06 11:27:51.025 -04:00] [WRN] [49] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Sessions/Playing/Progress" to "10.0.0.201" in 0:00:01.3083281 with Status Code 204
[2022-07-06 11:28:20.615 -04:00] [WRN] [49] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Sessions/Playing/Progress" to "10.0.0.201" in 0:00:00.8831696 with Status Code 204
[2022-07-06 11:28:40.353 -04:00] [WRN] [117] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Sessions/Playing/Progress" to "10.0.0.201" in 0:00:00.6150776 with Status Code 204
[2022-07-06 11:30:01.330 -04:00] [WRN] [65] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://10.0.0.240:8096/Sessions/Playing/Progress" to "10.0.0.201" in 0:00:01.567121 with Status Code 204

From having a look at the logs it appears that the subtitle codec is not supported and it cannot transcode. Is there anything that can be done? Is this a limitation because of my laptop that does not support these files, my laptop/server or the jellyfin roku app?

whiteowl3 commented 2 years ago

679

This is primarily a limitation of the Roku's incomplete subtitle profiles, but a dvdsub will always require transcoding to the roku, so your experience will be dependent on the transcoding performance of your server.

RelicCornhusk commented 2 years ago

Thanks for the reply @whiteowl3 ! Quick question, if I wanted to have a better transcoding experience, what upgrade in specs would my server need? better graphics card? I'm using a decent laptop as a server at the moment.

whiteowl3 commented 2 years ago

the discord channel would be a better and more appropriate place to ask this question. https://discord.gg/RYQb2qjFUg