Hardware transcoding issues with PMS 1.24.x and 1.25.x? Any details on what the HW transcoding issues are and is a fix in progress?

@MovieFan.Plex

Thanks for investigating my issue.
I disabled Tone Mapping today and also tested two 4K HDR TrueHD clips with a 1080P TCL Roku TV and it also did not work, as expected given your explanation (assuming that TV also does not support 10-bit video).

More findings:
In fact, it seems that ALL 4K HDR clips (not just TrueHD audio ones, but even clips with EAC3 5.1 audio e.g.) NOW no longer play on 1080P devices that (presumably) do not support 10-bit video either, so the Tone Mapping issue being the culprit makes sense.

The majority of my TVs are 4K (all the main areas / rooms), so I do not use the 1080P ones (except the small one on the porch) and cannot pinpoint timing, but I guess this all started with my ā€œforcedā€ (see why below) upgrade from PMS 1.23 to 1.25.

I say ā€œforcedā€ because that was when that early April PlexTV (client) update ā€œborked TrueHDā€ even on 4K HDR TVs (per another long thread).
At that time, since no TrueHD clips played anymore after that PlexTV client update (in conjunction with the PMS version I had at the time - 1.23), like other users, I was forced to finally upgrade to PMS 1.25 (knowing transcoding was broken, but I balanced that with knowing the TrueHD fix was necessary to be able to keep playing TrueHD clips on 4K TVs).

So my assumption is none of my 4K HDR clips would have played with Plex on my 1080P devices since April upgrade to PMS 1.25 …

8 posts were split to a new topic: Clients cannot see server

From my limited testing it appears to work OK.

I still have 2 devices to test this on which I won’t have access to until later this evening so I’ll update with my findings.

Thank you for pushing through this fix.

EDIT: Tested on the iPad Mini 4 and this is now hw transcoding, although see Transcoding on iPad Mini 4 / direct plays on iPad 8th Gen - #10 by nickking360 as I’d like to know for what reason and when this changed. Thanks.

IT WORKS!!! Thank you @anon18523487 for all your efforts and all your patient with all us, non believers users that thought PLEX forgot us. THANK YOU.

Its been well over a month, and having worked with two mods to replicate the issue, both have confirmed the issue exists and forwarded it to the development team. Since then, over a dozen updates have come out, none to address this transcoding crashing failure…

How long does it typically take to fix issues?

Literally plex is currently unusable for most transcoding because of this bug (a bug which the mods have reproduced by working with me on their end, indepedant of my server!)

:frowning:

@MovieFan.Plex,

Any news regarding addressing the Tone Mapping issue which is preventing 4K clips from working on 1080P Plex clients (devices such as Roku TVs or Roku 3) that do not have 10-bit video support?
(Most of my TVs and Plex clients support 4K HDR / DV, but I still have 2 or 3 exceptions (1080P devices without 10-bit video support).

The fix will be out in the next release. To be clear, the fix is to play the files again as-is, so it may look horrible on a TV that doesn’t support 10-bit.

Thanks, understood / noted. We won’t set our expectations too high then.

Luckily at home this is a non issue: Other than the guest room TV (which we do no use ourselves), the only other 1080P TV is in an area we do not watch Plex anyway (workout area).

For us it may be more relevant when watching Plex content remotely where the only available TVs may be non-4K sets without 10 bit support.

When is that next release arriving?

Could you please advise if this is the same issue as the one below (24 hours to transcode a 60 minute episode):
image


image
image

FYI – I needed to do this ā€˜optimisation’ because while this will work perfectly from the iOS Plex app on my iPhone (even when then cast to my Sony TV running Android), it wont work directly on the Android TV app on either the nVidia Shield or the Sony TV)

Not the same issue. It does appear to not use hardware transcoding for that optimization, but I can’t say why. I’ll need the logs from the start of that.

Edit - Can you post the entire xml info for that video? I can’t tell why it wouldn’t direct play in the first place based on that image.

Here you go…

50680.xml.txt (4.4 KB)

The only thing I see in that info is that the aspect ratio is wrong. According to the resolution, it is 2.39 but the file lists it as 2.35. I would need to see the server logs to check what it is doing but it’s possible it’s transcoding to get the aspect ratio to match the 2.35.

Another thing to check in your client settings is to make sure Automatically Adjust Bitrate is turned off. That option forces a transcode.

Here’s the logs.

I’ve confirmed that Automatically Adjust Bitrate is turned off on my Android TV and Plex web client.

Edit - I removed your log as it has info on your public IP. I found what I needed.

Your TV is not on the same network as your server so it’s treating the connection as remote and using the remote quality setting. The remote quality setting on the client is set to 2 Mbps. Your file is 14 Mbps, so that is why it is being transcoded.

This is the public IP of your TV. Your server shows a public IP at 155.x.x.x.

Jul 06, 2022 19:19:36.123 [6542] DEBUG - Request: [169.x.x.x:47860 (WAN)] GET /video/:/transcode/universal/decision?audioBoost=100&autoAdjustQuality=0&directPlay=0&directStream=1&directStreamAudio=1&fastSeek=1&hasMDE=1&location=wan&maxVideoBitrate=2000&mediaBufferSize=74944&mediaIndex=0&partIndex=0&path=%2Flibrary%2Fmetadata%2F50770&protocol=*&session=f59fd00fe9a83288-com-plexapp-android&subtitleSize=100&videoBitrate=2000&videoQuality=60&videoResolution=3840x2160

So, raise the remote quality setting to prevent the transcode or figure out why it appears to be on a different network than your server. You could also include that public IP to your PMS settings to treat it as local.

On the bright side, it is using hardware decoding and encoding.

Jul 06, 2022 19:19:36.463 [6542] DEBUG - [Req#66eab/Transcode/f59fd00fe9a83288-com-plexapp-android] TPU: hardware transcoding: final decoder: mediacodecndk, final encoder: mediacodecndk

Thanks, I am definitely on the same network as the NVIDIA Shield (where my Plex Server resides). In fact, playback on the Plex Client on the same Shield device doesnt work either (so that is definitely the same network!)

I think that the log entry you found might have been a remote user trying to play that same content.
I have now set the remote limits to Max, and the episode buffered badly (after waiting for about 3 mins for playback to start)
image

I cleared the logs and exported a new log set (attached).
Plex Media Server Logs_2022-07-06_22-08-44.zip (3.0 MB)

In this case you are playing on Plex Web (in Firefox). Your video is 10-bit HEVC. Firefox does not support HEVC so it has to transcode. Your logs do confirm this is local.

Is your Shield hardwired or WiFi? If WiFi, check that it is on the correct SSID. Your logs do show a different public IP accessing your server.

What specifically doesn’t work? Nothing plays, it can’t connect to your server, it connects remotely, etc.? The android logs from the Shield will be best to diagnose that issue.

Playback on either devices fails i.e. a orange circle animation for a very long time (10+ minutes), followed by either no playback (on Sony Android TV) or intense buffering (on Plex Web client).

FYI – This is what happens when I press play from either client – intense local traffic … then nothing.

I disabled WiFi on both the Shield and Android TV to force it to use Ethernet and eliminate any chance of them using the WiFi connection.

image
image

Ok, get me the android logs from the Shield after reproducing this issue.

Here you go.

Android Log.txt (4.7 MB)

Huh. Your logs indicate the subtitles cannot be direct played nor transcoded. That doesn’t make sense. Can you turn off the subtitles and see if it will play then?

If that works, can you extract the srt from the file and send it to me? I’m wondering if it’s not actually srt but named that way and the Android app is failing trying to render it.