# Hardware Transcoding Failed

**URL:** <https://forums.plex.tv/t/hardware-transcoding-failed/853635>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [September 15, 2023, 5:23am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635 "2023-09-15T05:23:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 15, 2023, 5:23am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/1 "2023-09-15T05:23:17Z")

</div>

Server Version#: 1.32.6+  
Player Version#: any  
OS: Debian 12.1 x64  
GPU: AMD RX 550

With 1.32.5, hardware transcoding is working, even though Android client not working.

Updated to 1.32.6/1.32.7, PMS got the errors below, it seems that you shoud update radeonsi driver too!!!

Sep 15, 2023 12:56:57.291 [140366893706040] ERROR - [Req#3b4/Transcode] [FFMPEG] - libva: dlopen of /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux- x86\_64/radeonsi\_drv\_video.so failed: Error relocating /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86\_64/radeonsi\_drv\_video.so: \_ZTTNSt3\_\_219bas ic\_istringstreamIcNS\_11char\_traitsIcEENS\_9allocatorIcEEEE: symbol not found  
Sep 15, 2023 12:56:57.291 [140366893706040] ERROR - [Req#3b4/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).  
Sep 15, 2023 12:56:57.295 [140366893706040] ERROR - [Req#3b4/Transcode] [FFMPEG] - libva: dlopen of /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux- x86\_64/radeonsi\_drv\_video.so failed: Error relocating /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86\_64/radeonsi\_drv\_video.so: \_ZTTNSt3\_\_219bas ic\_istringstreamIcNS\_11char\_traitsIcEENS\_9allocatorIcEEEE: symbol not found  
Sep 15, 2023 12:56:57.295 [140366893706040] ERROR - [Req#3b4/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).  
Sep 15, 2023 12:56:57.299 [140366893706040] ERROR - [Req#3b4/Transcode] [FFMPEG] - libva: dlopen of /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux- x86\_64/radeonsi\_drv\_video.so failed: Error relocating /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86\_64/radeonsi\_drv\_video.so: \_ZTTNSt3\_\_219bas ic\_istringstreamIcNS\_11char\_traitsIcEENS\_9allocatorIcEEEE: symbol not found  
Sep 15, 2023 12:56:57.299 [140366893706040] ERROR - [Req#3b4/Transcode] [FFMPEG] - Failed to initialise VAAPI connection: -1 (unknown libva error).  
Sep 15, 2023 12:56:57.303 [140366893706040] ERROR - [Req#3b4/Transcode] [FFMPEG] - libva: dlopen of /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux- x86\_64/radeonsi\_drv\_video.so failed: Error relocating /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86\_64/radeonsi\_drv\_video.so: \_ZTTNSt3\_\_219bas ic\_istringstreamIcNS\_11char\_traitsIcEENS\_9allocatorIcEEEE: symbol not found

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 15, 2023, 6:34am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/2 "2023-09-15T06:34:07Z")

</div>

really hard to tell from that block of error messages but it looks like either:

1. There is a system library conflict (Error relocating)  
-or-
2. The card isn’t supported by the drivers (2017 GPU??) – what is the media ?  
-or-
3. The transcoder regression is impacting AMD as well.  
-or-
4. you have HDR tone mapping enabled on the AMD – (AMD is SDR only at present)

If you wish, you can quick try this as it’s known to work.

> **[plexmediaserver\_1.32.5.7349-8f4248874\_amd64.deb](https://drive.google.com/file/d/1wq35oWVL39BzQQs9mNiL-lMNsIIDBMvY/view?usp=sharing)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 15, 2023, 7:00am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/3 "2023-09-15T07:00:28Z")

</div>

Thank you Chuck, but you should read my msg more carefully.  
Here’s my reply:

1. No, I even tried to delete the .so lib and the soft link in the cache, but after PMS restarted there is an exactly same .so file.
2. AMD RX 550, I mentioned before.
3. …
4. No, just H264 SDR
5. 1.32.5 works, but as I mentioned, Android client is disfunctional with this version.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 16, 2023, 4:17am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/4 "2023-09-16T04:17:48Z")

</div>

I don’t know if you’re aware yet.

1. We’ve reverted PMS 1.32.6 and 1.32.7 due to flaws we missed. (HW transcoding fails for most users)

2. 1.32.5.7349 is now public

Which “Android client” as there are several; Android TV (Tv sets), Android mobile/tablet, Nvidia Shield.

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 16, 2023, 4:52am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/5 "2023-09-16T04:52:12Z")

</div>

I saw that, so I will wait for the next beta.

For the android client issue with PMS 1.32.5, see the related thread

> Blockquote  
> [Android APP No Longer Starts to Play any Video After PMS Updated to 1.32.5.xxxx](https://forums.plex.tv/t/android-app-no-longer-starts-to-play-any-video-after-pms-updated-to-1-32-5-xxxx/848467/1)

and I guess the below fix in PMS 1.32.7 is for this issue:

- (Transcoding) Some HW encoded video would not play on Android (#14384)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 16, 2023, 5:40am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/6 "2023-09-16T05:40:37Z")

</div>

As soon as we base PMS resolved (almost ready).  
we will reapply the fixes which would be in PMS 1.32.6 and 1.32.7

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 19, 2023, 2:35am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/7 "2023-09-19T02:35:28Z")

</div>

Tested with 1.32.6.7515, HW transcoding worked, and Android client is also OK, but CPU loading is high up to 60%, not like a real GPU hardware transcoding !?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 19, 2023, 6:28am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/8 "2023-09-19T06:28:10Z")

</div>

subtitles ?

I need more information please ? (DEBUG logs ZIP which capture the playback ?)

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 19, 2023, 8:33am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/9 "2023-09-19T08:33:32Z")

</div>

not subtitles, there is no difference of CPU loading when disabled subtitiles.

[Plex Media Server Logs\_2023-09-19\_16-32-42.zip](https://forums.plex.tv/uploads/short-url/dggTTRqTKge0HjQTaGAZNxj838s.zip) (523.3 KB)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 19, 2023, 5:50pm UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/10 "2023-09-19T17:50:31Z")

</div>

@Shea-Yone

You turned off [DEBUG logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1).

I can only see:

1. All the network errors

```auto
Sep 19, 2023 16:09:08.502 [139725820656440] DEBUG - NetworkInterface: Notified of network changed (force=0)
Sep 19, 2023 16:09:08.503 [139725820656440] DEBUG - Network change notification but nothing changed.
Sep 19, 2023 16:09:08.503 [139725820656440] DEBUG - NetworkInterface: received Netlink message len=1744, type=RTM_NEWLINK, flags=0x0
Sep 19, 2023 16:09:08.503 [139725820656440] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=14617, flags=0x1002, change=0x0
Sep 19, 2023 16:09:08.503 [139725820656440] DEBUG - Network change.
Sep 19, 2023 16:09:08.503 [139725820656440] DEBUG - NetworkInterface: Notified of network changed (force=0)
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - Network change notification but nothing changed.
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - NetworkInterface: received Netlink message len=1744, type=RTM_NEWLINK, flags=0x0
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=14617, flags=0x1002, change=0x100
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - Network change.
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - NetworkInterface: Notified of network changed (force=0)
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - Network change notification but nothing changed.
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - NetworkInterface: received Netlink message len=408, type=RTM_NEWLINK, flags=0x0
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - NetworkInterface: Netlink information message family=7, type=1, index=14617, flags=0x1002, change=0x0
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - Network change.
Sep 19, 2023 16:09:08.504 [139725820656440] DEBUG - NetworkInterface: Notified of network changed (force=0)
Sep 19, 2023 16:09:08.505 [139725820656440] DEBUG - Network change notification but nothing changed.
Sep 19, 2023 16:09:08.505 [139725820656440] DEBUG - NetworkInterface: received Netlink message len=1744, type=RTM_NEWLINK, flags=0x0
Sep 19, 2023 16:09:08.505 [139725820656440] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=14617, flags=0x1043, change=0x1
Sep 19, 2023 16:09:08.505 [139725820656440] DEBUG - Network change.
Sep 19, 2023 16:09:08.505 [139725820656440] DEBUG - NetworkInterface: Notified of network changed (force=0)
Sep 19, 2023 16:09:08.506 [139725820656440] DEBUG - Network change notification but nothing changed.
Sep 19, 2023 16:09:08.506 [139725820656440] DEBUG - NetworkInterface: received Netlink message len=408, type=RTM_NEWLINK, flags=0x0
Sep 19, 2023 16:09:08.506 [139725820656440] DEBUG - NetworkInterface: Netlink information message family=7, type=1, index=14617, flags=0x1043, change=0x0
Sep 19, 2023 16:09:08.507 [139725820656440] DEBUG - Network change.
Sep 19, 2023 16:09:08.507 [139725820656440] DEBUG - NetworkInterface: Notified of network changed (force=0)
Sep 19, 2023 16:09:08.507 [139725820656440] DEBUG - Network change notification but nothing changed.
Sep 19, 2023 16:09:08.507 [139725820656440] DEBUG - NetworkInterface: received Netlink message len=408, type=RTM_NEWLINK, flags=0x0
Sep 19, 2023 16:09:08.507 [139725820656440] DEBUG - NetworkInterface: Netlink information message family=7, type=1, index=14617, flags=0x1043, change=0x0
Sep 19, 2023 16:09:08.507 [139725820656440] DEBUG - Network change.
Sep 19, 2023 16:09:08.507 [139725820656440] DEBUG - NetworkInterface: Notified of network changed (force=0)
Sep 19, 2023 16:09:08.508 [139725820656440] DEBUG - Network change notification but nothing changed.
Sep 19, 2023 16:09:08.508 [139725820656440] DEBUG - NetworkInterface: received Netlink message len=1744, type=RTM_NEWLINK, flags=0x0
Sep 19, 2023 16:09:08.508 [139725820656440] DEBUG - NetworkInterface: Netlink information message family=0, type=1, index=14617, flags=0x1043, change=0x0
Sep 19, 2023 16:09:08.508 [139725820656440] DEBUG - Network change.
Sep 19, 2023 16:09:08.508 [139725820656440] DEBUG - NetworkInterface: Notified of network changed (force=0)
Sep 19, 2023 16:09:08.508 [139725820656440] DEBUG - Network change notification but nothing changed.
Sep 19, 2023 16:09:08.508 [139725820656440] DEBUG - NetworkInterface: received Netlink message len=408, type=RTM_NEWLINK, flags=0x0
Sep 19, 2023 16:09:08.508 [139725820656440] DEBUG - NetworkInterface: Netlink information message family=7, type=1, index=14617, flags=0x1043, change=0x0
Sep 19, 2023 16:09:08.508 [139725820656440] DEBUG - Network change.

```

1. Using Hardware Decode (because there is a subtitle in the file)

```auto
Sep 19, 2023 16:16:57.529 [139725851814712] DEBUG - [Req#4fc64/Transcode] We're going to try to auto-select an audio stream for account 1.
Sep 19, 2023 16:16:57.529 [139725851814712] DEBUG - [Req#4fc64/Transcode] Selecting best audio stream for part ID 141042 (language: en)
Sep 19, 2023 16:16:57.529 [139725851814712] DEBUG - [Req#4fc64/Transcode] Audio Stream: 386679, Subtitle Stream: 386680
Sep 19, 2023 16:16:57.531 [139725851814712] DEBUG - [Req#4fc64/Transcode] Cleaning directory for session bgcp6iu7ozcw6ul2z1e2chcx ()
Sep 19, 2023 16:16:57.532 [139725851814712] DEBUG - [Req#4fc64/Transcode] Starting a transcode session bgcp6iu7ozcw6ul2z1e2chcx at offset -1.0 (state=3)
Sep 19, 2023 16:16:57.532 [139725851814712] DEBUG - [Req#4fc64/Transcode] TPU: hardware transcoding: using hardware decode accelerator vaapi
Sep 19, 2023 16:16:57.532 [139725851814712] DEBUG - [Req#4fc64/Transcode] TPU: hardware transcoding: zero-copy support not present
Sep 19, 2023 16:16:57.532 [139725851814712] DEBUG - [Req#4fc64/Transcode] [Universal] Using local file path instead of URL: /media/sheayone/BAK14-0/Movie/Director/Takashi Miike/Hara-Kiri.Death.Of.A.Samurai.2011/Hara-Kiri.Death.Of.A.Samurai.2011.1080p.BluRay.x264.DTS-WiKi.mkv
Sep 19, 2023 16:16:57.532 [139725851814712] DEBUG - [Req#4fc64/Transcode/HCl#1dc] HTTP requesting GET http://127.0.0.1:32400/library/streams/386680?X-Plex-Token=xxxxxxxxxxxxxxxxxxxx
Sep 19, 2023 16:16:57.537 [139725853924152] DEBUG - Request: [127.0.0.1:42420 (Loopback)] GET /library/streams/386680 (14 live) #4fc6e GZIP Signed-in Token (Shea Yone) (Sheas-MBP)
Sep 19, 2023 16:16:57.539 [139725853924152] DEBUG - [Req#4fc6e] Calculated media file path for path [file:///media/sheayone/BAK14-0/Movie/Director/Takashi%20Miike/Hara-Kiri.Death.Of.A.Samurai.2011/Hara-Kiri.Death.Of.A.Samurai.2011.1080p.BluRay.x264.DTS-WiKi.chi.srt]: ["/media/sheayone/BAK14-0/Movie/Director/Takashi Miike/Hara-Kiri.Death.Of.A.Samurai.2011/Hara-Kiri.Death.Of.A.Samurai.2011.1080p.BluRay.x264.DTS-WiKi.chi.srt"]
Sep 19, 2023 16:16:57.539 [139725853924152] DEBUG - Content-Length of /media/sheayone/BAK14-0/Movie/Director/Takashi Miike/Hara-Kiri.Death.Of.A.Samurai.2011/Hara-Kiri.Death.Of.A.Samurai.2011.1080p.BluRay.x264.DTS-WiKi.chi.srt is 46574 (of total: 46574).

```

Can you please recreate with:

1. [DEBUG logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1) enabled
2. Confirm HDR is disabled (even on 1080p)
3. Test both a file with and without embedded subtitles.

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 20, 2023, 1:40am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/11 "2023-09-20T01:40:44Z")

</div>

@ChuckPa  
See the latest log in the package, I have enabled [DEBUG logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1).

and FYI, I restarted PMS, and CPU loading looks good now…5%-, just like 1.32.5…

Anyway, thanks for your work.

But wait a minute, Android client is disfunctional again, WTF…

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 20, 2023, 2:34am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/12 "2023-09-20T02:34:56Z")

</div>

@Shea-Yone

Play with Plex/web.

1. It’s the most basic player
2. If everything works on Plex/web ( transcoding, tonemapping ) we’re good.

Saying “Android client” can be: Android TV, Android phone, Android tablet, Android set top box (nvidia shield, etc). Like saying “Apple client is dysfunctional” … not specific enough.

We’ll make another player thread if need be

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 20, 2023, 3:56am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/13 "2023-09-20T03:56:10Z")

</div>

I have provided enough contexts for you if you read the info above carefully.

“Android client is disfunctional” means if hardware transcoding is enabled, android client cannot play any video and only with android client, all other platform clients are OK. And this issue was confirmed and replicated on my server by your team members @sixones. And he said:

> I’ve filled the issue with the server team, even though its only a problem on Android, it seems the transcoded video is corrupt and theres not much we can do to solve that on the client.

> Thanks . the server team think they know what the problem is, and they are looking into it.

As I said, I guess the fix below in PMS 1.32.7 is for this issue:

> (Transcoding) Some HW encoded video would not play on Android (#14384)

So, please review this issue with your coworkers.

Thanks.

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 21, 2023, 3:36am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/14 "2023-09-21T03:36:03Z")

</div>

Updated to PMS **1.32.6.7521**.

Android client still not works with hw transcoding ☹

[Plex Media Server Logs\_2023-09-21\_11-32-16.zip](https://forums.plex.tv/uploads/short-url/1X3heYmAVhZgs0RHiS9FJdNvtXb.zip) (3.4 MB)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 21, 2023, 8:08pm UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/15 "2023-09-21T20:08:00Z")

</div>

We have reviewed this again in depth.

1. HW transcoding is indeed working on your AMD GPU

```auto
Sep 21, 2023 11:27:51.539 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] Starting a transcode session e27feef2e9561c4b-com-plexapp-android at offset -1.0 (state=3)
Sep 21, 2023 11:27:51.540 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] TPU: hardware transcoding: using hardware decode accelerator vaapi
Sep 21, 2023 11:27:51.540 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] TPU: hardware transcoding: zero-copy support present
Sep 21, 2023 11:27:51.540 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] TPU: hardware transcoding: using zero-copy transcoding
Sep 21, 2023 11:27:51.540 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [Universal] Using local file path instead of URL: /media/sheayone/BAK14-1/Movie/Director/Ridley Scott/Thelma.and.Louise.1991/Thelma.and.Louise.1991.CC.BluRay.1080p.DD5.1.x264-BMDru.mkv
Sep 21, 2023 11:27:51.540 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] Codecs: hardware transcoding: testing API vaapi for device '/dev/dri/renderD128' (Baffin [Radeon RX 550 640SP / RX 560/560X])
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x3231564e -> nv12.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x30313050 -> p010le.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x36313050 -> unknown.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x30323449 -> yuv420p.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x32315659 -> yuv420p.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x56595559 -> unknown.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x32595559 -> yuyv422.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x59565955 -> uyvy422.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x30303859 -> gray.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x50343434 -> yuv444p.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x41524742 -> bgra.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x41424752 -> rgba.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x58524742 -> bgr0.
Sep 21, 2023 11:27:51.552 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Format 0x58424752 -> rgb0.
Sep 21, 2023 11:27:51.553 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Created surface 0x1.
Sep 21, 2023 11:27:51.553 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] [FFMPEG] - Direct mapping disabled: deriving image does not work: 1 (operation failed).
Sep 21, 2023 11:27:51.559 [140675059387192] INFO - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] Preparing driver rsv for GPU Baffin [Radeon RX 550 640SP / RX 560/560X]
Sep 21, 2023 11:27:51.559 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android/DriverDL/rsv] Skipping download; already exists
Sep 21, 2023 11:27:51.559 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android] TPU: hardware transcoding: final decoder: vaapi, final encoder: vaapi
Sep 21, 2023 11:27:51.560 [140675059387192] DEBUG - [Req#ec/Transcode/e27feef2e9561c4b-com-plexapp-android/JobRunner] Job running: FFMPEG_EXTERNAL_LIBS='/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Codecs/a31c019-4614-linux-x86_64/' LIBVA_DRIVERS_PATH="/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Cache/va-dri-linux-x86_64" X_PLEX_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "/usr/lib/plexmediaserver/Plex Transcoder" -codec:0 h264 -hwaccel:0 vaapi -hwaccel_fallback_threshold:0 10 -hwaccel_output_format:0 vaapi -hwaccel_device:0 vaapi -codec:1 ac3 -analyzeduration 20000000 -probesize 20000000 -i "/media/sheayone/BAK14-1/Movie/Director/Ridley Scott/Thelma.and.Louise.1991/Thelma.and.Louise.1991.CC.BluRay.1080p.DD5.1.x264-BMDru.mkv" -filter_complex "[0:0]hwupload[0];[0]scale_vaapi=w=720:h=302:format=nv12[1];[1]hwupload[2]" -map "[2]" -codec:0 h264_vaapi -b:0 1272k -maxrate:0 1697k -bufsize:0 3394k -bsf:0 extract_extradata -r:0 23.975999999999999 -force_key_frames:0 "expr:gte(t,n_forced*8)" -filter_complex "[0:1] aresample=async=1:ochl='stereo':rematrix_maxval=0.000000dB:osr=48000[3]" -map "[3]" -metadata:s:1 language=eng -codec:1 libopus -b:1 193k -map 0:4 -metadata:s:2 language=zho -codec:2 ass -strict_ts:2 0 -map "0:t?" -codec:t copy -segment_format matroska -f ssegment -individual_header_trailer 0 -flags +global_header -segment_header_filename header -segment_time 8 -segment_start_number 0 -segment_copyts 1 -segment_time_delta 0.0625 -segment_list "http://127.0.0.1:32400/video/:/transcode/session/e27feef2e9561c4b-com-plexapp-android/cb1b9444-e76e-4727-b258-01e23a4782f8/manifest?X-Plex-Http-Pipeline=infinite" -segment_list_type csv -segment_list_size 5 -segment_list_separate_stream_times 1 -segment_list_unfinished 1 -segment_format_options output_ts_offset=10 -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:/dev/dri/renderD128 -filter_hw_device vaapi -y -nostats -loglevel quiet -loglevel_plex error -progressurl http://127.0.0.1:32400/video/:/transcode/session/e27feef2e9561c4b-com-plexapp-android/cb1b9444-e76e-4727-b258-01e23a4782f8/progress

```

1. You have ASS subtitles in the video file.

```auto
 -codec:2 ass 

```

1. ASS subtitle conversion is not very CPU efficient in FFMPEG.

2. Audio is being converted to OPUS

```auto
 -codec:1 libopus -b:1 193k 

```

1. You state 60% CPU utilization.

2. In “top”, 60% CPU utilization is 60% of a single thread. The Xeon E3-1230 v2. has 4 cores / 8 threads yieldinging 5088 passmarks.

Ref: [PassMark - Intel Xeon E3-1230 @ 3.20GHz - Price performance comparison](https://www.cpubenchmark.net/cpu.php?cpu=Intel+Xeon+E3-1230+%40+3.20GHz&id=1199)

Are you stating that 60% CPU utilization on this CPU. where 800% utilization being displayed is what Linux will show if the CPU is fully consumed is how you define “Not working” ?

Also, we have one item to we ask you to test. Specifically , PMS 1.32.1 and see if the behavior is the same.

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 21, 2023, 8:45pm UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/16 "2023-09-21T20:45:05Z")

</div>

@ChuckPa

Thanks for your work.

The CPU loading is OK (\<10%) with **1.32.6.7521** , even with ass subtitles. This is not a problem now.

The problem is **Android client cannot start to play any movie (stuck at loading) with hw transcoding**, and only Android client, all other clients are OK, such as Web/Windows/Mac/iOS. This problem is started from 1.32.5, since that version starts to support amd gpu hw transcoding on linux.

I saw **1.32.6.7521** merged #14384, but it’s no difference with \*\* 1.32.5 \*\*

> (Transcoding) Some HW encoded video would not play on Android (#14384)

Please, Chuck , keep up with my steps 😃

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 22, 2023, 3:57am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/17 "2023-09-22T03:57:09Z")

</div>

Please keep up with me ?

> [@ChuckPa](#):
>
> Are you stating that 60% CPU utilization on this CPU. where 800% utilization being displayed is what Linux will show if the CPU is fully consumed is how you define “Not working” ?

How do you define, “Not working” ?

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 22, 2023, 4:06am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/18 "2023-09-22T04:06:10Z")

</div>

The problem is **Android client cannot start to play any movie (stuck at loading) with hw transcoding**, and only Android client, all other clients are OK, such as Web/Windows/Mac/iOS. This problem is started from 1.32.5, since that version starts to support amd gpu hw transcoding on linux.

I saw **1.32.6.7521** merged #14384, but it’s no difference with \*\* 1.32.5 \*\*

> (Transcoding) Some HW encoded video would not play on Android (#14384)

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 22, 2023, 4:18am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/19 "2023-09-22T04:18:28Z")

</div>

Thank you. I will pass this to both the transcoder engineer and the Android engineer.

I know the change which happened and will let them resolve it.

Please capture the fault and download the player logs.  
The android engineer will want to see and confirm.

[https://support.plex.tv/articles/115002143453-settings-plex-for-android-mobile/](https://support.plex.tv/articles/115002143453-settings-plex-for-android-mobile/)

---

<div class="post-metadata">

**Author:** ![Shea-Yone](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/shea-yone/32/197866_2.png) [@Shea-Yone](https://forums.plex.tv/u/Shea-Yone)\
**Post date:** [September 22, 2023, 5:19am UTC](https://forums.plex.tv/t/hardware-transcoding-failed/853635/20 "2023-09-22T05:19:22Z")

</div>

[android logs：](https://support.plex.tv/articles/201573117-android-android-tv-fire-tv-logs/)  
[plex\_android\_log.zip](https://forums.plex.tv/uploads/short-url/za4qD7B9zrQaMmNnQV7wYrsKd4V.zip) (23.4 KB)

[Next page](https://forums.plex.tv/t/hardware-transcoding-failed/853635.md?page=2)
