I’ve run into a quick sync transcoding issue with MPEG2. My server is running a i5-4570s (Haswell). I have previously seen other sporadic errors with hardware transcoding, so I tested this problem with an entirely different CPU/motherboard. It’s a stock Windows 10 1803 x64 install with the public channel of PMS. It has a monitor attached, and is not running as a service.
These issues were reproducible on my Windows 10 1803 Kaby Lake PMS. But I wanted to remove it from testing just in case I was having a hardware issue.
These are being seen on Plex Web, but I’ve seen similar problems on a 2017 Roku Streaming Stick.
Partial logs for 480i MPEG2 video:
! May 18, 2018 21:19:39.642 [3184] DEBUG - MDE: E21 - Shape Hunt: Direct Play is disabled
! May 18, 2018 21:19:39.642 [3184] DEBUG - MDE: E21 - Shape Hunt: media must be transcoded in order to use the dash protocol
! May 18, 2018 21:19:39.642 [3184] DEBUG - MDE: E21 - Shape Hunt: no direct play video profile exists for http/mpegts/mpeg2video
! May 18, 2018 21:19:39.642 [3184] DEBUG - MDE: E21 - Shape Hunt: no direct play video profile exists for http/mpegts/mpeg2video/ac3
! May 18, 2018 21:19:39.642 [3184] DEBUG - MDE: E21 - Shape Hunt: no remuxable profile found, so video stream will be transcoded
! May 18, 2018 21:19:39.642 [3184] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
! May 18, 2018 21:19:39.642 [3184] DEBUG - Codecs: hardware transcoding: testing API dxva2
! May 18, 2018 21:19:39.642 [3184] DEBUG - Scaled up video bitrate to 4042Kbps based on 1.500000x fudge factor.
! May 18, 2018 21:19:39.783 [13620] DEBUG - TranscodeUniversalRequest: using profile Web
! May 18, 2018 21:19:39.783 [13620] DEBUG - TPU: hardware transcoding: using hardware decode accelerator dxva2
! May 18, 2018 21:19:39.783 [13620] DEBUG - [Universal] Using local file path instead of URL: D:\Kids TV\Sesame Street (1969)\Sesame Street (1969) - S48E21 - Shape Hunt.ts
! May 18, 2018 21:19:39.783 [13620] DEBUG - TPU: hardware transcoding: zero-copy support not present
! May 18, 2018 21:19:39.783 [13620] DEBUG - TPU: hardware transcoding: final decoder: dxva2, final encoder: qsv
[It then transcoded successfully, with (hw) listed on both sides in the Now Playing window]
Partial logs for 720p MPEG2 video:
! May 18, 2018 21:19:02.754 [13620] DEBUG - MDE: E28 - Bert and Ernie Make a Movie (repeat): Direct Play is disabled
! May 18, 2018 21:19:02.754 [13620] DEBUG - MDE: E28 - Bert and Ernie Make a Movie (repeat): media must be transcoded in order to use the dash protocol
! May 18, 2018 21:19:02.754 [13620] DEBUG - MDE: E28 - Bert and Ernie Make a Movie (repeat): no direct play video profile exists for http/mpegts/mpeg2video
! May 18, 2018 21:19:02.754 [13620] DEBUG - Bert and Ernie Make a Movie (repeat) - video.bitrate limitation applies: 11849 > 3676
! May 18, 2018 21:19:02.754 [13620] DEBUG - MDE: E28 - Bert and Ernie Make a Movie (repeat): no remuxable profile found, so video stream will be transcoded
! May 18, 2018 21:19:02.754 [13620] DEBUG - MDE: Cannot direct stream video stream due to profile or setting limitations
! May 18, 2018 21:19:02.754 [13620] DEBUG - Codecs: hardware transcoding: testing API dxva2 [Note: Repeatedly appears]
! May 18, 2018 21:19:02.785 [10556] DEBUG - Scaled up video bitrate to 17773Kbps based on 1.500000x fudge factor.
! May 18, 2018 21:19:02.879 [13620] DEBUG - TPU: hardware transcoding: using hardware decode accelerator dxva2
! May 18, 2018 21:19:02.879 [13620] DEBUG - TPU: hardware transcoding: zero-copy support not present
! May 18, 2018 21:19:02.879 [13620] DEBUG - TPU: hardware transcoding: final decoder: dxva2, final encoder: qsv
! May 18, 2018 21:19:03.410 [6764] ERROR - [Transcoder] [h264_qsv @ 01f18340] Error during encoding: device failed (-17)
! May 18, 2018 21:19:03.410 [10108] ERROR - [Transcoder] Video encoding failed
! May 18, 2018 21:19:03.457 [0232] DEBUG - Jobs: ‘C:\Program Files (x86)\Plex\Plex Media Server\PlexTranscoder.exe’ exit code for process 5036 is 1 (failure)
! May 18, 2018 21:19:03.457 [5376] DEBUG - Streaming Resource: Changing client to use software decoding
I tested with two other 720p MPEG2 videos, and the logs are pretty similar. It’s consistent. I can PM full logs and/or video samples if needed. But it seems to be happening with any 720p MPEG2 TS file.
Not shown here: 1080i: It has failed repeatedly, but then will randomly work as well. I can get more logs for that, if desired.
Is anyone else seeing these problems with Intel QSV transcoding? I don’t know if this is a current transcoding limitation, a bug, or problem I’m just seeing on multiple machines.