adamrehn / ue4-docker

Windows and Linux containers for Unreal Engine 4
https://docs.adamrehn.com/ue4-docker/
MIT License
793 stars 174 forks source link

Movie Player not supported in Windows container #269

Open chaychoong opened 2 years ago

chaychoong commented 2 years ago

I was running a UE5 package using the ghcr.io/epicgames/unreal-engine:runtime-windows image when I encountered this error during the Mounting plugin phase

LogPluginManager: Mounting plugin WindowsMoviePlayer
PixWinPlugin: PIX capture plugin failed to initialize! Check that the process is launched from PIX.
LogLuminAPIImpl: Warning: MLSDK not found.  This likely means the MLSDK environment variable is not set.
LogWmfMedia: Failed to initialize Windows Media Foundation, Error -2147467263

...

=== Critical error: ===
Assertion failed: (((HRESULT)(Hr)) >= 0) [File:<redacted>/unreal/UnrealEngine/Engine/Plugins/Runtime/WindowsMoviePlayer/Source/WindowsMoviePlayer/Private/WindowsMoviePlayer.cpp

I eventually solved it (just the WMF part) by installing Server-Media-Foundation in the Container

docker run --name tmp-fix -it -v c:\Windows\WinSxS:c:\winsxs ghcr.io/epicgames/unreal-engine:runtime-windows powershell
Install-WindowsFeature -Name Server-Media-Foundation -Source c:\winsxs
exit
docker commit tmp-fix ghcr.io/epicgames/unreal-engine:runtime-windows

I looked through this repo but I'm not too sure where to start to fix this issue. Hoping for some guidance please!

AMZN-nggieber commented 2 years ago

I've also encountered this same error while trying to run automation unit tests using UE4Editor.exe with Unreal version 4.26.1

yavuzsonmez commented 1 year ago

Hi,

seems like the fix doesn't work anymore. I get the following error:

Install-WindowsFeature : The request to add or remove features on the
specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be found.