Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player crash on start of long movies #2060

Open
mjmclaughlin92 opened this issue Nov 23, 2024 · 5 comments
Open

Player crash on start of long movies #2060

mjmclaughlin92 opened this issue Nov 23, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@mjmclaughlin92
Copy link

mjmclaughlin92 commented Nov 23, 2024

Software Versions

  • Jellyfin Server Version: 10.10.3 (M4 Mac Mini)
  • Roku Client Version: 2.2.5 (3820X2 Streaming Stick 4k, 4800X Ultra - Roku OS 14.0)

Describe the bug

Thanks so much for everything you all do, you make Jellyfin so much fun to use! And sorry if this is a funky one! When attempting to play certain long movies, the Roku video player pops up for a second and then crashes back to the Jellyfin client - it looks like an error message shows for a split second but I'm too slow to read it! Oh and I'm not totally sure, but it seems like a similar situation to #2048 (even one of the same movies I think!) but without the AC3 audio aspect I think!

It happens every time on the 4 longest movies I have, the shortest being 3h16m and the longest 4h23m - and seems unrelated to ie. codec/filesize. I haven't been able to reproduce it on any movie shorter than those 4, with the longest movie playing successfully being 3h10m.

In the Roku client I have the bitrate limit set to 10mbps to kick off transcoding, and haven't had any luck with ie. disabling/enabling the codec profile compatibility settings or trying different requested audio codecs or anything like that. I've tried to play the videos on a Streaming Stick 4k and an Ultra and get the same behavior on both - it looks like the videos play with the Roku Media Player via the DLNA plugin and direct play/transcode successfully on other devices though, so hopefully there's not an issue with the files themselves!

Oh and I'm not sure if this could be related, but I have trickplay files created for those 4 movies - I tried deleting the trickplay files for one of them and retrying but it looks like it still crashed on start if that could maybe be related at all!

Thanks so much again, and definitely let me know if there's any other info I can provide or anything!

How To Reproduce

  1. Go to Movie library
  2. Try to play a movie longer than 3h16m
  3. Roku video player pops up for a second and then crashes back to Jellyfin client

Expected behavior

  1. Roku video player should successfully request a transcode and play the movie

Logs

Server Logs - I think this is the only thing I can see that pops up when attempting to play (no FFmpeg logs or anything - player seems to crash before a transcode is requested) - definitely let me know if there's anything else I can provide though!

[2024-11-23 12:10:55.436 -05:00] [INF] [119] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "***". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-11-23 12:10:56.306 -05:00] [INF] [105] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "***". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-11-23 12:10:56.910 -05:00] [INF] [138] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Jellyfin Roku" "2.2.5" playing "The Lord of the Rings: The Return of the King". Stopped at "0" ms

Device Logs
Wasn't able to see any output on any of the Roku debug ports - it seems like it's the Roku video player crashing as opposed to the Jellyfin app I think!

FFmpeg Logs
None created - player seems to crash before transcode requested/kicks off

Example File 1

