MediaPlayer stuttering on loop

Hello,

I am currently playing a video on an UMG image using mediaPlayer and mediaPlayertexture. Everything is working, but I have a looping video I wanted to play on the UMG widget and when the video is finished and just beginning to loop, it freezes for a short moment. So it results in an unperfect loop with stuttering at the loop point, which is very obvious.
The Second problem is, when I change the widget to another one with a second mediaPlayer attached to it, the mediaPlayer shows the last frame for a short time and then begins from beginning, even tho I called Rewind(); before showing it.

My current logic is like this:

  • Play mediaPlayerA on WidgetA in an endless loop (stuttering on loop point).
  • On Trigger, wait for mediaPlayerA to finish the video and then remove WidgetA from Viewport, pause mediaPlayerA and Add WidgetB to Viewport. Then Start mediaPlayerB in endless Loop. (stuttering on changing mediaPlayer and widget).
  • After 10 seconds, wait for mediaPlayerB to finish video, remove WidgetB from Viewport, pause mediaPlayerB and add WidgetA to Viewport again. Then rewind mediaPlayerA and start mediaPlayerA in endless Loop.

So how comes the videos are stuttering? They are only 4 seconds long, perfectly looping and only around 14 MB big. So I guess its not a HDD issue.

2 Likes

I actually noticed this behavior too! Have you found any solution yet?

4.14 is an ancient version of UE4 that contains a very early version of media playback functionality. I strongly recommend upgrading to 4.18. It also has better looping support. Let me know if you keep having issues with newer versions of UE, thanks!

Totally fixed that loop issue, thanks!

I disagree, I am trying to create an interactive presentation using UE4.18.2 and the stutter on loop issue is still very present, more so after packaging. I was using a workaround previously which would set the visibility of a white frame over the video to visible before starting to switch file source, then setting invisibile after opening source. However this now doesnt work as the widget visibility feature is broken.

It is a shame as the presentation itself is pretty good, and will work well for my company, however we will not use it as a proffesional presentation with these issues. Using Unreal Engine to do this presentation was also a reccomendation of mine. Back to powerpoint slides…

1 Like

I just want to say there is another work around where you can use FlipFlop node with two Media Players, when you want to switch to the next video without a stutter.

On begin, set media player 1 to play file source 1 and media player 2 to play file source 2. When you go to play video 2. swap the the image brush from media texture 1 to media texture 2, then have media player 1 open file source 3. This can be done with a FlipFlop node.

This will not fix the loop stutter problem however.

There is also an issue that when you switch to the next video. It will not start at the correct time as it has been playing since the last video started. You could rewind the source back to the start however I think this would also create a stutter. But I haven’t tried this.

I haven’t noticed this stuttering issue within 4.18, however there is a very noticeable black frame which flashes between plays. I am not sure if this is addressable, but it is better than the stutter issue which makes the video pretty much unwatchable after several plays. @gmpreussner is the black frame potentially just due to file format or file size? Do you see this behavior on your end? Thanks!

The black flash frame can be avoided by unchecking the “Auto Clear” box in the Media Texture.
But also I am not finding a solution for the stutter of the media loop. i’m looping a very short video file (under 1MB)… also tried the “Precache File” box in the media source without any improvement.
Unreal Version 4.18.3 btw

I’m having a significant Hitch on loop in 4.19.1. Black frame is fixed, but the hitch is a problem still.

Still not work. 4.23. Auto clear don’t work on android as well

I still have the loop slutter on Unreal 5.0.2 :confused:

2 Likes

same !

Have you tried it with HISPlayer media player plugin?

I got this stuttering in ue5.1 . It was fixed when i enabled the Electra video plugin. Also i saw in a tutorial that you must do this in ue5.

2 Likes

Worked for me! Thanks!