EDIT: see latest post, bug has to do with Direct Streaming video while transcoding audio from DDP (EAC3), when transcoding both, or direct streaming both, no issue, bug is only when video is direct streamed and audio is transcoded.
Server Version#: 1.32.5.7349
Player Version#: 5.67.2
Server info: Headless Ubuntu with i5 8500 using iGPU for transcoding. Its a 6 core CPU with 48GB of RAM. During all this CPU is barely using 1 of the 6 cores, and only about 1.5GB of 48GB of RAM is being used.
Issue: This is 100% reproducible. Happens every single time. Trying to watch 4K HDR movie on the Plex app on LG TV and after playing fine for about a minute it pauses, and does the spin circle thing, server says its buffering, but even when it errors out on the TV the server bandwidth stays high (160Megabit, which is completely saturated pipe). More than 160 times higher than it should be (transoding of Audio should result in ~1Mebabit audio stream but instead its 160 Megabit+). Audio and Video together are about 7 Megabit… yet server is using 160Megabit and i think it would use more if pipe allowed for it.
Video is direct stream, audio is being transcoded.
I think the issue is specifically with transcoding Atmos 5.1 to AAC 5.1 (see mediainfo below). Video portion that is Direct Streaming seems to be without issue.
Here is file info:
Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@Main
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 2 h 20 min
Bit rate : 6 043 kb/s
Width : 3 840 pixels
Height : 1 600 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0 (Type 2)
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.041
Stream size : 5.91 GiB (87%)
Writing library : x265 3.5+1-f0c1022b6:[Windows][GCC 10.2.0][64 bit] 10bit
Encoding settings : cpuid=1111039 / frame-threads=4 / numa-pools=24 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x1600 / interlace=0 / total-frames=0 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=3 / no-allow-non-conformance / 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=4 / b-adapt=0 / b-pyramid / bframe-bias=0 / rc-lookahead=15 / lookahead-slices=8 / scenecut=40 / no-hist-scenecut / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=2 / limit-refs=3 / no-limit-modes / me=1 / subme=2 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=2 / selective-sao=4 / no-early-skip / rskip / fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=21.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=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,50) / cll=1759,202 / 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 / no-opt-cu-delta-qp / no-aq-motion / no-sbrc / hdr10 / 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 / no-mcstf
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color pri : BT.2020
Mastering display luminance : min: 0.0050 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1759
MaxCLL_Original : 1759 cd/m2
Maximum Frame-Average Light : 202
MaxFALL_Original : 202 cd/m2
Audio
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : A_EAC3
Duration : 2 h 20 min
Bit rate mode : Constant
Bit rate : 768 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 : 770 MiB (11%)
Title : BTM
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Complexity index : 16
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE
Text
ID : 3
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Duration : 2 h 17 min
Compression mode : Lossless
Language : English
Default : No
Forced : No
Playing other 4K HDR content that is actually encoded at much higher bitrate works fine, and network speeds are where I expect them to be (at what video is encded at)
* Codec HEVC
* Bitrate 10920 kbps
* Bit Depth 10
* Chroma Location left
* Chroma Subsampling 4:2:0
* Coded Height 2160
* Coded Width 3840
* Color Primaries bt2020
* Color Range tv
* Color Space bt2020nc
* Color Trc smpte2084
* Frame Rate 25 fps
* Height 2160
* Level 5.0
* Profile main 10
* Ref Frames 1
* Title HEVC x265 10bit BT2020 HDR Video / 12000 kbps / 2160p / 23.976 fps / Main 10 Profile 4
* Width 3840
* Display Title 4K HDR10 (HEVC Main 10)
* Extended Display Title HEVC x265 10bit BT2020 HDR Video / 12000 kbps / 2160p / 23.976 fps / Main 10 Profile 4
* Codec AAC
* Channels 6
* Bitrate 464 kbps
* Language English
* Language Tag en
* Audio Channel Layout 5.1
* Profile lc
* Sampling Rate 48000 Hz
* Title LC-AAC / 5.1 / 48 kHz
* Display Title English (AAC 5.1)
* Extended Display Title LC-AAC / 5.1 / 48 kHz (English)
Server log:
plex.log.zip (324.9 KB)


