Sync or Optimize fails when hardware transcoding (Intel) is enabled

Server Version#: 1.13.9.5456
Player Version#: Web Client 3.75.3

OS: Fedora 28
Kernel: 4.18.18-200.fc28.x86_64

File is Atomic Blonde 2017, remux quality. When selecting to sync to a device or to optimize when hardware transcoding is enabled (Intel E3-1245v6), sync fails with error.

Plex Media Server Logs_2018-11-20_13-59-08.zip (4.2 MB)

Thanks for the logs

The following errors were reported by the transcoder

Nov 20, 2018 13:50:42.410 [0x7fe2b6bfe700] ERROR - [Transcoder] Impossible to convert between the formats supported by the filter 'Parsed_hwupload_2' and the filter 'auto_scaler_0'
Nov 20, 2018 13:50:42.411 [0x7fe2cf3fd700] ERROR - [Transcoder] Error reinitializing filters!
Nov 20, 2018 13:50:42.411 [0x7fe2c23ff700] ERROR - [Transcoder] Failed to inject frame into filter network: Function not implemented
Nov 20, 2018 13:50:42.412 [0x7fe2b6bfe700] ERROR - [Transcoder] Error while processing the decoded data for stream #0:0

Does the file '/storage/Movies/Movies/Atomic Blonde 2017 tt2406566/Atomic Blonde 2017 Remux-1080p.mkv' play ok with other players with hardware acceleration?

If it does, would probably need a clip that can be used to reproduce the error

It direct plays fine, as well as transcodes fine (hardware or software encoding) when streaming. This only occurs syncing or optimizing (background transcoding). Fails regardless of device I choose to sync it to or profile I select when optimizing.

Everything works fine when I turn off hardware transcoding.

How best to send you a clip from the file?

Do the logs contain successful playback of same file ? I will have a look tomorrow

I will generate them and upload.

With transcoding using the vaapi encoder decoder

Looks like it falls back to software transcoding, but does so successfully.

Plex Media Server Logs_2018-11-20_16-01-59.zip (5.3 MB)

For sync / Optimize we do not fallback so that explains it

I will discuss with the development team - I think this cropped up before

Something of note: I am able to use ffmpeg and vaapi to convert the file by command line. I noticed that the mkv has a ASS subtitle defaulted, that may be what’s tripping up Plex when it tries to use hardware to convert it:

[Transcoder] Impossible to convert between the formats supported by the filter ‘Parsed_hwupload_2’ and the filter ‘auto_scaler_0’

Indeed. When I select a SRT subtitle before selecting sync, hardware transcoding is used for the sync.

Plex Media Server Logs_2018-11-20_16-01-59.zip (5.3 MB)
ffmpeg_vaapi_hevc.txt (25.1 KB)
atomic_blonde_mediainfo.txt (15.0 KB)

I have a development build to make available for you to try. It should allow sync transcodes to switch to software transcoding if hardware transcoding. Please let me know which binary package you need

Running Fedora 28, x86_64.

Thank you. Link sent by private message

Falls back to software transcoding successfully:

1.14 PMS sync fail logs:
Plex Media Server Logs_2018-12-28_20-09-25.zip (4.9 MB)

1.15 development success logs:
Plex Media Server Logs_2018-12-28_20-18-43.zip (4.8 MB)

Thanks for doing the tests. It appears that with 1.15.0.537 development build it is not starting with the hardware transcoding because it established that it is not working.

I have passed the two sets of logs to the development team

Thanks for your help

It doesn’t seem like hardware transcoding is working at all with this development build. Reverted back to 1.14.

would you be able to give two comparable set of logs - one where hardware transcoding is working on 1.14 and same file with same options for it not working on the development build?

I’m having a slightly similar issue, this was the closest thread I could find based on the logs.
I get the same ffmpeg errors as OP, but it’s during playback of live tv. Live tv is coming from hdhomerun, h264 or mpeg2 streams both cause it. Using intel hw transcoding, happens on ubuntu, official plex docker, and unraid latest plex server versions. Happens when streaming to any device that can’t direct play, roku, web, etc.

It starts during commercials usually, first the stream loses hw decoding, then loses hw encoding, both switching to software decoding/encoding and all playback freezes. If I stop then start the live tv stream it works fine again until the next commercial break.

notable log entries from attached:
ERROR - [Transcoder] Impossible to convert between the formats supported by the filter ‘Parsed_hwupload_2’ and the filter ‘auto_scaler_0’
ERROR - [Transcoder] Error reinitializing filters!
ERROR - [Transcoder] Failed to inject frame into filter network: Function not implemented
ERROR - [Transcoder] Error while processing the decoded data for stream #0:0
DEBUG - Jobs: ‘/usr/lib/plexmediaserver/Plex Transcoder’ exit code for process 986 is 1 (failure)
DEBUG - Streaming Resource: Changing client to use software decoding
plex log.txt (6.2 KB)

Whilst hardware transcoding getting any error would lead to switching to software transcoding.

The issue in this forum thread was that for sync and optimize if we got a failure on hardware transcoding we then failed the sync and optimize and did not bother to retry it with software.

So I think your issue is not the same and in any case i would need the full logs zip to proceed - so please raise a separate topic and describe your problem and attach full logs zip

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