On what are you basing your statement that hardware accelerated transcoding is not being utilized in this case? The FFMPEG command-line option -hwaccel:0 in this case means that it is to operate on stream zero, not that it is disabled. It would be better to install the “intel-gpu-tools” package (on Ubuntu, at least, other distributions may name it differently). Then intel_gpu_top will show you your iGPU’s utilization for various functions.
Oh, thanks for clarification. I thought that meant its not being used. (actually was googling documentation on this when you replied).
The reason I even started investigating this is because my CPU usage goes through the roof:
using multiple cores with often maxing out 1 of them to 100%. While (as seen below) other content where hw acceleration seems to work correctly it uses like 3% of a single core.
Ah, gotcha. Yeah, understandable, that zero could make it seem like it was disabling it. In case you’d like it, here’s a link to the FFMPEG docs; for this parameter search for “hwaccel” and it’ll show what the various specifiers mean.
Regarding the specific examples you provided, I’m not sure they’re apples-to-apples. One is a 4K HEVC stream being transcoded to 1080P H.264; the other is a 1080P HEVC stream being transcoded to SD H.264. They may seem similar, but the bitrates are likely vastly different (hard to tell since PMS is miscalculating the bandwidth for your first example). But the media info details suggest it’s around 10 Mbps.
But you’re also burning subtitles in that first example (PGS) but not in the second. That 20% bump in processor utilization is likely normal in that scenario. Try the first example again without subtitles maybe.
This looks good; it means that VAAPI is being used for HW acceleration.
Well, the issue is that I cannot watch anything like this either local or remote. After a few seconds it goes to buffering and then errors out. I think the CPU cant keep up. How can subtitles be needing so much CPU?
How can I make sure my video driver is up to date and that my hw acceleration is set up correctly?
The intel_gpu_top utility already showed it was being used, as did the Plex dashboard. I don’t think there’s much doubt. Plex bundles all the drivers it requires in its Linux package. There is no system-level installation of drivers required.
Burning subtitles is a separate, generally single-threaded process which can consume fairly significant resources. That was just an assumption on my part based on the provided information. Did you test without subtitles to see if it performed better?
That itself is an indication of what the root of the problem is. With subtitles transcoding is required. Without it, the streams only need to be re-muxed.
Try disabling Direct Streaming on the client (generally available in the client’s Plex settings). See if it transcodes then, and what the performance is.
However, based on the information you provided already, I don’t see anything out of the ordinary.
It is turned on. Is that a CPU only function? The page doesnt say…
just says this: Additional driver components may be needed to support hardware transcoding with this feature enabled; see our support articles for further details.
EDIT: Yup tone mapping off its using HW.
how do I make it work with HW?
EDIT2: WOW, ok with tone mapping off, even using subtitles CPU is now down below 5% and its using HW/GPU…
So I guess next step is to figure out if I can get tone mapping using HW?
Thanks. Based on the description of tone mapping… it seems like the film should be all dark… but I dont know that there is any difference? is it very subtle?