I have been racking my brain on how to get non-choppy video playback inside a UMG. I had hopes that the latest 4.13 h264 support would alleviate my issues, however it still persists.
What i am trying to do is play a 1920x1080 60fps video, full screen, with umg elements on overlay. Think attract screen like old school arcade machines. All of this works just fine, however the video is very choppy.
I have tried the following: mpeg-2, mpeg-4, h264(x264) all with about the same performance. I have tried ffmpeg, handbreak, after effects to make these all with different bitrates, cbr, crf, etc…
The videos play smooth through windows/vlc/etcc other media players, but in the editor/compiled build the performance is very stuttery.
So perhaps i am using the wrong encode settings, or attempting to play the video incorrectly?
Here is my setup:
MediaSource filepath: ./Movies/video.mp4
MediaPlayer play on open: true, loop true, MediaPlayerSound, and video texture.
My UMG_ has an Image, 1920x1080 with the brush image set to my MediaPlayer_Video texture.
When i want to play the video, i call OpenSource on my MediaSource
side note: Im going to attempt to put this on a static mesh, in the world, and just put it close to the camera; it can pretend to be a “umg” asset.