Plex fails to start: [FFMPEG] Error loading external library

Server Version#: 1.20.3.3421
Player Version#: N/A

I was adding some new movies to my Plex server when the web interface became unresponsive. It would say that there was an unexpected error loading the library. I checked the server logs and see this every time I try and start it up:

Oct 12, 2020 09:17:44.030 [9408] INFO - Plex Media Server v1.20.3.3421-54b6523bd - Microsoft PC x64 - build: windows-x86 windows - GMT -05:00
Oct 12, 2020 09:17:44.031 [9408] INFO - Windows version: 10.0 (Build 19041), language en-US
Oct 12, 2020 09:17:44.031 [9408] INFO - 4 3400 MHz processor(s): Architecture=0, Level=6, Revision=15363 Processor Identifier=Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
Oct 12, 2020 09:17:44.228 [10156] INFO - SQLITE3:0x6eeba9b0, 283, recovered 37 frames from WAL file D:\AppData\Local\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db-wal
Oct 12, 2020 09:18:09.649 [10156] WARN - [FFMPEG] - Error loading external lib: A dynamic link library (DLL) initialization routine failed.
Oct 12, 2020 09:18:10.741 [10156] INFO - [CERT/OCSP] Successfully retrieved response from cache.

At this point, the Plex Media Server icon disappears from my system tray.

I’ve tried the Plex installer’s ‘Repair’ functionality with no success. This is after re-installing my Plex server and re-adding all my existing media (so the server install itself is maybe a week old). Does anyone have any ideas?

See attached Logs.zip. Logs.zip (6.6 MB)

I just downloaded an update to Plex (1.20.3.3437-f1f08d65b) and installed it but the issue remains.

I verified that my system does not have any DLLs listed in https://support.plex.tv/articles/206910047-windows-repeated-crashes-of-plex-media-server/.

No ideas? My Plex server has been dead for a while now. I’ve tried uninstalling and reinstalling the Plex server software (leaving metadata behind), but the issue persists.

Is your Windows an “N” version (i.e. without Windows Media Player and Internet Explorer)?

What exactly is in the Windows registry key
HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server\
LocalAppDataPath
?

Is there still a drive connected to the drive letter D: ?

I’m running Windows 10.

HKEY_CURRENT_USER\Software\Plex, Inc.\Plex Media Server\LocalAppDataPath is set to D:\AppData\Local (which contains the Plex Media Server folder).

There is a drive connected to D:. The media is accessible via the Windows Explorer.

Put a backslash \ at the end of that path, then restart the plex server.

Verify file access permissions for this folder and all files and sub-folders inside. (important when you are running Plex server under a different user account)

There are also “N” releases of Windows 10.

I updated the registry key to D:\AppData\Local\ and rebooted my computer but the Plex Media Server’s system tray icon still disappears very quickly. The only process left running with ‘Plex’ in the name is “Plex Update Service.exe”.

The Plex Media Server process is running as my user (the only one on the box).

I am not sure how to tell if I have an “N” version of Windows. From a quick Google, that seems specific to Europe (I’m in the US), so I don’t think I have an “N” version of Windows 10. Please LMK if there is a more specific way to check.

Do you have other software running, which uses up a high number of “network ports”?
A notorious example is “Torrent” software. But there may be other types of apps which do the same.
You will have to make sure that the primary port 32400 is not occupied by other software.

I’ve verified that something is listening on port 32400, but netstat can’t identify the owner. I disabled Plex on system startup, rebooted my computer and now nothing is listening on 32400. I then manually started the Plex Media Server and Windows reported that “Plex Media Server has stopped working. Windows will close the program and notify you if a solution is available.” At this point, there is something again listening on 32400, but Windows can’t identify it.

> netstat -oanb
...
Can not obtain ownership information
  TCP    0.0.0.0:32400          0.0.0.0:0              LISTENING       4692
...
Can not obtain ownership information
  TCP    127.0.0.1:32400        127.0.0.1:49853        ESTABLISHED     4692
 [System]
  TCP    127.0.0.1:32400        127.0.0.1:49914        CLOSE_WAIT      4692
...

There is no process with PID 4692 visible in Task Manager.

I guess we can close this. The only solution I found was to uninstall Plex, remove my local app data folder and delete every registry key. Now the long process of re-building everything…