Intel® UHD Graphics P630 transcoding 1080p works, 4k gives hardware error

Server Version#: 1.23.5.4862
Player Version#:4.59.2

Hi all, if I try and play a 4k video using the Plex Player locally and set it to transcode, it transcodes on the CPU. If I play a 1080p video it transcodes fine.

Here’s a tail grepping ‘hardware’ of the Plex log when I try with 1080p:

(1:1005)# tail -f Plex\ Media\ Server.log | grep -i hardware
Jul 25, 2021 09:55:42.177 [0x7f6a9174bb38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:55:42.752 [0x7f6a9174bb38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:55:42.753 [0x7f6a9174bb38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:55:42.753 [0x7f6a9174bb38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:55:42.755 [0x7f6a9174bb38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:55:42.756 [0x7f6a9174bb38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:55:43.150 [0x7f6a9145db38] DEBUG - [Transcode] TPU: hardware transcoding: using hardware decode accelerator vaapi
Jul 25, 2021 09:55:43.150 [0x7f6a9145db38] DEBUG - [Transcode] TPU: hardware transcoding: zero-copy support present
Jul 25, 2021 09:55:43.150 [0x7f6a9145db38] DEBUG - [Transcode] TPU: hardware transcoding: using zero-copy transcoding
Jul 25, 2021 09:55:43.150 [0x7f6a9145db38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:55:43.151 [0x7f6a9145db38] DEBUG - [Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi

And here’s the log doing 4k:

(1:1006)# tail -f Plex\ Media\ Server.log | grep -i hardware
Jul 25, 2021 09:57:11.518 [0x7f6a91480b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:57:11.548 [0x7f6a91480b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:57:11.550 [0x7f6a91480b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:57:11.553 [0x7f6a91480b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:57:11.555 [0x7f6a91480b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:57:11.558 [0x7f6a91480b38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:57:11.635 [0x7f6a9145db38] DEBUG - [Transcode] TPU: hardware transcoding: using hardware decode accelerator vaapi
Jul 25, 2021 09:57:11.635 [0x7f6a9145db38] DEBUG - [Transcode] TPU: hardware transcoding: zero-copy support present
Jul 25, 2021 09:57:11.635 [0x7f6a9145db38] DEBUG - [Transcode] TPU: hardware transcoding: using zero-copy transcoding
Jul 25, 2021 09:57:11.635 [0x7f6a9145db38] DEBUG - [Transcode] Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:57:11.636 [0x7f6a9145db38] DEBUG - [Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Jul 25, 2021 09:57:12.793 [0x7f6a90deab38] DEBUG - TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Jul 25, 2021 09:57:12.793 [0x7f6a90deab38] DEBUG - Codecs: hardware transcoding: testing API vaapi
Jul 25, 2021 09:57:12.794 [0x7f6a90deab38] DEBUG - TPU: hardware transcoding: final decoder: , final encoder:

Given it works with 1080p I would have thought 4k should also work given I have seen few people post to say that this Intel GPU can transcode 4k fine.

Any advice appreciated.

Edited to say that if I disable HDR tone mapping it works fine. OS is Ubuntu 20.0.4 and ocl-icd-libopencl1 and beignet-opencl-icd are both installed.

Hardware transcoding is actually done by the QuickSync unit, which is also built into the CPU, beside the GPU.
Which generation of the QuickSync unit you have, decides its abilities.
Please state the exact type of your CPU, so this can be determined.

“4K” is not simply 4K.
Please copy the the first ~15 lines of the Plex XML info into here, so we can see what codec and other technical details is possesses.

Hi, the CPU is an Intel Xeon W-1290.

I’m pretty sure it’s HRD tone mapping issue as if I disable that it transcodes fine.

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Films" librarySectionUUID="ffdbc1ad-cdf5-40aa-b92a-22dc98ba5d2c" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1627052635">
<Video ratingKey="25278" key="/library/metadata/25278" guid="plex://movie/5d776a097a53e9001e6f8491" studio="Columbia Pictures" type="movie" title="22 Jump Street" librarySectionTitle="Films" librarySectionID="1" librarySectionKey="/library/sections/1" contentRating="gb/15" summary="After making their way through high school (twice), big changes are in store for officers Schmidt and Jenko when they go deep undercover at a local college." rating="8.4" audienceRating="7.7" year="2014" tagline="They're not 21 anymore" thumb="/library/metadata/25278/thumb/1627176568" art="/library/metadata/25278/art/1627176568" duration="6716736" originallyAvailableAt="2014-06-13" addedAt="1627176557" updatedAt="1627176568" audienceRatingImage="rottentomatoes://image.rating.upright" chapterSource="media" primaryExtraKey="/library/metadata/25368" ratingImage="rottentomatoes://image.rating.ripe">
<Media id="55051" duration="6716736" bitrate="76454" width="3840" height="2160" aspectRatio="1.78" audioChannels="8" audioCodec="truehd" videoCodec="hevc" videoResolution="4k" container="mkv" videoFrameRate="24p" videoProfile="main 10">
<Part accessible="1" exists="1" id="59567" key="/library/parts/59567/1600678890/file.mkv" duration="6716736" file="/mnt/media/Movies/22 Jump Street (2014)/22.Jump.Street.2014.MULTi.REMUX.UHD.BluRay.2160p.HEVC..10bit..HDR.Atmos.DTS-HD.MA.7.1-LEGi0N.mkv" size="64260548581" container="mkv" deepAnalysisVersion="4" requiredBandwidths="2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647" videoProfile="main 10">
<Stream id="145202" streamType="1" default="1" codec="hevc" index="0" bitrate="56538" language="English" languageCode="eng" bitDepth="10" chromaSubsampling="4:2:0" codedHeight="2160" codedWidth="3840" colorPrimaries="bt2020" colorRange="tv" colorSpace="bt2020nc" colorTrc="smpte2084" frameRate="23.976" height="2160" level="153" profile="main 10" refFrames="1" requiredBandwidths="89959,83863,71794,69717,68337,67075,63626,60122" title="English" width="3840" displayTitle="4K (HEVC Main 10 HDR)" extendedDisplayTitle="English (4K HEVC Main 10 HDR)"> </Stream>
<Stream id="145203" streamType="2" selected="1" default="1" codec="truehd" index="1" channels="8" bitrate="2725" language="English" languageCode="eng" audioChannelLayout="7.1" bitDepth="24" requiredBandwidths="2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647" samplingRate="48000" title="English" displayTitle="English (TRUEHD 7.1)" extendedDisplayTitle="English (TRUEHD 7.1)"> </Stream>
<Stream id="145204" streamType="2" codec="ac3" index="2" channels="6" bitrate="640" language="English" languageCode="eng" audioChannelLayout="5.1(side)" requiredBandwidths="640,640,640,640,640,640,640,640" samplingRate="48000" title="English" displayTitle="English (AC3 5.1)" extendedDisplayTitle="English (AC3 5.1)"> </Stream>
<Stream id="145205" streamType="2" codec="dca" index="3" channels="8" bitrate="4088" language="English" languageCode="eng" audioChannelLayout="7.1" bitDepth="24" profile="ma" requiredBandwidths="2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,2147483647,515951" samplingRate="48000" title="English / DTS-HD Master Audio / 7.1 / 48 kHz / 4 089 kbps / 24-bit (DTS Core: 5.1 / 48 kHz / 1509 kbps / 24-bit)" displayTitle="English (DTS-HD MA 7.1)" extendedDisplayTitle="English / DTS-HD Master Audio / 7.1 / 48 kHz / 4 089 kbps / 24-bit (DTS Core: 5.1 / 48 kHz / 1509 kbps / 24-bit)"> </Stream>```

That’s a “Comet Lake” CPU. And yes, it does have support for HEVC 10 bit. So that is fine.

I can only assume that it has to do with a hardware driver which is necessary for HDR tone mapping in hardware.
I am not a Linux expert, so please take a look at this: Intel Quick Sync HDR-to-SDR tonemapping performance - #34 by ChuckPa

Thanks, I’ve tried upgrading to 21.04 and the kernel to 5.14 but I’m still facing the error. I’ll continue to investigate.

Went back to 20.04, no dice.

If I try it with another well known media server it works fine.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.