HW Transcoding not working anymore (Synology Diskstation)

I updated my DS916+ to Plex Server 1.18.3.2156 and I think things improved.

HEVC (H.265) HW transcoding to H.264 seems to work again. The deduce that from the fact that the CPU load of the DS (server) is low altough the player can only handle H.264. Also the log output hints that is really HW transcoding: TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi

HEVC 10bit HW transcoding does not work. The CPU load on the DiskStation is high and the video is playing, pausing, playing, pausing, … Also the server log shows that it does not do HW decode: TPU: hardware transcoding: final decoder: , final encoder: vaapi (note that the final decoder is left empty)

But I do not know whether HVEC 10bit ever worked or if the CPU is able to do that. Maybe that’s where the HW capability discussion from above meets in the middle and everybody is right. :slight_smile: :peace_symbol:

In the server log one can still see that there are still issues loading the iHD_drv_video.so library.

This is the output when playing a HVEC (8bit) file:

Dec 22, 2019 11:37:38.605 [0x7feb2dfc5700] DEBUG - MDE: [Movie Title] (1974): Direct Play is disabled
Dec 22, 2019 11:37:38.605 [0x7feb2dfc5700] DEBUG - MDE: [Movie Title] (1974): media must be transcoded in order to use the hls protocol
Dec 22, 2019 11:37:38.605 [0x7feb2dfc5700] DEBUG - MDE: [Movie Title] (1974): no direct play video profile exists for http/mkv/hevc
Dec 22, 2019 11:37:38.605 [0x7feb2dfc5700] DEBUG - MDE: [Movie Title] (1974): no direct play video profile exists for http/mkv/hevc/ac3
Dec 22, 2019 11:37:38.606 [0x7feb2dfc5700] DEBUG - MDE: [Movie Title] (1974): no direct play video profile exists for http/mkv/hevc/ac3
Dec 22, 2019 11:37:38.606 [0x7feb2dfc5700] DEBUG - MDE: [Movie Title] (1974): no remuxable profile found, so video stream will be transcoded
Dec 22, 2019 11:37:38.606 [0x7feb2dfc5700] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
Dec 22, 2019 11:37:38.607 [0x7feb2dfc5700] DEBUG - Codecs: testing hevc (decoder) with hwdevice vaapi
Dec 22, 2019 11:37:38.607 [0x7feb2dfc5700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Dec 22, 2019 11:37:38.608 [0x7feb2dfc5700] ERROR - [FFMPEG] - libva: /volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so init failed
Dec 22, 2019 11:37:38.608 [0x7feb2dfc5700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: 1 (operation failed).
Dec 22, 2019 11:37:38.610 [0x7feb2dfc5700] DEBUG - [FFMPEG] - Format 0x32315659 -> yuv420p.
Dec 22, 2019 11:37:38.610 [0x7feb2dfc5700] DEBUG - [FFMPEG] - Format 0x30323449 -> yuv420p.
Dec 22, 2019 11:37:38.610 [0x7feb2dfc5700] DEBUG - [FFMPEG] - Format 0x3231564e -> nv12.
Dec 22, 2019 11:37:38.610 [0x7feb2dfc5700] DEBUG - [FFMPEG] - Format 0x32595559 -> yuyv422.
Dec 22, 2019 11:37:38.610 [0x7feb2dfc5700] DEBUG - [FFMPEG] - Format 0x59565955 -> uyvy422.
Dec 22, 2019 11:37:38.610 [0x7feb2dfc5700] DEBUG - [FFMPEG] - Format 0x48323234 -> yuv422p.
Dec 22, 2019 11:37:38.610 [0x7feb2dfc5700] DEBUG - [FFMPEG] - Format 0x58424752 -> rgb0.
Dec 22, 2019 11:37:38.610 [0x7feb2dfc5700] DEBUG - [FFMPEG] - Format 0x58524742 -> bgr0.
Dec 22, 2019 11:37:38.610 [0x7feb2dfc5700] DEBUG - [FFMPEG] - Format 0x30313050 -> p010le.
Dec 22, 2019 11:37:38.611 [0x7feb2dfc5700] DEBUG - Codecs: Testing with profile 'Main'
Dec 22, 2019 11:37:38.612 [0x7feb2dfc5700] DEBUG - Scaled up video bitrate to 9274Kbps based on 4.500000x fudge factor.
Dec 22, 2019 11:37:38.612 [0x7feb2dfc5700] DEBUG - MDE: [Movie Title] (1974): selected media 0 / 3354
Dec 22, 2019 11:37:38.613 [0x7feb2dfc5700] DEBUG - Streaming Resource: Adding session 0x7feb148f2c10:[Fire-TV-UUID]-com-plexapp-android which is using transcoder slot.  Used slots is now 1
Dec 22, 2019 11:37:38.613 [0x7feb2dfc5700] DEBUG - Streaming Resource: Added session 0x7feb148f2c10:[Fire-TV-UUID]-com-plexapp-android
Dec 22, 2019 11:37:38.613 [0x7feb2dfc5700] DEBUG - Streaming Resource: Reached Decision id=2953 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=3354 part=(id=3357 decision=transcode container=mpegts protocol=hls streams=(Video=(id=7249 decision=transcode bitrate=9274 encoder=h264_vaapi width=1920 height=1036) Audio=(id=7250 decision=copy channels=6 rate=48000))))
Dec 22, 2019 11:37:38.613 [0x7feb2dfc5700] DEBUG - Found session GUID of [Fire-TV-UUID]-com-plexapp-android in session start.
Dec 22, 2019 11:37:38.613 [0x7feb2dfc5700] DEBUG - Using session GUID [Fire-TV-UUID]-com-plexapp-android for new transcode session.
Dec 22, 2019 11:37:38.614 [0x7feb2dfc5700] DEBUG - Cleaning directory for session [Fire-TV-UUID]-com-plexapp-android ()
Dec 22, 2019 11:37:38.616 [0x7feb73fff700] DEBUG - Completed: [[Local IP]:39025] 206 GET /video/:/transcode/universal/start.m3u8?audioBoost=100&autoAdjustQuality=0&directPlay=0&directStream=1&directStreamAudio=1&fastSeek=1&hasMDE=1&includeCodecs=1&location=lan&maxVideoBitrate=200000&mediaBufferSize=104832&mediaIndex=0&partIndex=0&path=%2Flibrary%2Fmetadata%2F2953&protocol=hls&session=[Fire-TV-UUID]-com-plexapp-android&subtitleSize=100&videoBitrate=200000&videoQuality=100&videoResolution=1920x1080 (14 live) TLS 57ms 419 bytes (range: bytes=0-) 
Dec 22, 2019 11:37:38.827 [0x7feb70725700] DEBUG - Request: [[Local IP]:39026 (Allowed Network (Subnet))] GET /video/:/transcode/universal/session/[Fire-TV-UUID]-com-plexapp-android/base/index.m3u8 (15 live) TLS Signed-in
Dec 22, 2019 11:37:38.827 [0x7feb70725700] DEBUG - Found session GUID of [Fire-TV-UUID]-com-plexapp-android in session start.
Dec 22, 2019 11:37:38.827 [0x7feb70725700] DEBUG - Starting a transcode session [Fire-TV-UUID]-com-plexapp-android at offset -1.0 (state=3)
Dec 22, 2019 11:37:38.829 [0x7feb70725700] DEBUG - TPU: hardware transcoding: using hardware decode accelerator vaapi
Dec 22, 2019 11:37:38.829 [0x7feb70725700] DEBUG - [Universal] Using local file path instead of URL: /volume1/Videos/Spielfilme/[Movie Path].mkv
Dec 22, 2019 11:37:38.829 [0x7feb70725700] DEBUG - TPU: hardware transcoding: zero-copy support present
Dec 22, 2019 11:37:38.829 [0x7feb70725700] DEBUG - TPU: hardware transcoding: using zero-copy transcoding
Dec 22, 2019 11:37:38.830 [0x7feb70725700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Dec 22, 2019 11:37:38.831 [0x7feb70725700] ERROR - [FFMPEG] - libva: /volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so init failed
Dec 22, 2019 11:37:38.831 [0x7feb70725700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: 1 (operation failed).
Dec 22, 2019 11:37:38.832 [0x7feb70725700] DEBUG - [FFMPEG] - Format 0x32315659 -> yuv420p.
Dec 22, 2019 11:37:38.832 [0x7feb70725700] DEBUG - [FFMPEG] - Format 0x30323449 -> yuv420p.
Dec 22, 2019 11:37:38.832 [0x7feb70725700] DEBUG - [FFMPEG] - Format 0x3231564e -> nv12.
Dec 22, 2019 11:37:38.833 [0x7feb70725700] DEBUG - [FFMPEG] - Format 0x32595559 -> yuyv422.
Dec 22, 2019 11:37:38.833 [0x7feb70725700] DEBUG - [FFMPEG] - Format 0x59565955 -> uyvy422.
Dec 22, 2019 11:37:38.833 [0x7feb70725700] DEBUG - [FFMPEG] - Format 0x48323234 -> yuv422p.
Dec 22, 2019 11:37:38.833 [0x7feb70725700] DEBUG - [FFMPEG] - Format 0x58424752 -> rgb0.
Dec 22, 2019 11:37:38.833 [0x7feb70725700] DEBUG - [FFMPEG] - Format 0x58524742 -> bgr0.
Dec 22, 2019 11:37:38.833 [0x7feb70725700] DEBUG - [FFMPEG] - Format 0x30313050 -> p010le.
Dec 22, 2019 11:37:38.833 [0x7feb70725700] DEBUG - [FFMPEG] - Created surface 0x4000000.
Dec 22, 2019 11:37:38.834 [0x7feb70725700] DEBUG - [FFMPEG] - Direct mapping possible.
Dec 22, 2019 11:37:38.834 [0x7feb70725700] DEBUG - TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Dec 22, 2019 11:37:38.836 [0x7feb70725700] DEBUG - Job running: EAE_ROOT='/volume1/Plex/tmp_transcoding/pms-[Some UUID]/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/volume1/Plex/Library/Application\ Support/Plex\ Media\ Server/Codecs/8bf330d-2818-linux-x86_64/' XDG_CACHE_HOME='/volume1/Plex/Library/Application Support/Plex Media Server/Cache' XDG_DATA_HOME='/volume1/@appstore/Plex Media Server/Resources' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/volume1/@appstore/Plex Media Server/Plex Transcoder' '-codec:0' 'hevc' '-hwaccel:0' 'vaapi' '-hwaccel_fallback_threshold:0' '10' '-hwaccel_output_format:0' 'vaapi' '-analyzeduration' '20000000' '-probesize' '20000000' '-i' '/volume1/Videos/Spielfilme/[Movie Path].mkv' '-filter_complex' '[0:0]hwupload[0];[0]scale_vaapi=w=1920:h=1036:format=nv12[1];[1]hwupload[2]' '-map' '[2]' '-codec:0' 'h264_vaapi' '-b:0' '6955k' '-maxrate:0' '9274k' '-bufsize:0' '18548k' '-r:0' '23.975999999999999' '-force_key_frames:0' 'expr:gte(t,0+n_forced*1)' '-map' '0:1' '-metadata:s:1' 'language=ger' '-codec:1' 'copy' '-copypriorss:1' '0' '-segment_format' 'mpegts' '-f' 'ssegment' '-individual_header_trailer' '0' '-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/[Fire-TV-UUID]-com-plexapp-android/b689d4eb-e81b-472a-9985-0980a9318ea6/seglist' '-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' '-1' '-map_chapters' '-1' 'media-%05d.ts' '-start_at_zero' '-copyts' '-vsync' 'cfr' '-y' '-init_hw_device' 'vaapi=vaapi:,driver=i965,kernel_driver=i915' '-hwaccel_device' 'vaapi' '-filter_hw_device' 'vaapi' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/[Fire-TV-UUID]-com-plexapp-android/b689d4eb-e81b-472a-9985-0980a9318ea6/progress'

And this is the output when playing a HVEC 10bit video:

Dec 22, 2019 11:46:22.593 [0x7feb70437700] DEBUG - MDE: [Movie Title] (2018): Direct Play is disabled
Dec 22, 2019 11:46:22.593 [0x7feb70437700] DEBUG - MDE: [Movie Title] (2018): media must be transcoded in order to use the hls protocol
Dec 22, 2019 11:46:22.593 [0x7feb70437700] DEBUG - MDE: [Movie Title] (2018): no direct play video profile exists for http/mkv/hevc
Dec 22, 2019 11:46:22.593 [0x7feb70437700] DEBUG - MDE: [Movie Title] (2018): no direct play video profile exists for http/mkv/hevc/dca
Dec 22, 2019 11:46:22.593 [0x7feb70437700] DEBUG - MDE: [Movie Title] (2018): no direct play video profile exists for http/mkv/hevc/dca
Dec 22, 2019 11:46:22.593 [0x7feb70437700] DEBUG - MDE: [Movie Title] (2018): no remuxable profile found, so video stream will be transcoded
Dec 22, 2019 11:46:22.594 [0x7feb70437700] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
Dec 22, 2019 11:46:22.594 [0x7feb70437700] DEBUG - Codecs: testing hevc (decoder) with hwdevice vaapi
Dec 22, 2019 11:46:22.594 [0x7feb70437700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Dec 22, 2019 11:46:22.595 [0x7feb70437700] ERROR - [FFMPEG] - libva: /volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so init failed
Dec 22, 2019 11:46:22.595 [0x7feb70437700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: 1 (operation failed).
Dec 22, 2019 11:46:22.597 [0x7feb70437700] DEBUG - [FFMPEG] - Format 0x32315659 -> yuv420p.
Dec 22, 2019 11:46:22.597 [0x7feb70437700] DEBUG - [FFMPEG] - Format 0x30323449 -> yuv420p.
Dec 22, 2019 11:46:22.597 [0x7feb70437700] DEBUG - [FFMPEG] - Format 0x3231564e -> nv12.
Dec 22, 2019 11:46:22.597 [0x7feb70437700] DEBUG - [FFMPEG] - Format 0x32595559 -> yuyv422.
Dec 22, 2019 11:46:22.597 [0x7feb70437700] DEBUG - [FFMPEG] - Format 0x59565955 -> uyvy422.
Dec 22, 2019 11:46:22.597 [0x7feb70437700] DEBUG - [FFMPEG] - Format 0x48323234 -> yuv422p.
Dec 22, 2019 11:46:22.597 [0x7feb70437700] DEBUG - [FFMPEG] - Format 0x58424752 -> rgb0.
Dec 22, 2019 11:46:22.597 [0x7feb70437700] DEBUG - [FFMPEG] - Format 0x58524742 -> bgr0.
Dec 22, 2019 11:46:22.597 [0x7feb70437700] DEBUG - [FFMPEG] - Format 0x30313050 -> p010le.
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - Codecs: Testing with profile 'Main 10'
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - nal_unit_type: 20(IDR_N_LP), nuh_layer_id: 0, temporal_id: 0
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - Decoding VPS
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - Main 10 profile bitstream
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - Decoding SPS
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - Main 10 profile bitstream
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - Decoding VUI
Dec 22, 2019 11:46:22.598 [0x7feb70437700] DEBUG - [FFMPEG] - Decoding PPS
Dec 22, 2019 11:46:22.599 [0x7feb70437700] DEBUG - [FFMPEG] - Format vaapi_vld chosen by get_format().
Dec 22, 2019 11:46:22.599 [0x7feb70437700] DEBUG - [FFMPEG] - Format vaapi_vld requires hwaccel initialisation.
Dec 22, 2019 11:46:22.599 [0x7feb70437700] ERROR - [FFMPEG] - Failed setup for format vaapi_vld: hwaccel initialisation returned error.
Dec 22, 2019 11:46:22.599 [0x7feb70437700] DEBUG - [FFMPEG] - Format vaapi_vld not usable, retrying get_format() without it.
Dec 22, 2019 11:46:22.599 [0x7feb70437700] DEBUG - [FFMPEG] - Format yuv420p10le chosen by get_format().
Dec 22, 2019 11:46:22.600 [0x7feb70437700] DEBUG - [FFMPEG] - Decoded frame with POC 0.
Dec 22, 2019 11:46:22.600 [0x7feb70437700] DEBUG - Codecs: 10-bit HEVC test returned software frame
Dec 22, 2019 11:46:22.601 [0x7feb70437700] WARN - Codecs: avcodec_open2 returned -95 for decoder 'hevc'
Dec 22, 2019 11:46:22.601 [0x7feb70437700] DEBUG - Codecs: testing hevc (decoder) with hwdevice nvdec
Dec 22, 2019 11:46:22.601 [0x7feb70437700] DEBUG - Codecs: hardware transcoding: testing API nvdec
Dec 22, 2019 11:46:22.602 [0x7feb70437700] ERROR - [FFMPEG] - Cannot load libcuda.so.1
Dec 22, 2019 11:46:22.602 [0x7feb70437700] ERROR - [FFMPEG] - Could not dynamically load CUDA
Dec 22, 2019 11:46:22.602 [0x7feb70437700] DEBUG - Codecs: hardware transcoding: opening hw device failed - probably not supported by this system, error: Unknown error occurred
Dec 22, 2019 11:46:22.602 [0x7feb70437700] DEBUG - Scaled up video bitrate to 15948Kbps based on 4.500000x fudge factor.
Dec 22, 2019 11:46:22.602 [0x7feb70437700] DEBUG - MDE: [Movie Title] (2018): selected media 0 / 52622
Dec 22, 2019 11:46:22.603 [0x7feb70437700] DEBUG - Streaming Resource: Adding session 0x7feb14a4efd0:[Fire-TV-UUID]-com-plexapp-android which is using transcoder slot.  Used slots is now 1
Dec 22, 2019 11:46:22.603 [0x7feb70437700] DEBUG - Streaming Resource: Added session 0x7feb14a4efd0:[Fire-TV-UUID]-com-plexapp-android
Dec 22, 2019 11:46:22.603 [0x7feb70437700] DEBUG - Streaming Resource: Reached Decision id=53289 codes=(General=1001,Direct play not available; Conversion OK. Direct Play=3000,App cannot direct play this item. Direct play is disabled. Transcode=1001,Direct play not available; Conversion OK.) media=(id=52622 part=(id=52716 decision=transcode container=mpegts protocol=hls streams=(Video=(id=17812 decision=transcode bitrate=15948 encoder=h264_vaapi width=1920 height=804) Audio=(id=17813 decision=copy channels=6 rate=48000))))
Dec 22, 2019 11:46:22.603 [0x7feb70437700] DEBUG - Found session GUID of [Fire-TV-UUID]-com-plexapp-android in session start.
Dec 22, 2019 11:46:22.603 [0x7feb70437700] DEBUG - Using session GUID [Fire-TV-UUID]-com-plexapp-android for new transcode session.
Dec 22, 2019 11:46:22.603 [0x7feb70437700] DEBUG - Cleaning directory for session [Fire-TV-UUID]-com-plexapp-android ()
Dec 22, 2019 11:46:22.607 [0x7feb78574700] DEBUG - Completed: [[Local IP]:50645] 206 GET /video/:/transcode/universal/start.m3u8?audioBoost=100&autoAdjustQuality=0&directPlay=0&directStream=1&directStreamAudio=1&fastSeek=1&hasMDE=1&includeCodecs=1&location=lan&maxVideoBitrate=200000&mediaBufferSize=104832&mediaIndex=0&partIndex=0&path=%2Flibrary%2Fmetadata%2F53289&protocol=hls&session=[Fire-TV-UUID]-com-plexapp-android&subtitleSize=100&videoBitrate=200000&videoQuality=100&videoResolution=1920x1080 (19 live) TLS 62ms 419 bytes (range: bytes=0-) 
Dec 22, 2019 11:46:22.780 [0x7feb2d9e9700] DEBUG - Request: [[Local IP]:50646 (Allowed Network (Subnet))] GET /video/:/transcode/universal/session/[Fire-TV-UUID]-com-plexapp-android/base/index.m3u8 (20 live) TLS Signed-in
Dec 22, 2019 11:46:22.781 [0x7feb2d9e9700] DEBUG - Found session GUID of [Fire-TV-UUID]-com-plexapp-android in session start.
Dec 22, 2019 11:46:22.781 [0x7feb2d9e9700] DEBUG - Starting a transcode session [Fire-TV-UUID]-com-plexapp-android at offset -1.0 (state=3)
Dec 22, 2019 11:46:22.782 [0x7feb2d9e9700] DEBUG - TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Dec 22, 2019 11:46:22.783 [0x7feb2d9e9700] DEBUG - [Universal] Using local file path instead of URL: /volume1/Videos/Spielfilme/[Movie Path].mkv
Dec 22, 2019 11:46:22.783 [0x7feb2d9e9700] DEBUG - TPU: hardware transcoding: zero-copy support not present
Dec 22, 2019 11:46:22.783 [0x7feb2d9e9700] DEBUG - Codecs: hardware transcoding: testing API vaapi
Dec 22, 2019 11:46:22.785 [0x7feb2d9e9700] ERROR - [FFMPEG] - libva: /volume1/@appstore/Plex Media Server/lib/dri/iHD_drv_video.so init failed
Dec 22, 2019 11:46:22.785 [0x7feb2d9e9700] ERROR - [FFMPEG] - Failed to initialise VAAPI connection: 1 (operation failed).
Dec 22, 2019 11:46:22.786 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Format 0x32315659 -> yuv420p.
Dec 22, 2019 11:46:22.786 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Format 0x30323449 -> yuv420p.
Dec 22, 2019 11:46:22.786 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Format 0x3231564e -> nv12.
Dec 22, 2019 11:46:22.786 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Format 0x32595559 -> yuyv422.
Dec 22, 2019 11:46:22.786 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Format 0x59565955 -> uyvy422.
Dec 22, 2019 11:46:22.786 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Format 0x48323234 -> yuv422p.
Dec 22, 2019 11:46:22.787 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Format 0x58424752 -> rgb0.
Dec 22, 2019 11:46:22.787 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Format 0x58524742 -> bgr0.
Dec 22, 2019 11:46:22.787 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Format 0x30313050 -> p010le.
Dec 22, 2019 11:46:22.787 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Created surface 0x4000000.
Dec 22, 2019 11:46:22.787 [0x7feb2d9e9700] DEBUG - [FFMPEG] - Direct mapping possible.
Dec 22, 2019 11:46:22.788 [0x7feb2d9e9700] DEBUG - TPU: hardware transcoding: final decoder: , final encoder: vaapi
Dec 22, 2019 11:46:22.789 [0x7feb2d9e9700] DEBUG - Job running: EAE_ROOT='/volume1/Plex/tmp_transcoding/pms-[Some UUID]/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/volume1/Plex/Library/Application\ Support/Plex\ Media\ Server/Codecs/8bf330d-2818-linux-x86_64/' XDG_CACHE_HOME='/volume1/Plex/Library/Application Support/Plex Media Server/Cache' XDG_DATA_HOME='/volume1/@appstore/Plex Media Server/Resources' X_PLEX_TOKEN='xxxxxxxxxxxxxxxxxxxx' '/volume1/@appstore/Plex Media Server/Plex Transcoder' '-codec:0' 'hevc' '-analyzeduration' '20000000' '-probesize' '20000000' '-i' '/volume1/Videos/Spielfilme/[Movie Path].mkv' '-filter_complex' '[0:0]scale=w=1920:h=804[0];[0]format=pix_fmts=nv12[1];[1]hwupload[2]' '-map' '[2]' '-codec:0' 'h264_vaapi' '-b:0' '11961k' '-maxrate:0' '15948k' '-bufsize:0' '31250k' '-r:0' '23.975999999999999' '-force_key_frames:0' 'expr:gte(t,0+n_forced*1)' '-map' '0:1' '-metadata:s:1' 'language=ger' '-codec:1' 'copy' '-copypriorss:1' '0' '-segment_format' 'mpegts' '-f' 'ssegment' '-individual_header_trailer' '0' '-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/[Fire-TV-UUID]-com-plexapp-android/33e61260-e744-4ed8-88b3-96c4a0c75449/seglist' '-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' '-1' '-map_chapters' '-1' 'media-%05d.ts' '-start_at_zero' '-copyts' '-vsync' 'cfr' '-y' '-init_hw_device' 'vaapi=vaapi:,driver=i965,kernel_driver=i915' '-hwaccel_device' 'vaapi' '-filter_hw_device' 'vaapi' '-nostats' '-loglevel' 'quiet' '-loglevel_plex' 'error' '-progressurl' 'http://127.0.0.1:32400/video/:/transcode/session/[Fire-TV-UUID]-com-plexapp-android/33e61260-e744-4ed8-88b3-96c4a0c75449/progress'

What does it mean that the Plex server tries to load libcuda.so.1? To me knowledge CUDA is only available on platforms with Nvidia chips.

  1. The N3710 CPU does not have HEVC capability . Goldmont (ApolloLake) is required to decode HEVC . The N3710 is Airmont microarchitecture.

  2. What you’re seeing in the logs is the transcoder searching for anything it can use.

Thanks! This fixed my problem. In particular, using the current version of Plex server 1.18.3.2156 on a Synology 1019+ to play back my blu-ray collection at 1080p, I observed the following:

  1. Just playing the h264 in mp4 embedded file plays fine with minimal CPU impact.
  2. Adding a Vobsub subtitle, which the player does not support, requires transcoding and results in either a completely scrambled image (with hardware transcoding enabled) or pegs the CPU at 100% and stutters ocasionally without hardware encoding.
  3. Moving that pesky iHD_drv_video.so somewhere Plex won’t find it and restarting the server appears to have done the trick.
  4. Transcoded movies with vobsub subtitles now play fine with only about 37% CPU load (which I can live with, though I hoped for something better given the specs).

To update everyone,

The problem with the iHD has been found. A new preview release is available.
It should only contain the iHD_drv_video.so correction.

(Linux desktop users got a small present too :wink: )

If there are still issues, please continue to delete the driver and we’ll address when everyone is back.

4 Likes

This release does not work well!
NAS = 918+
Client : Android Phone, Galaxy S7

I have the same garbled output when transcoding.

Let’s wait for some feedback from other users claiming all is fixed now.

Then I re-installed my previous version 18.0.1944 and all is good again…

1 Like

Same here, transcoding doesn’t work with the new version either.

1 Like

Please be specific about which version of which?

Basically every version since 18.0.1944 has issue. I tried yesterday link below

https://artifacts.plex.tv/plex-media-server-experimental/1.18.3.2175-4593fabed/synology/PlexMediaServer-1.18.3.2175-4593fabed-x86_64.spk

I also installed the version that my PMS suggested on login on the web-interface, 1.18.4.2171 with no luck, same transcoding garbage on start.

Reverting to my trusty 1.18.0.1944 fixes things.

2 Likes

Same for me. Hardware encoding do not work with my DS918+ and updated Plex Server to version 1.18.4.2171 still only retracts when playing back video with the hardwire transcoding turned on.

If I turn the hardware transcoder off the video works (but the DS CPU is hurt).

Where can I find the old version to Download?

Good question, I don’t know where to download this from Plex. They only seem to offer the latest and I could not find a nice page with a bunch of older ones where you can actually choose whice version you want to download.
I keep these SPK’s myself too so I had no trouble re-installing *.1944

Plex crew should be able to provide you with a download-link or something.

1 Like

Good tips. I will start archiving the old ones as well.

1 Like

Still the option to delete the ihd driver.

The iHD driver was corrected in PMS 1.18.3.2175

I do not know if it corrects everyone’s issues but it does correct the problem where the driver completely failed.

For those experiencing complete failure - not video quality problems, Please attach the ZIP (DEBUG) logs of a captured failure.

Well yeah, I’ve installed now 1.18.3.2175 and deleted the Intel-driver manually so prevent transcoding garbage. All works find with the existing i965-driver.

@ChuckPa, what do you mean “The iHD driver was corrected in PMS 1.18.3.2175” ?? Obviously the transcoding garbarge not entirely, at least not on my 918+ in combination with any transcoding client. (eg. Plex app on the Samsung S7 phone)
In cases where it completely trashes PMS you might, consider is fixed, I never experienced this.

What we were able to find and correct (with folks out on holiday) were those cases where the iHD driver would not work at all and completely block any transcoding.

If you’re familiar with linux ldd “rpath”, this is where we found the problem. iHD could not always find the libigdgmm.so. Since that library is required for iHD to load, the entire transcode session would fail.

The problem would vary from system to system which is what made it difficult to track.

@ChuckPa
Hi Chuck. Already tested the other versions around with my DS918+. Transcoding worked but the problem then was with the first 30-90 sec. Artifakts Pixelated.

The iHD Driver only affects my android clients — with subs, not so the ios or tvos clients with the enhanced player (only problem with the native one).

Now what to do?
Pms Version with iHD - No transcoding with subs.
Pms Version with old or fixed Driver - Artifakts, Pixalation the first 30-90 sec.

Any clue?

Lg
Markus

Gruß Markus,

Pixelation in the iHD is a problem. What makes matters worse is there is a known problem with ApolloLake hardware which the iHD makes painful obvious.

The Synology systems do not need the iHD_drv_video.so file at all. iHD_drv_video is only required for the -9xxx family CPUs .

Confirm please: Pixelation with or without iHD driver ?

@ChuckPa
Last Time i tested the Version of chrisallen, not the latest from him 4 days ago, the one before, (Weihnachtsstress😉) it transcoded well, but it pixalated 30-90 sec before picture was normal.

I must work tonight, but can try the latest tomorrow with logs if needed.

Why did all went well versions before and not now?

Already try to reach you with PM and Mail but no luck.

Wie gehts dir?

Meld dich mal.

Lg