Plex transcoding some h264 to HEVC on devices which seemingly can't handle it

Server Version#: 1.21.4.4079
Player Version#: iOS 7.14 / iPadOS 7.13

I have some files which have proven troublesome to play, they were ripped at a far higher bitrate than necessary so I’ve transcoded them to something more suitable. As a workaround to the original problem, I put a limit on the kids iPads for the bandwidth of the video they could play (720p @ 4Mbps) which forced Plex to transcode the videos from h264 to h264 but lower resolution/bitrate…all good.

That was however a workaround so as above I re-encoded them and replaced the original files. They play great with the bandwidth limitation removed (e.g. streamed straight from the server to the iPad) but if the file is transcoded for any reason (say outside our network) Plex insists on transcoding the h264 file to h265/HEVC and the client just sits buffering indefinately.

First of all, is there anywhere the h264->h265 option can be disabled. I’ve never noticed Plex doing this before, it has always chosen h264->h264 when transcoding was necessary.

Whilst typing this I witnessed my iOS client wait for the buffer, start playing (audio only) then stop and move to the next episode.

image

After exchanging the files with the H.265 version, did you trigger “Analyze” on the affected items?

1 Like

I didn’t because the source files were in MP4 containers and the new ones are MKV, so the new ones simply turned up as new “versions” until I emptied the trash.

I’ll trigger an analyse job now though just for good measure.

What’s the thinking behind the question?

So more interesting/confusing is that it seems this behaviour shouldn’t even technically be possible. Someone quoted this post in a large discussion about transcoding to HEVC which shouldn’t technically be possible?!

Very odd.

1 Like

Weird. With the same server version and an old ipad with (I assume) the most up to date app I get transcoding to h264.
Capture

I get similar results for other files, a 4K rip is transcoded to h264 and played with ease on the iPads (iPad Mini 4) but these files seemingly trigger a condition which should not occur; transcoding to HEVC.

Seen it again with a completely different file.

May I please see DEBUG log files ZIP which captures this ?

  1. Start of a playback session demonstrating this.
  2. Let play for 2 minutes
  3. Stop
  4. wait 20 seconds
  5. Download the zip files
  6. Attach it please so we can take a look
1 Like

OK so we have a PEBKAC. (Problem Exists Between Keyboard And Chair) situation. A while ago I was messing around with profiles - I added an iOS.xml profile which supposedly enabled Spacial Audio on iOS but it seems it also b0rks transcoding in certain circumstances. I deleted the profile, restarted Plex and it’s behaving itself now.

EDIT: This profile: iOS.xml profile for Plex Media Sever. Copying this to iOS.xml and iOS-iPhone5,1.xml in Profiles allowed AC3 audio from iOS device to AppleTV 3 device. If you are running Plex on a Drobo5N then the location of these files are located in /mnt/DroboFS/Shares/DroboApps/plex/Application/Resources/Profiles · GitHub. I can’t see anything relating to HEVC/h265 in the profile but removing it resolved the issue.

Sorry to have wasted your time folks.

The real question is how do we replicate this bug to get HEVC transcoding to work…

4 Likes

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