Latest code has been merged to GitHub Master. This stuff is coming in pretty hot, and we haven’t tested everything yet. A bunch of stuff may still be broken. If you have time, please check it out and report any problems. We will continue to fix issues until 4.13 comes out.
Here are some instructions for troubleshooting:
General
Most player plug-ins provide detailed logging of potential problems. To enable it, add the following to your project’s Engine.ini:
[Core.Log]
LogMedia=Verbose
LogMediaAssets=Verbose
LogAndroidMedia=Verbose
LogAvfMedia=Verbose
LogMfMedia=Verbose
LogPS4Media=Verbose
LogWmfMedia=Verbose
Please do not submit bug reports without verbose logging enabled, because I won’t be able to tell what’s going on!
If a media source fails to open or play, check the Output Log for additional details:
Another good place to check for additional information is the MediaPlayer editor’s Info tab:
If Verbose logging is enabled for the MediaAssets log category, this information is also added to the Output Log. Otherwise, please include this information manually with bug reports!
PlayStation 4
The PS4Media player plug-in is disabled by default and must be enabled in the project’s Plugin Settings.
The video decoder on PS4 consumes a lot of Onion memory, especially with HLS. You may run out of memory when trying to play more than one video at the same time, because we allocate only 200 MB by default. Currently, these default settings are not exposed in the UI (scheduled for 4.14), but you can modify them by hand.
In PS4Engine.ini
[SystemSettings]
r.GarlicHeapSizeMB=2600
r.OnionHeapSizeMB=200
In your game’s *.Target.cs:
public override void SetupGlobalEnvironment(
TargetInfo Target,
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration)
{
// ...
if (Target.Platform == UnrealTargetPlatform.PS4)
{
OutCPPEnvironmentConfiguration.Definitions
.Add("GARLIC_HEAP_SIZE= (2900ULL * 1024 * 1024)");
OutCPPEnvironmentConfiguration.Definitions
.Add("ONION_HEAP_SIZE= (100ULL * 1024 * 1024)");
}
// ...
}
Windows
The Windows Media Foundation (WMF) based player plug-in WmfMedia has a number of limitations for MP4 containers. See here for details: MPEG-4 File Source - Win32 apps | Microsoft Docs
XBoxOne
The MfMedia player plug-in is disabled by default and must be enabled in the project’s Plugin settings.
It is possible to compile and test the MfMedia plug-in on Windows 7 and up if the Engine is compiled against Windows 7 (by default we compile against Windows Vista). This can be accomplished by changing the following code in the SetUpCompileEnvironment() function in UEBuildWindows.cs:
// Windows Vista or higher required
InBuildTarget.GlobalCompileEnvironment.Config.Definitions.Add("_WIN32_WINNT=0x0601"); InBuildTarget.GlobalCompileEnvironment.Config.Definitions.Add("WINVER=0x0601");