PMS transcoding h264 broken on DS920+

Server Version#: 1.41.4.9463
Player Version#: 4.143.0
After upgrading my PMS to the latest version available for my DS920+ (running DSM 7.2.2-72806 Update 3), transcoding fails.

As far as I can tell from the logs, the h264 codec is missing and upon download, the Plex webserver returns a 429:

Feb 14, 2025 19:56:19.047 [139868376984376] INFO - [Req#b3/Transcode] CodecManager: obtaining decoder 'h264'
Feb 14, 2025 19:56:19.047 [139868376984376] DEBUG - [Req#b3/Transcode/HCl#48] HTTP requesting GET https://plex.tv/api/codecs/h264_decoder?build=linux-x86_64-standard&deviceId={deviceID}&oldestPreviousVersion=1%2E24%2E5%2E5173-8dcc73a59&version=e613bce-97f23d579c1001d8e9cc0d2e
Feb 14, 2025 19:56:19.077 [139868464474936] **DEBUG - [HttpClient/HCl#48] HTTP/1.1 (0.0s) 429 response from GET https://plex.tv/api/codecs/h264_decoder?build=linux-x86_64-standard&deviceId={deviceID}&oldestPreviousVersion=1%2E24%2E5%2E5173-8dcc73a59&version=e613bce-97f23d579c1001d8e9cc0d2e (reused)**
Feb 14, 2025 19:56:19.077 [139868424203064] ERROR - [Req#b3/Transcode] Codecs: Failed to download XML for codec 'h264_decoder'
Feb 14, 2025 19:56:19.077 [139868376984376] ERROR - [Req#b3/Transcode] Error configuring transcoder: Decoder install failed: h264
Feb 14, 2025 19:56:19.077 [139868376984376] DEBUG - [Req#b3/Transcode] Streaming Resource: Terminating session 0x7f35a59c6808:fzz4c9ujaujcxu3p27r56xxq which is using transcoder slot.  Used slots is now 0
Feb 14, 2025 19:56:19.077 [139868376984376] DEBUG - [Req#b3/Transcode] Streaming Resource: Terminated session 0x7f35a59c6808:fzz4c9ujaujcxu3p27r56xxq with reason Conversion failed. A required codec could not be found or failed to install.

The body of the 429 response reads: Response code=“429” status=“Limit of devices using codec exceeded”

Please advise, thanks!

Hm, the plot thickens. After manually downloading the h264 codec (curl-ing eventually worked) and placing it in the codecs directory, I now get this:

Feb 14, 2025 20:37:15.176 [140594839984952] INFO - [Req#1ed/Transcode] CodecManager: obtaining encoder 'aac'
Feb 14, 2025 20:37:15.177 [140594839984952] DEBUG - [Req#1ed/Transcode/HCl#6d] HTTP requesting GET https://plex.tv/api/codecs/aac_encoder?build=linux-x86_64-standard&deviceId={deviceID}&oldestPreviousVersion=1%2E24%2E5%2E5173-8dcc73a59&version=e613bce-97f23d579c1001d8e9cc0d2e
Feb 14, 2025 20:37:15.206 [140594850937656] DEBUG - [HttpClient/HCl#6d] HTTP/1.1 (0.0s) 429 response from GET https://plex.tv/api/codecs/aac_encoder?build=linux-x86_64-standard&deviceId={deviceID}&oldestPreviousVersion=1%2E24%2E5%2E5173-8dcc73a59&version=e613bce-97f23d579c1001d8e9cc0d2e (reused)
Feb 14, 2025 20:37:15.206 [140594853063480] ERROR - [Req#1ed/Transcode] Codecs: Failed to download XML for codec 'aac_encoder'
Feb 14, 2025 20:37:15.206 [140594839984952] ERROR - [Req#1ed/Transcode] Error configuring transcoder: Encoder install failed: aac

The HTTP 429 error is Plex.tv telling you “Too many download attempts”
(PMS will continue to download the codec until it succeeds. Plex.tv is putting on the limits)

When PMS is unable to install the codec (root problem)
and probably no longer in your logs (would need the entire “Plex Media Server.log.*” set to be certain.

Most common causes of this problem are:

  1. DNS (doesn’t look to be the case in what you shared)
  2. PMS cannot save the codec (not reported in logs)

Given #2 is the more likely scenario, then somewhere in the PlexMediaServer share folder, user PlexMediaServer does not own everything at the Linux level

What have you done in the PlexMediaServer shared folder?
Obviously, you’ve minimally tried to upload a codec (wrong username??)

Thanks Chuck. Don’t think that is the issue either as I have made sure to update the permissions of the file to match the rest of the Codecs directory.

drwx------+ 1 PlexMediaServer PlexMediaServer     218 Feb 14 20:28 ..
-rwx------  1 PlexMediaServer PlexMediaServer 1596480 Feb 14 20:28 libh264_decoder.so

Other than this file I have not touched the rest of the directory structure, it is all owned by the PlexMediaServer user and group.

Hope this helps.

We found it.

You’re using 1.41.5.9482 ?

I am getting the same error message. I just upgraded to 1.41.4.9463

Feb 14, 2025 16:12:01.971 [139933193038648] ERROR - [Req#213a/Transcode] Codecs: Failed to download XML for codec 'aac_encoder'
Feb 14, 2025 16:12:01.971 [139933188324152] ERROR - [Req#213a/Transcode] Error configuring transcoder: Encoder install failed: aac

My permissions show the same as well.

Wow, that was quick! No, I am on 1.41.4.9463.

Logs ZIP please ?

Trying to run this to ground

Debug logs or verbose?

Same issue over here with version 1.41.4.9463 on Windows. Can’t play anything and it’s giving a Codec error.

I’m retesting 1.41.3 to track down the error

I am running 1.41.4.9463 and I see the same SHA1 error message in my logs:

Feb 14, 2025 14:43:51.187 [4588] DEBUG - [HttpClient/HCl#1] HTTP/1.1 (0.6s) 200 response from GET https://plex.tv/api/codecs/aac_decoder?build=windows-x86_64-standard&deviceId=b586dd22-4fa5-46fc-b1de-a31ec0c12fba&oldestPreviousVersion=1.18.3.2156-349e9837e&version=e613bce-97f23d579c1001d8e9cc0d2e
Feb 14, 2025 14:43:51.188 [7624] DEBUG - [GetFile/HCl#4] HTTP requesting GET https://downloads.plex.tv/codecs/e613bce-97f23d579c1001d8e9cc0d2e/windows-x86_64-standard/aac_decoder.dll
Feb 14, 2025 14:43:51.320 [4588] DEBUG - [HttpClient/HCl#4] HTTP/2.0 (0.1s) 200 response from GET https://downloads.plex.tv/codecs/e613bce-97f23d579c1001d8e9cc0d2e/windows-x86_64-standard/aac_decoder.dll
Feb 14, 2025 14:43:51.351 [7624] ERROR - Codecs: Download failed: Failed to verify SHA1sum of codec!
Feb 14, 2025 14:43:51.351 [7624] WARN - Codecs: Failed to download aac decoder; bailing out

ALL:

This is a Plex.tv problem.

It’s impacting multiple versions of PMS.

The team is working on it now.

8 Likes

Thanks Chuck, really appreciate the speedy response.

It would be great to have an option in the server config to opt out of automated codec downloads/updates, possibly paired with an option to upload them to the server manually. Not all people can or want to have their PMS permanently online.

The option is to not install the update :sunglasses: lol

I saved my Codecs folder so I can test.
That’s how I tracked down the problem.

Codecs are paired with the transcoder version (independent of PMS)

What’s happening now is breakage upstream with Plex.tv (at large).
They are sending someone to the Engineer’s house to bang on the door :rofl:

5 Likes

Thanks for tracking this one down. In my case, it only seems to be affecting Windows clients, as my Apple IOS devices are not seeing the errors.

Please let us know when you have a fix and whether it will require a new version or if it is something you can fix on the backend.

ALL:

This is a backend problem.

It’s been identified. Given what happened, they’re working out the best way to address it short of doing each file manually.

4 Likes

Thanks for the heads up Chuck. I am also seeing this issue and after a little digging came to report it. Happy to know the team is on top of things. Cheers!

Thanks for confirming @ChuckPa. I was about to loose my shii, trynna watch Severance tn. Guess we’ll have to wait on Plex devs

Folks,

I am retesting everything I have now

Procedure:

  1. Stop PMS
  2. Rename Codecs → Codec-old
  3. Start PMS
  4. Play one thing which needs transcoding

Let me know your results please .