Media Framework Roadmap

Hi

I’m using the Media player on 4.15 and I’m just wondering if there’s any way to know after calling seek when the video is ready for playback?

Also is there a format/bit rate setting where it should be expected to be able to seek instantly (for example being able to move a slider and have the video update in real time) or will I always have to delay the seek until after the user has let go of the slider.

Also**

The crashing on resize and exit in MediaTextureResource.cpp from failing an assert later.


void FMediaTextureResource :: DisplayBuffer()
{
	if (State != EState::Initialized)
	{
		return;
	}

	if (IsInRenderingThread())
	{
		SwapResource();
	}
	else
	{
		RenderThreadTasks.Enqueue([this]() {
			SwapResource();
		});
	}
}

We’ve just commented out the if statement to always act as if IsInRenderingThread is false, seems to work for resizing and might help anyone out with this issue.

If anyone would know if this causes unwanted effects let me know :slight_smile:

Thanks

Any updates on support for streaming media on IOS/MAc with AvfPlayer?

Another engine update and another disappointment.

Can we just consider this function of the engine dead at this point?

I’ve been working on a 360 video player for android and I wanted to be able to read files from a directory and list them into a playlist. I was able to get as far as retrieving the external storage directory, listing the files in the Movies folder and returning a path to all mp4 files. From there I stored the path in a Playlist (UMediaPlaylist) and it appears that the Playlist is correctly constructed based on the Android logs but it doesn’t appear to want to play the linked media, or rather it doesn’t validate it in the first place.

D UE4 : LogMediaAssets:Error: Failed to validate media source FileMediaSource_0 (file:///storage/emulated/0/Movies/0122.mp4)

Is the exact error from the logs. Is it possible to link a file source in this way or is this not supported?

This might be caused by the file exists check failing if GExternalFilePath doesn’t match “/store/emulated/0”. You can try editing AndroidFile.cpp and forcing AllowLocal to true in PathToAndroidPaths() so it allows slash at the beginning of the path for non GExternalFilePath files.

I made the change to AndroidFIle.cpp by setting AllowLocal to true in PathToAndroidPaths() but I’m still getting the same error.

The new 4.18 seems to have broken our setup. We want use a video texture atlas, with one 3rd being an alpha mask and depth mask encoded as HSV, we then convert the HSV back into RGB to extract a mask and greyscale depth as unique channels.

https://answers.unrealengine.com/que…en-in-418.html

It seems that now doesn’t work at all and errors out. Does that mean we can no longer use media textures in shaders for funny business? Is it just now just straight video dumped onto a quad now?

I agree. It’s impossible to control the volume of the media player. There’s no example code anywhere. Even in 2022, adjusting the volume of the media player is impossible.

What media player plugin should I use for UE5? I tried using VLCMedia and I’m getting these errors when I try to enable it in the .uproject file.

warning : Unknown platform Win32 while parsing allow list for module descriptor VlcMedia
warning : Unknown platform Win32 while parsing allow list for module descriptor VlcMediaFactory
\Build\BuildRules\Palatial_V01_UE5ModuleRules.dll’ appears to be for a newer CLR version or is otherwise invalid. Unreal Build Tool will try to recompile this assembly now. (Exception: Could not load file or assembly ‘C:\Users\employee\Perforce\David_Keanu\Palatial_V01_UE5\Intermediate\Build\BuildRules\Palatial_V01_UE5ModuleRules.dll’. Format of the executable (.exe) or library (.dll) is invalid.)
Media.Build.cs(64,53): error CS0117: ‘UnrealTargetPlatform’ does not contain a definition for ‘Win32’
\Plugins\VlcMedia\Source\VlcMediaFactory\VlcMediaFactory.Build.cs(46,46): error CS0117: ‘UnrealTargetPlatform’ does not contain a definition for ‘Win32’
error : Expecting to find a type to be declared in a target rules named ‘ThirdTurn_TemplateEditorTarget’. This type must derive from the ‘TargetRules’ type defined by Unreal Build Tool.

Trying to get any Media Player to work on Linux (Ubuntu 22.04) for UE5.03

Without luck so far. If anybody knows of a working solution please let me know.

Did you manage to run the video on Linux?

Were you able to fix the Linux plugin?

I partially managed to run the video on Linux. I used the FFmpeg plugin
The only thing that remains is the problem with the sound.
It is too fast and crackles.

I will be glad if someone finds a solution to the problem.