New server HEVC no hardware transcoding

Server Version#: 1.22.0.4263
Player Version#: latest on any

I just upgraded my Plex server from using a Nas to a 7i3BNK NuC which supports HEVC hardware acceleration. Running on Ubuntu 20.0.4 LTS However it won’t use hw for transcoding any HEVC it just goes to software and obviously it’s not up to it. I believed this was possible to use hw acceleration for HEVC? It works with HW acceleration for h264.

Any advice?

May I have some more info please? (I have a NUC7i3-BNK and it does just fine)

  1. Hardware transcoding re-enabled in Settings - Server Transcoder ? (show advanced)
  2. HDR tone mapping disabled ? (you’ll bury it if you do enable HDR)
  3. If both those, then:
    a. Verify DEBUG logging ON
    b. Verify VERBOSE logging OFF
    c. Recreate the playback attempt (10 seconds of playback)
    d. Stop Playback
    e. Download Logs ZIP file
    f. Attach for me to review please

Done all of that..


Plex Media Server Logs_2021-03-18_16-40-07.zip (6.9 MB)

Ok I have uninstalled it and reinstalled it and now it’s showing hardware encoding but I get constant buffering. CPU doesn’t seem to be maxing out it’s got network bandwidth using an M2 drive so that’s fast enough. Tried this on two clients and they both buffer.

New logs attached.

Plex Media Server Logs_2021-03-18_20-30-36.zip (1.2 MB)

Any help greatly appreciated.

So turning of HDR mapping and it’s fine. But then it’s all lifted and not in correct Colourspace?

You are getting HW transcoding of the HEVC.

Mar 18, 2021 20:14:40.705 [0x7f225bfff700] DEBUG - [Transcode] [FFMPEG] - Created surface 0.
Mar 18, 2021 20:14:40.705 [0x7f225bfff700] DEBUG - [Transcode] [FFMPEG] - Direct mapping possible.
Mar 18, 2021 20:14:40.706 [0x7f225bfff700] DEBUG - [Transcode] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Mar 18, 2021 20:14:40.707 [0x7f225bfff700] DEBUG - [Transcode/JobRunner] Job running: EAE_ROOT='/var/snap/plexmediaserver/common/tmp/pms-1bd0e254-17cf-4747-a8cd-ff8e4df49268/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/var/snap/plexmediaserver/common/Library/Application\ Support/Plex\ Media\ Server/Codecs/367b3d4-3673-linux-x86_64/' LIBVA_DRIVERS_PATH='/snap/plexmediaserver/185/lib/dri' X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxk' '/snap/plexmediaserver/185/Plex Transcoder' '-codec:0' 'hevc' '-hwaccel:0' 'vaapi' '-hwaccel_fallback_threshold:0' '10' '-hwaccel_output_format:0' 'vaapi' '-hwaccel_device:0' 'vaapi' '-codec:1' 'eac3_eae' '-eae_prefix:1' 'fc362130abe2648f-com-plexapp-android_' '-analyzeduration' '20000000' '-probesize' '20000000' '-i' '/media/videos/MOVIES/Love.and.Monsters.2020.UHD.1080p.BluRay.DD+7.1.HDR.x265-SPHD/Love.and.Monsters.2020.UHD.1080p.BluRay.DD+7.1.HDR.x265-SPHD.mkv' '-filter_complex' '[0:0]hwupload[0];[0]scale_vaapi=w=1920:h=800:format=p010[1];[1]hwdownload[2];[2]format=p010,tonemap=mobius[3];[3]hwupload[4]' '-map' '[4]' '-codec:0' 'h264_vaapi' '-b:0' '8099k' '-maxrate:0' '10799k' '-bufsize:0' '21598k' '-r:0' '23.975999999999999' '-force_key_frames:0' 'expr:gte(t,n_forced*1)' '-filter_complex' '[0:1] aresample=async=1:ocl='\''5.1(side)'\'':rematrix_maxval=0.000000dB:osr=48000[5]' '-map' '[5]' '-metadata:s:1' 'language=eng' '-codec:1' 'eac3_eae' '-eae_prefix:1' 'fc362130abe2648f-com-plexapp-android_' '-b:1' '564k' '-segment_format' 'matroska' '-f' 'ssegment' '-individual_header_trailer' '0' '-flags' '+global_header' '-segment_format_options' 'output_ts_offset=10' '-segment_header_filename' 'header' '-segment_time' '1' '-segment_start_number' '0' '-segment_copyts' '1' '-segment_time_delta' '0.0625' '-segment_list' 'http://127.0.0.1:32400/video/:/transcode/session/fc362130abe2648f-com-plexapp-android/2b9530ac-c3f1-47cf-a829-048857ab0832/seglist?X-Plex-Http-Pipeline=infinite' '-segment_list_type' 'csv' '-segment_list_size' '5' '-segment_list_separate_stream_times' '1' '-segment_list_unfinished' '1' '-max_delay' '5000000' '-avoid_negative_ts' 'disabled' '-map_metadata:g' '-1' '-map_metadata:c' '-1' '-map_chapters' '-1' 'media-%05d.ts' '-start_at_zero' '-copyts' '-vsync' 'cfr' '-init_hw_device' 'vaapi=vaapi:' '-filter_hw_device' 'vaapi' '-y' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/fc362130abe2648f-com-plexapp-android/2b9530ac-c3f1-47cf-a829-048857ab0832/progress'

I don’t yet know why it’s not showing in the Web app dashboard display.

When you get to using HDR, if the Beignet packages are installed, you’ll also get HW tonemapping.

I installed those packages now and rebooted but I just get buffering with tone mapping enabled still exactly the same. If I turn it off it plays fine but looks obviously wrong and It shows as hardware decoding.

Plex Media Server Logs_2021-03-19_12-44-07.zip (3.6 MB)

New logs after all depandancies installed and updated drivers. Still the same hdr tone mapping kills it.

Got this to work finally. I fully removed it again and installed again by apt this time not snap. And it’s picked it all up and works. Transcoding UHD HEVC with tone mapping.

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