Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

MediaPlayer stuttering on loop


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.

Product Version: UE 4.14
more ▼

asked Jan 17 '17 at 04:50 PM in C++ Programming

avatar image

68 2 7 13

avatar image ianoreo Jan 23 '18 at 07:16 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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!

more ▼

answered Jan 23 '18 at 07:19 PM

avatar image ianoreo Jan 23 '18 at 07:48 PM

Totally fixed that loop issue, thanks!

avatar image Orkney Jan 24 '18 at 09:59 AM

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...

avatar image Orkney Jan 24 '18 at 10:25 AM

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.

avatar image ianoreo Jan 24 '18 at 11:28 PM

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!

avatar image lwetzel Apr 16 '18 at 10:27 AM

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

avatar image 3dlight May 23 '18 at 06:38 PM

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

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question