Input #0, matroska,webm, from 'file:/Media Libraries/Movies/The Lord of the Rings - The Return of the King (2003)/The Lord of the Rings - The Return of the King (2003).mkv':
  Metadata:
    title           : The Lord of the Rings: The Return of the King
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    creation_time   : 2021-10-16T01:41:15.000000Z
  Duration: 04:23:17.70, start: 0.000000, bitrate: 68652 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 384.300583
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 384.300583, end 561.227333
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 561.227333, end 681.430750
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 681.430750, end 1103.268833
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1103.268833, end 1384.966917
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1384.966917, end 1623.288333
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1623.288333, end 1740.655583
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 1740.655583, end 2226.265708
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2226.265708, end 2402.400000
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2402.400000, end 2522.353167
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2522.353167, end 2872.160958
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 2872.160958, end 3018.265250
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3018.265250, end 3138.468667
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3138.468667, end 3335.290292
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 3335.290292, end 3576.364458
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 3576.364458, end 3623.661708
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 3623.661708, end 3650.355042
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 3650.355042, end 3870.074542
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 3870.074542, end 4035.823458
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 4035.823458, end 4234.939042
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 4234.939042, end 4494.573417
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 4494.573417, end 4641.928958
      Metadata:
        title           : Chapter 22
    Chapter #0:22: start 4641.928958, end 4761.590167
      Metadata:
        title           : Chapter 23
    Chapter #0:23: start 4761.590167, end 4800.879417
      Metadata:
        title           : Chapter 24
    Chapter #0:24: start 4800.879417, end 4886.756875
      Metadata:
        title           : Chapter 25
    Chapter #0:25: start 4886.756875, end 5028.898875
      Metadata:
        title           : Chapter 26
    Chapter #0:26: start 5028.898875, end 5347.467125
      Metadata:
        title           : Chapter 27
    Chapter #0:27: start 5347.467125, end 5637.256625
      Metadata:
        title           : Chapter 28
    Chapter #0:28: start 5637.256625, end 5887.840292
      Metadata:
        title           : Chapter 29
    Chapter #0:29: start 5887.840292, end 6169.288125
      Metadata:
        title           : Chapter 30
    Chapter #0:30: start 6169.288125, end 6334.202875
      Metadata:
        title           : Chapter 31
    Chapter #0:31: start 6334.202875, end 6417.244167
      Metadata:
        title           : Chapter 32
    Chapter #0:32: start 6417.244167, end 6564.057500
      Metadata:
        title           : Chapter 33
    Chapter #0:33: start 6564.057500, end 6669.746417
      Metadata:
        title           : Chapter 34
    Chapter #0:34: start 6669.746417, end 7119.403958
      Metadata:
        title           : Chapter 35
    Chapter #0:35: start 7119.403958, end 7660.235917
      Metadata:
        title           : Chapter 36
    Chapter #0:36: start 7660.237000, end 7723.717083
      Metadata:
        title           : Chapter 01
    Chapter #0:37: start 7723.717083, end 8271.347500
      Metadata:
        title           : Chapter 02
    Chapter #0:38: start 8271.347500, end 8381.457500
      Metadata:
        title           : Chapter 03
    Chapter #0:39: start 8381.457500, end 8417.868875
      Metadata:
        title           : Chapter 04
    Chapter #0:40: start 8417.868875, end 8511.295542
      Metadata:
        title           : Chapter 05
    Chapter #0:41: start 8511.295542, end 8578.320833
      Metadata:
        title           : Chapter 06
    Chapter #0:42: start 8578.320833, end 8940.182333
      Metadata:
        title           : Chapter 07
    Chapter #0:43: start 8940.182333, end 9005.539292
      Metadata:
        title           : Chapter 08
    Chapter #0:44: start 9005.539292, end 9150.559167
      Metadata:
        title           : Chapter 09
    Chapter #0:45: start 9150.559167, end 9404.604625
      Metadata:
        title           : Chapter 10
    Chapter #0:46: start 9404.604625, end 9532.065292
      Metadata:
        title           : Chapter 11
    Chapter #0:47: start 9532.065292, end 9827.235167
      Metadata:
        title           : Chapter 12
    Chapter #0:48: start 9827.235167, end 9917.658833
      Metadata:
        title           : Chapter 13
    Chapter #0:49: start 9917.658833, end 10023.806542
      Metadata:
        title           : Chapter 14
    Chapter #0:50: start 10023.806542, end 10076.400750
      Metadata:
        title           : Chapter 15
    Chapter #0:51: start 10076.400750, end 10120.653292
      Metadata:
        title           : Chapter 16
    Chapter #0:52: start 10120.653292, end 10276.350500
      Metadata:
        title           : Chapter 17
    Chapter #0:53: start 10276.350500, end 10398.931292
      Metadata:
        title           : Chapter 18
    Chapter #0:54: start 10398.931292, end 10465.998292
      Metadata:
        title           : Chapter 19
    Chapter #0:55: start 10465.998292, end 10601.967458
      Metadata:
        title           : Chapter 20
    Chapter #0:56: start 10601.967458, end 10654.061167
      Metadata:
        title           : Chapter 21
    Chapter #0:57: start 10654.061167, end 11069.601292
      Metadata:
        title           : Chapter 22
    Chapter #0:58: start 11069.601292, end 11172.328917
      Metadata:
        title           : Chapter 23
    Chapter #0:59: start 11172.328917, end 11261.125958
      Metadata:
        title           : Chapter 24
    Chapter #0:60: start 11261.125958, end 11311.342792
      Metadata:
        title           : Chapter 25
    Chapter #0:61: start 11311.342792, end 11533.022583
      Metadata:
        title           : Chapter 26
    Chapter #0:62: start 11533.022583, end 11784.648958
      Metadata:
        title           : Chapter 27
    Chapter #0:63: start 11784.648958, end 11980.386167
      Metadata:
        title           : Chapter 28
    Chapter #0:64: start 11980.386167, end 12194.308208
      Metadata:
        title           : Chapter 29
    Chapter #0:65: start 12194.308208, end 12327.524625
      Metadata:
        title           : Chapter 30
    Chapter #0:66: start 12327.524625, end 12389.878583
      Metadata:
        title           : Chapter 31
    Chapter #0:67: start 12389.878583, end 12506.328250
      Metadata:
        title           : Chapter 32
    Chapter #0:68: start 12506.328250, end 12540.153708
      Metadata:
        title           : Chapter 33
    Chapter #0:69: start 12540.153708, end 12878.908792
      Metadata:
        title           : Chapter 34
    Chapter #0:70: start 12878.908792, end 13012.292042
      Metadata:
        title           : Chapter 35
    Chapter #0:71: start 13012.292042, end 13221.667875
      Metadata:
        title           : Chapter 36
    Chapter #0:72: start 13221.667875, end 13364.727458
      Metadata:
        title           : Chapter 37
    Chapter #0:73: start 13364.727458, end 13657.394833
      Metadata:
        title           : Chapter 38
    Chapter #0:74: start 13657.394833, end 13939.343167
      Metadata:
        title           : Chapter 39
    Chapter #0:75: start 13939.343167, end 14498.318250
      Metadata:
        title           : Chapter 40
    Chapter #0:76: start 14498.318250, end 15165.484750
      Metadata:
        title           : Chapter 41
    Chapter #0:77: start 15165.484750, end 15797.699667
      Metadata:
        title           : Chapter 42
  Stream #0:0(eng): Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn
      Metadata:
        BPS             : 65604675
        DURATION        : 04:23:17.700000000
        NUMBER_OF_FRAMES: 378766
        NUMBER_OF_BYTES : 129550372968
        _STATISTICS_WRITING_APP: mkvmerge v62.0.0 ('Apollo') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2021-10-16 01:41:15
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Side data:
        DOVI configuration record: version: 1.0, profile: 7, level: 6, rpu flag: 1, el flag: 1, bl flag: 1, compatibility id: 6
  Stream #0:1(eng): Audio: truehd (Dolby TrueHD + Dolby Atmos), 48000 Hz, 7.1, s32 (24 bit) (default)
      Metadata:
        title           : Surround 7.1
        BPS             : 2970504
        DURATION        : 04:23:17.700000000
        NUMBER_OF_FRAMES: 18957240
        NUMBER_OF_BYTES : 5865892132
        _STATISTICS_WRITING_APP: mkvmerge v62.0.0 ('Apollo') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2021-10-16 01:41:15
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle (pgssub), 1920x1080 (default)
      Metadata:
        BPS             : 18786
        DURATION        : 04:05:58.141000000
        NUMBER_OF_FRAMES: 4340
        NUMBER_OF_BYTES : 34655870
        _STATISTICS_WRITING_APP: mkvmerge v62.0.0 ('Apollo') 64-bit
        _STATISTICS_WRITING_DATE_UTC: 2021-10-16 01:41:15
        _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Example File 2

