UE5.4 - UE5.5.4 WmfMedia MediaPlayer stuttering on loop play

How to Fix Video Stuttering with WmfMedia in UE5.4 - UE5.5.4

Problem:
When playing videos using WmfMedia in Unreal Engine 5.4 to 5.5.4, the video stutters or lags after looping multiple times. This happens regardless of whether you use DirectX 11 (DX11) or DirectX 12 (DX12).

Simple Fix Steps:

  1. Update Your Media Plugin:
    Sometimes the WmfMedia plugin has bugs fixed in later versions. Check if there’s an updated version of the plugin or engine that improves video playback stability.
  2. Use a Different Media Player:
    Instead of WmfMedia, try using Platform Media Player or another supported media plugin, which might handle looping videos better.
  3. Manually Reset Media Player on Loop:
    After the video finishes playing, instead of looping automatically, stop the media player and then start it again. This can reduce memory leaks or resource buildup that causes stuttering.Example pseudo-code:

scss

Sao chépChỉnh sửa

OnVideoEnd() {
    MediaPlayer->Close();
    MediaPlayer->Open(VideoSource);
    MediaPlayer->Play();
}
  1. Lower Video Quality or Resolution:
    High-resolution videos might cause performance issues over time. Try using lower resolution or bitrate for the videos to reduce load.
  2. Check GPU and Drivers:
    Ensure your graphics drivers are updated and your GPU is not overloaded during playback.

Summary

Video stuttering with WmfMedia looping in UE5.4-5.5.4 is a known issue. The easiest way to fix it is to manually restart the media player after each loop or switch to a different media plugin. Also, keep your engine and plugins updated.

1 Like