Thanks, ChuckPA!
I use Docker for several reasons - single-command Plex updates, the ability to run other containers on my machine with relative ease, it’s what I used to learn the basics of Docker Compose, etc… I also prefer to use minimalist installs on my machines to prevent overhead - so I keep small images with just Core+Docker around to run projects, including Plex. Happy to answer any questions you have on that matter, if you’re interested.
Regarding the topic, these issues existed before I attempted to try Hardware Acceleration. The errors mentioned above were obviously from when I turned that on, so I immediately turned them back off. Those specific errors went away; however, the issues still persist, but only with certain media files.
I do want to add that this issue seemed to happen after I added 10-bit HEVC media to the Plex. The Transcoder seemed to fail, hard, when trying to transcode these files for AppleTV. It would show a black screen and scroll the video time (~30 minutes) in about 15 seconds before moving on to the next episode. In an attempt to get direct stream working on my AppleTV, I modified the tvOS.xml
profile. When that failed, I reverted the file, and for good measure, completely rebuilt the Plex Docker image from scratch (PlexPass
tag). After that, as far as I can tell, these buffering issues with h.264 files started occurring.
I’m not attempting, to my knowledge, to use nVidia Transcoding as I do not have a GPU installed. Do you have a recommendation on what I might look at to ensure I haven’t misconfigured that?
I’ve tailed all of the Plex logs with debugging (I’ve checked verbose, too) when the media pauses, buffers, or outright fails. I’m hoping you might see something in there that I’m not picking up on. To make the search easier, I ensured Debug (not Verbose) logging was on and attempted to play a couple different problem media sources (which I am certain was working a few days ago). It paused 5 seconds into playing and never recovered. I ensured that my AppleTV was logging to the Plex beforehand. You can find my logs here:
http://cloud.andrewvaughan.io/2x3D3u0U1z0I
I’m not sure if this is a signal, but even tailing the log file seems to fail when the video starts buffering. It locks up at something that looks like this:
Jan 13, 2018 12:40:11.835 [0x7f1aea3ff700] DEBUG - Streaming Resource: Last segment has been delayed for 1.04 and last request was 0.00s ago, so changing to client buffered on 6DED3FA1-C823-4B4B-921D-0A2CA742C32D with an estimate of 22839kbps
Jan 13, 2018 12:40:11.835 [0x7f1aea3ff700] DEBUG - Streaming Resource: Changing client bandwidth 6DED3FA1-C823-4B4B-921D-0A2CA742C32D to 20000kbps from 7977kbps
Jan 13, 2018 12:40:11.837 [0x7f1aea3ff700] DEBUG - TranscodeUniversalRequest: using augmented profile tvOS
Jan 13, 2018 12:40:11.837 [0x7f1aea3ff700] DEBUG - Downloading document http://127.0.0.1:32400/library/metadata/1261?includeBandwidths=1&offset=-1&X-Plex-Client-Capabilities=audioDecoders%3Dmp3%2Caac%2Cac3{bitrate%3A800000%26channels%3A8}&X-Plex-Session-Identifier=6DED3FA1-C823-4B4B-921D-0A2CA742C32D
Jan 13, 2018 12:40:11.838 [0x7f1aea3ff700] DEBUG - Auth: authenticated user 1 as wspnut
Jan 13, 2018 12:40:11.843 [0x7f1aea3ff700] DEBUG - We're going to try to auto-select an audio stream for account 1.
Jan 13, 2018 12:40:11.843 [0x7f1aea3ff700] DEBUG - Selecting best audio stream for part ID 2107 (autoselect: 1 language: en)
Jan 13, 2018 12:40:11.843 [0x7f1aea3ff700] DEBUG - We're going to try to auto-select a subtitle.
Jan 13, 2018 12:40:11.843 [0x7f1aea3ff700] DEBUG - Found a suitable native subtitle language [eng] for a foreign film
Jan 13, 2018 12:40:11.843 [0x7f1aea3ff700] DEBUG - Audio Stream: 5091, Subtitle Stream: 5094
Jan 13, 2018 12:40:11.844 [0x7f1aea3ff700] DEBUG - Streaming Resource: Applying codec restriction restrict-transcode-target-codec(audioCodec=ac3&context=streaming&protocol=hls&type=videoProfile&videoCodec=h264) on 6DED3FA1-C823-4B4B-921D-0A2CA742C32D
Jan 13, 2018 12:40:11.845 [0x7f1aea3ff700] DEBUG - Scaled up video bitrate to 6957Kbps based on 4.500000x fudge factor.
Re-tailing the log brings up the latest again. It’s very odd.
Before I start my dump of data, thanks in advance for your help with this!
Here are the specs of my CPU and RAM; please let me know if I can provide you more details. I’m aware that the i5-4590 model does not support QSV - thus the errors above:
andrew@plex:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz
stepping : 3
microcode : 0x1c
cpu MHz : 800.024
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts
bugs :
bogomips : 6599.89
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:
...etc x4 cores...
andrew@plex:~$ cat /proc/meminfo
MemTotal: 8053988 kB
MemFree: 156348 kB
MemAvailable: 7226828 kB
Buffers: 666244 kB
Cached: 6473572 kB
SwapCached: 8 kB
Active: 2221300 kB
Inactive: 5311372 kB
Active(anon): 358780 kB
Inactive(anon): 44020 kB
Active(file): 1862520 kB
Inactive(file): 5267352 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2097148 kB
SwapFree: 2097136 kB
Dirty: 900 kB
Writeback: 0 kB
AnonPages: 301516 kB
Mapped: 151940 kB
Shmem: 9944 kB
Slab: 302756 kB
SReclaimable: 244496 kB
SUnreclaim: 58260 kB
KernelStack: 4192 kB
PageTables: 8876 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 6124140 kB
Committed_AS: 1497060 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 116736 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
CmaTotal: 0 kB
CmaFree: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 171544 kB
DirectMap2M: 6000640 kB
DirectMap1G: 3145728 kB
With the rebuild, the only thing consistent has been my included /config
directory. If I build /config
again from scratch, it seems to resolve my issue. When I reinstate my backup, the issue returns. I’d really rather not have to reconfigure my server, as I have made extensive and significant configuration changes to it over the years.
PS - there may be some verbosity in the logs from my own testing. Apologies in advance; I can likely repeat the issue with a fresh set of logs, if it would make things easier.