Media Texture laggy

Hi there,

I have a level which has multiple media textures playing within in it, however they seem to appear laggy

I have tried changing the lighting in the render settings from lumen to ray tracing which sort of worked but the videos still appear laggy

Does anyone know a way to improve the playback of the media textures?

thanks,
Connor

I am also looking for a fix on this

Hi all,

I wonder what file format / resolution / refresh rate videos you’re trying to play…

Do you see any difference with ‘Hardware Accelerated Video Decoding’ or ‘Low Latency’ enabled? (“Playback Optimization section of this doc”)

Cheers

I would like to detail some research I did.

This is coming from trying to get level blueprint to do all the heavy lifting, NOT sequencer so keep that in mind

I tried using standard PNG sequences, and I found that playback with more than one sequence at a time had dropped frames or stutters or slow playback. I looked into the Project Settings > Plugins > Img Media and even fed it more GB for VRAM on PNG caching - however I am unsure how to precache and KEEP PNG sequences. Also adjusting the behind percentage here to 0 as I have seen some people suggest does not fix the issue. - this feature of precaching only exists for MP4s -

Which recreating the scene with identical videos just as MP4 instead of PNG, and enabling precache, ensures I have very smooth framerate actually! However there is 1 downfall. MP4s H.264 in Electra (the plugin needed for media textures in UE5) only have Playback Rates of 0 and 1. Whereas the PNG Sequences are -100000 to +100000! SO I can’t speed up or slow down the MP4s using “Set Rate” Once they are playing in the scene. But I can with the PNGs! But it doesn’t matter because I can’t precache them - so we get stuttery framerate and dropped frames.

I am also trying to play a single media file, and try to get it to start and stop at different points based on a delay float variable I have exposed for this blueprint actor. It has a plane with the material using the media texture. I use a timeline to fade in and out a uniform float value so I can feed the material parameter relating to the opacity of the Media Texture Material. I always set the timeline with the get length node so I can guarantee it lines up exactly with the length of my Media Texture (smart, lovely!) You would think now we can control the speed of the texture? No. But the timeline fade in and out feature is working perfectly as intended.

Going to try psuedo playlists or something but I’m at a loss here

As for ‘Hardware Accelerated Video Decoding’ or ‘Low Latency’ - I believe that’s only available if we’re using the WMF media player, which I’m not at least

1 Like