7 hours ago
(This post was last modified: 7 hours ago by QuarkSolution. Edited 1 time in total.)
So, I am at my wit's end. I cannot, for the life of me, figure out what's happening.
There's this one TV show that hangs Jellyfin during playback. For every other media that I have, Jellyfin works flawlessly (be it HDR10, DV, 4k, 1080p, SD, HEVC, AV1, super high bitrate H.264 media from my drone, everything else works).
For that specific show in question, whenever I start playback, Jellyfin's CPU usage goes through the roof (RAM usage too), even though the playback starts as direct play. About 5 second after the playback starts, the Playback Info modal in the playback client gets refreshed, and the playback method is shown to be "null". Jellyfin becomes extremely laggy (and eventually unresponsive), and the dashboard (and Jellystat) shows that there are no active playbacks.
At this point, if I restart my Jellyfin container (Linuxserver version), the Playback Info modal gets refreshed again, and shows the playback method to be direct play, Jellyfin becomes responsive, and the dashboard (and Jellystat) starts showing the active playback. This works until a new episode is played, when the problem resurfaces.
The logs show nothing. As in, literally nothing. There's no mention that any playback started for that specific TV show for newly started playbacks. Every other media is logged whenever a playback is started and stopped, but for that one specific TV show, nothing is logged, and a newly started playback always hangs the server. When I restart the server with an already active playback of that TV show in a client, the logs show what is expected, the active playback is logged normally, and when the episode is completed, Jellyfin logs playback stopped. But when a new episode is started, the same problem resurfaces, no logs, and the server hangs.
This TV show plays fine on Emby, which is my backup media server. And it plays fine on VLC via an SMB mount.
This is the MediaInfo output for an episode of the TV show that hung the server:
There's this one TV show that hangs Jellyfin during playback. For every other media that I have, Jellyfin works flawlessly (be it HDR10, DV, 4k, 1080p, SD, HEVC, AV1, super high bitrate H.264 media from my drone, everything else works).
For that specific show in question, whenever I start playback, Jellyfin's CPU usage goes through the roof (RAM usage too), even though the playback starts as direct play. About 5 second after the playback starts, the Playback Info modal in the playback client gets refreshed, and the playback method is shown to be "null". Jellyfin becomes extremely laggy (and eventually unresponsive), and the dashboard (and Jellystat) shows that there are no active playbacks.
At this point, if I restart my Jellyfin container (Linuxserver version), the Playback Info modal gets refreshed again, and shows the playback method to be direct play, Jellyfin becomes responsive, and the dashboard (and Jellystat) starts showing the active playback. This works until a new episode is played, when the problem resurfaces.
The logs show nothing. As in, literally nothing. There's no mention that any playback started for that specific TV show for newly started playbacks. Every other media is logged whenever a playback is started and stopped, but for that one specific TV show, nothing is logged, and a newly started playback always hangs the server. When I restart the server with an already active playback of that TV show in a client, the logs show what is expected, the active playback is logged normally, and when the episode is completed, Jellyfin logs playback stopped. But when a new episode is started, the same problem resurfaces, no logs, and the server hangs.
This TV show plays fine on Emby, which is my backup media server. And it plays fine on VLC via an SMB mount.
This is the MediaInfo output for an episode of the TV show that hung the server:
General
Unique ID : 159473147278258447040322751687959139258 (0x77F96935203D05365BF10512127653BA)
Complete name : /run/user/1000/doc/46eb51f2/S08E15 - Go Tina on the Mountain.mkv
Format : Matroska
Format version : Version 4
File size : 263 MiB
Duration : 21 min 37 s
Overall bit rate : 1 698 kb/s
Frame rate : 23.976 FPS
Encoded date : 2021-10-16 20:53:01 UTC
Writing application : mkvmerge v61.0.0 ('So') 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L4@Main
Codec ID : V_MPEGH/ISO/HEVC
Duration : 21 min 37 s
Bit rate : 1 438 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.029
Stream size : 222 MiB (85%)
Title : Encoded by: ImEverlasting
Writing library : x265 3.5+9-bf91444e0:[Windows][GCC 10.2.0][64 bit] 10bit
Encoding settings : cpuid=1111039 / frame-threads=4 / numa-pools=+ / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=1440 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=5 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-eob / no-eos / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=24 / keyint=240 / gop-lookahead=0 / bframes=8 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=30 / lookahead-slices=0 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=32 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=5 / merange=25 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / no-sao / no-sao-non-deblock / rd=5 / selective-sao=0 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=22.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=1 / transfer=1 / colormatrix=1 / chromaloc=0 / display-window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist-threshold=0.03 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / scenecut-aware-qp=0conformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Duration : 21 min 37 s
Bit rate mode : Constant
Bit rate : 256 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 39.6 MiB (15%)
Title : English
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Dialog Normalization : -24 dB
compr : -0.28 dB
mixlevel : 105 dB
roomtyp : Small
ltrtcmixlev : 3.0 dB
ltrtsurmixlev : -3.0 dB
lorocmixlev : 3.0 dB
lorosurmixlev : -3.0 dB
dialnorm_Average : -24 dB
dialnorm_Minimum : -24 dB
dialnorm_Maximum : -24 dB
Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 32 s
Bit rate : 128 b/s
Frame rate : 0.425 FPS
Count of elements : 550
Stream size : 20.3 KiB (0%)
Title : English (SDH)
Language : English
Default : No
Forced : No
Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 29 s
Bit rate : 78 b/s
Frame rate : 0.295 FPS
Count of elements : 380
Stream size : 12.4 KiB (0%)
Title : Dansk
Language : Danish
Default : No
Forced : No
Text #3
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 28 s
Bit rate : 109 b/s
Frame rate : 0.406 FPS
Count of elements : 523
Stream size : 17.2 KiB (0%)
Title : Deutsch
Language : German
Default : No
Forced : No
Text #4
ID : 6
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 28 s
Bit rate : 110 b/s
Frame rate : 0.407 FPS
Count of elements : 524
Stream size : 17.4 KiB (0%)
Title : Español (Latinoamérica)
Language : Spanish
Default : No
Forced : No
Text #5
ID : 7
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 20 min 39 s
Bit rate : 123 b/s
Frame rate : 0.344 FPS
Count of elements : 426
Stream size : 18.7 KiB (0%)
Title : Español
Language : Spanish
Default : No
Forced : No
Text #6
ID : 8
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 16 s
Bit rate : 96 b/s
Frame rate : 0.313 FPS
Count of elements : 400
Stream size : 15.1 KiB (0%)
Title : Suomi
Language : Finnish
Default : No
Forced : No
Text #7
ID : 9
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 16 s
Bit rate : 108 b/s
Frame rate : 0.341 FPS
Count of elements : 435
Stream size : 16.9 KiB (0%)
Title : Français
Language : French
Default : No
Forced : No
Text #8
ID : 10
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 25 s
Bit rate : 92 b/s
Frame rate : 0.300 FPS
Count of elements : 386
Stream size : 14.6 KiB (0%)
Title : Norsk Bokmål
Default : No
Forced : No
Text #9
ID : 11
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 28 s
Bit rate : 98 b/s
Frame rate : 0.319 FPS
Count of elements : 411
Stream size : 15.5 KiB (0%)
Title : Nederlands
Language : Dutch
Default : No
Forced : No
Text #10
ID : 12
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 28 s
Bit rate : 107 b/s
Frame rate : 0.386 FPS
Count of elements : 497
Stream size : 17.0 KiB (0%)
Title : Português (Brasil)
Language : Portuguese
Default : No
Forced : No
Text #11
ID : 13
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 21 min 16 s
Bit rate : 91 b/s
Frame rate : 0.298 FPS
Count of elements : 380
Stream size : 14.3 KiB (0%)
Title : Svenska
Language : Swedish
Default : No
Forced : No
Menu
00:00:00.000 : en:Title Sequence
00:00:20.000 : en
cene 2
00:07:25.000 : en
cene 3
00:14:25.000 : en
cene 4
00:21:02.000 : en:End Credits