Input #0, matroska,webm, from 'file:/Media Libraries/Movies/Troy (2004)/Troy (2004).mkv':
  Metadata:
    encoder         : libmakemkv v1.17.6 (1.3.10/1.5.2) win(x64-release)
    creation_time   : 2024-08-01T22:37:10.000000Z
  Duration: 03:16:02.80, start: 0.000000, bitrate: 16425 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 89.839750
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 89.839750, end 496.245750
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 496.245750, end 666.165500
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 666.165500, end 1101.850750
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 1101.850750, end 1533.365167
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1533.365167, end 1661.159500
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1661.159500, end 2003.001000
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 2003.001000, end 2199.822625
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 2199.822625, end 2401.232167
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 2401.232167, end 2689.937250
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2689.937250, end 3151.982167
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 3151.982167, end 3479.809667
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 3479.809667, end 3828.658167
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 3828.658167, end 4061.057000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 4061.057000, end 4356.018333
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 4356.018333, end 4675.671000
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 4675.671000, end 4891.469917
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 4891.469917, end 5035.739042
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 5035.739042, end 5329.282292
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 5329.282292, end 5543.204333
      Metadata:
        title           : Chapter 20
    Chapter #0:20: start 5543.204333, end 5818.103958
      Metadata:
        title           : Chapter 21
    Chapter #0:21: start 5818.103958, end 6098.926167
      Metadata:
        title           : Chapter 22
    Chapter #0:22: start 6098.926167, end 6296.832208
      Metadata:
        title           : Chapter 23
    Chapter #0:23: start 6296.832208, end 6495.280458
      Metadata:
        title           : Chapter 24
    Chapter #0:24: start 6495.280458, end 6860.562042
      Metadata:
        title           : Chapter 25
    Chapter #0:25: start 6860.562042, end 7045.705333
      Metadata:
        title           : Chapter 26
    Chapter #0:26: start 7045.705333, end 7205.364833
      Metadata:
        title           : Chapter 27
    Chapter #0:27: start 7205.364833, end 7426.919500
      Metadata:
        title           : Chapter 28
    Chapter #0:28: start 7426.919500, end 7720.045667
      Metadata:
        title           : Chapter 29
    Chapter #0:29: start 7720.045667, end 7842.584750
      Metadata:
        title           : Chapter 30
    Chapter #0:30: start 7842.584750, end 8110.352250
      Metadata:
        title           : Chapter 31
    Chapter #0:31: start 8110.352250, end 8447.647542
      Metadata:
        title           : Chapter 32
    Chapter #0:32: start 8447.647542, end 8588.079500
      Metadata:
        title           : Chapter 33
    Chapter #0:33: start 8588.079500, end 8784.942833
      Metadata:
        title           : Chapter 34
    Chapter #0:34: start 8784.942833, end 8909.400500
      Metadata:
        title           : Chapter 35
    Chapter #0:35: start 8909.400500, end 9288.445833
      Metadata:
        title           : Chapter 36
    Chapter #0:36: start 9288.445833, end 9448.814375
      Metadata:
        title           : Chapter 37
    Chapter #0:37: start 9448.814375, end 9680.045375
      Metadata:
        title           : Chapter 38
    Chapter #0:38: start 9680.045375, end 9940.513917
      Metadata:
        title           : Chapter 39
    Chapter #0:39: start 9940.513917, end 10269.425833
      Metadata:
        title           : Chapter 40
    Chapter #0:40: start 10269.425833, end 10538.861667
      Metadata:
        title           : Chapter 41
    Chapter #0:41: start 10538.861667, end 10722.670292
      Metadata:
        title           : Chapter 42
    Chapter #0:42: start 10722.670292, end 10944.183250
      Metadata:
        title           : Chapter 43
    Chapter #0:43: start 10944.183250, end 11112.518083
      Metadata:
        title           : Chapter 44
    Chapter #0:44: start 11112.518083, end 11762.795000
      Metadata:
        title           : Chapter 45
  Stream #0:0(eng): Video: vc1 (Advanced) (WVC1 / 0x31435657), yuv420p(bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn
      Metadata:
        BPS-eng         : 11775275
        DURATION-eng    : 03:16:02.792708333
        NUMBER_OF_FRAMES-eng: 282025
        NUMBER_OF_BYTES-eng: 17313764731
        SOURCE_ID-eng   : 001011
        _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.6 win(x64-release)
        _STATISTICS_WRITING_DATE_UTC-eng: 2024-08-01 22:37:10
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:1(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 5.1(side), s16, 4608 kb/s (default)
      Metadata:
        title           : Surround 5.1
        BPS-eng         : 4608000
        DURATION-eng    : 03:16:02.795000000
        NUMBER_OF_FRAMES-eng: 352884
        NUMBER_OF_BYTES-eng: 6775369920
        SOURCE_ID-eng   : 001103
        _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.6 win(x64-release)
        _STATISTICS_WRITING_DATE_UTC-eng: 2024-08-01 22:37:10
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle (pgssub), 1920x1080 (default)
      Metadata:
        BPS-eng         : 18075
        DURATION-eng    : 03:13:05.845104166
        NUMBER_OF_FRAMES-eng: 2754
        NUMBER_OF_BYTES-eng: 26178182
        SOURCE_ID-eng   : 001200
        _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.6 win(x64-release)
        _STATISTICS_WRITING_DATE_UTC-eng: 2024-08-01 22:37:10
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
  Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle (pgssub), 1920x1080
      Metadata:
        BPS-eng         : 20319
        DURATION-eng    : 03:14:26.300479166
        NUMBER_OF_FRAMES-eng: 3142
        NUMBER_OF_BYTES-eng: 29631910
        SOURCE_ID-eng   : 001201
        _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.6 win(x64-release)
        _STATISTICS_WRITING_DATE_UTC-eng: 2024-08-01 22:37:10
        _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID

Connection Information

  • Is server local or remote? Local
  • Is server connection HTTP or HTTPS? HTTPS via caddy

Thanks so much again for everything you all do, and definitely let me know if there's anything I can do or any other info I can try to send on over or anything!

@mjmclaughlin92 mjmclaughlin92 added the bug Something isn't working label Nov 23, 2024
@mjmclaughlin92
Copy link
Author

Oh my bad - I totally missed the instructions on how to use the debug tools! I tried to do some playing around with those and it looks like this is the error message that comes back on the player crash:

-3 An unexpected problem (but not server timeout or HTTP error) has been detected. exception:mpr playlist file is too large.:extra:etype:buffer -3     
<Component: roAssociativeArray> =
{
    category: "mediaplayer"
    clipid: 1
    dbgmsg: "exception:mpr playlist file is too large.:extra:etype:buffer"
    drmerrcode: 0
    errcode: 0
    ignored: false
    source: "buffer:search:"
}

I'll see if I can do some more digging on that! Thanks so much again!

@mjmclaughlin92
Copy link
Author

mjmclaughlin92 commented Nov 25, 2024

Sorry - not sure if this is helpful at all! It looks like the HLS playlist url that gets sent to the video player (m.top.content.url) has a pretty big main.m3u8 (about 4.6MB I think!) with most of the size coming from each .ts segment in the playlist having a copy of the URL query parameters from the content url (ie. DeviceProfileId, MediaSourceId, TranscodeReasons, etc. - added here I think!), and with the large number of segments for longer files (ie. 4566 segments for one of the test files) it looks like that leads to a pretty big playlist file size if that could maybe be a reason for that "mpr playlist file is too large." message! Here's one of the playlist segment lines with just some of the parameter values replaced!

hls1/main/0.ts?DeviceProfileId={DeviceProfileId}&DeviceId={DeviceId}&MediaSourceId={MediaSourceId}&VideoCodec=hevc,h264&AudioCodec=aac,eac3,ac3,mp3&AudioStreamIndex=1&SubtitleStreamIndex=2&VideoBitrate=139360000&AudioBitrate=640000&MaxFramerate=23.976025&PlaySessionId={PlaySessionId}&api_key={api_key}&SubtitleMethod=Encode&TranscodingMaxAudioChannels=8&RequireAvc=false&EnableAudioVbrEncoding=true&Tag={tag}&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=False&hevc-level=153&hevc-videobitdepth=10&hevc-profile=main10&hevc-rangetype=SDR,DOVI,DOVIWithSDR,HDR10,DOVIWithHDR10,HLG,DOVIWithHLG&h264-profile=high,main&h264-rangetype=SDR,DOVI,DOVIWithSDR&h264-level=42&eac3-audiochannels=8&ac3-audiochannels=6&mp3-audiochannels=2&aac-audiochannels=6&TranscodeReasons=AudioCodecNotSupported,%20SubtitleCodecNotSupported&runtimeTicks=0&actualSegmentLengthTicks=30000000

Oh it looks like it might be similar to this forum post if that could maybe be related at all!

Thanks so much again, and definitely let me know if there's anything else I can try to send on over or anything!

@cewert
Copy link
Member

cewert commented Nov 25, 2024

I wonder if the error is hitting a file size limit or a memory limit. If it's a memory limit maybe we could download this file to temp storage first?

hls1/main/0.ts?DeviceProfileId={DeviceProfileId}&DeviceId={DeviceId}&MediaSourceId={MediaSourceId}&VideoCodec=hevc,h264&AudioCodec=aac,eac3,ac3,mp3&AudioStreamIndex=1&SubtitleStreamIndex=2&VideoBitrate=139360000&AudioBitrate=640000&MaxFramerate=23.976025&PlaySessionId={PlaySessionId}&api_key={api_key}&SubtitleMethod=Encode&TranscodingMaxAudioChannels=8&RequireAvc=false&EnableAudioVbrEncoding=true&Tag={tag}&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=False&hevc-level=153&hevc-videobitdepth=10&hevc-profile=main10&hevc-rangetype=SDR,DOVI,DOVIWithSDR,HDR10,DOVIWithHDR10,HLG,DOVIWithHLG&h264-profile=high,main&h264-rangetype=SDR,DOVI,DOVIWithSDR&h264-level=42&eac3-audiochannels=8&ac3-audiochannels=6&mp3-audiochannels=2&aac-audiochannels=6&TranscodeReasons=AudioCodecNotSupported,%20SubtitleCodecNotSupported&runtimeTicks=0&actualSegmentLengthTicks=30000000

I'm assuming this url is generated based on the device profile we send the server which means we could remove unneeded params by cleaning up the device profile but I would need to test to be sure.

VideoCodec=hevc,h264

We should know if the device supports hevc or not by now (canPlay4K = hevc supported). That would eliminate half of this string and seems like the best place to start: hevc-level=153&hevc-videobitdepth=10&hevc-profile=main10&hevc-rangetype=SDR,DOVI,DOVIWithSDR,HDR10,DOVIWithHDR10,HLG,DOVIWithHLG&h264-profile=high,main&h264-rangetype=SDR,DOVI,DOVIWithSDR&h264-level=42

Could also clean up AudioCodec if we need to save more space

@mjmclaughlin92
Copy link
Author

Thanks so much for taking a look at this! Definitely let me know if there's any testing or anything I can try and help out with! And sorry for all the comments - time off before Thanksgiving hahah!

Thanks so much again for everything!

@jgwehr
Copy link

jgwehr commented Nov 26, 2024

I'm having a similar experience (similar movie, one of the same Rokus, user experience, and lack of ffmpeg logs).

Jellyfin Server Version: 10.10.3 (Docker; i3-12100)
Roku Client Version: 2.2.5 (3820X Streaming Stick 4k)
Transcoding fails on both on VAAPI and QSV

Also willing to help after Thanksgiving! If getting those logs from the Roku is as simple as this, I'll try in about a week

Video
Not sure how to get the export above, but I count 48 chapters and 3:07:49 runtime.

Title: 4K HEVC Dolby Vision Profile 8.6 (HDR10)
Codec: HEVC
Profile: Main 10
Level: 153
Resolution: 3840x1608
Aspect ratio: 2.40:1
Interlaced: No
Framerate: 23.976025
Bitrate: 19432 kbps
Bit depth: 10 bit
Video range: HDR
Video range type: DOVIWithHDR10
DV title: Dolby Vision Profile 8.6 (HDR10)
DV version major: 1
DV version minor: 0
DV profile: 8
DV level: 6
DV rpu preset flag: 1
DV el preset flag: 1
DV bl preset flag: 1
DV bl signal compatibility id: 6
Color space: bt2020nc
Color transfer: smpte2084
Color primaries: bt2020
Pixel format: yuv420p10le
Ref frames: 1

Audio


Audio
Title: EAC3 7.1 - English - Dolby Digital+ - Default
Language: eng
Codec: EAC3
Layout: 7.1
Channels: 8 ch
Bitrate: 1024 kbps
Sample rate: 48000 Hz
Default: Yes
Forced: No
External: No

Two other movies with the same encoding, but shorter, work fine:

  • 0 chapters and 2:27:37 runtime
  • 21 chapters and 2:11:51 runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants