Looping movie has a black frame pop in on loop

I’m using a media playlist to play a 30 second looping movie in the background of the front end.

At the loop point, there is a visible pop as it looks like an all black frame is being inserted. Is there any way to keep this from happening? I’ve tried using a WMV and a MP4, but the issue happens in both.

I have the same problem in 4.15.1. Were you able to find a solution?

Originally, I think we’d only had the movie looping through UMG. It’s been a while, but I think the issue was fixed when it was set to loop in the actual media player. (see pic)

That’s not an answer!

1 Like

Sitting here with 4.18 and no solution to be found. Any news? How is this possible…

Solution is easy.

Open your “media texture” and uncheck “auto clear”.

If auto clear is off there should be no black frame.

But it doesnt work if you have a lot of different media player which should be looping.

I think one video with loop is ok but when I tried using more than one it started to lag.

1 Like

1 Like

does not work for me. Still get black frames with every video. even in the editor where just 1 runs.

try using .mov file. I tried using .mp4 and it didnt work but with .mov it does work for me.

我使用了如下图的方法来解决这个黑色单帧的问题。蓝图为在播放一段视频后连续播放一段循环视频。

1 Like

And still the same in 4.21…

working just fine for me just for a while , i using mp4 with h264 codec , but sometimes stills popup , but no black , goes with the first frame . Anyone?

The reason the black frames are happening is, I think, because Unreal takes a few milliseconds to load the video file. I can’t find any pre-streaming options to reduce or remove that load time.

Consequently, as the video is loading, what you’re seeing is either the ‘Clear Color’ (if ‘Auto Clear’ is ticked) or the last frame of the previous video (if ‘Auto Clear’ isn’t ticked).

There are four parts to the solution:

  1. Media Texture: Set the alpha value of the ‘Clear Color’ to 0.0. This makes the black frames transparent
  2. Media Material: If you haven’t already, right-click on the Media Texture and ‘Create Material’
  3. Media Material: a - In the material connect RGB to ‘Final Color’, b - set the Blend Mode to ‘Masked’ and c - connect A to ‘Opacity Mask’
  4. Media Player: Use the Media Material on your widget or brush. The initial black frames will now be transparent

1 Like

The reason the black frames are happening is, I think, because Unreal takes a few milliseconds to load the video file. I can’t find any pre-streaming options to reduce or remove that load time.

Consequently, as the video is loading, what you’re seeing is either the ‘Clear Color’ (if ‘Auto Clear’ is ticked) or the last frame of the previous video (if ‘Auto Clear’ isn’t ticked). The delay/load time will always be there, but you can mask the blackness.

There are four parts to the solution:

  1. Media Texture: Set the alpha value of the ‘Clear Color’ to 0.0. This makes the black frames transparent eventually
  2. Material: If you haven’t already, right-click on the Media Texture and ‘Create Material’. This creates a Media Material that you can use with a Widget or assign to an object (assuming you’re using a Widget to display the video)
  3. Media Material: a - In this Media Material connect RGB to ‘Final Color’, b - set the Blend Mode to ‘Masked’ and c - connect A to ‘Opacity Mask’. The ‘Clear Color’ attribute needs a material to tell it that it’s transparent
  4. Media Player: Use the Media Material on your widget or brush. The initial black frames will now be transparent

WOW thanks a lot for the answers , i solve using an external NDI source , it works perfectly , i hope its a better solution for now

4.26.2 and this is still a problem !!

The video editor makes it possible to remove black bars in a matter of minutes and get a full-fledged picture on the whole screen. To do this, you can go in two ways: automatic - when creating a new project from scratch, and manual - when editing and editing.

★ Automatic way

It is the simplest, all changes are made in auto mode, you do not need to thoroughly understand how to remove the black bars on the sides. The algorithm of actions is simple:

  • run the program, choose to create a new project;
  • add the desired video to the timeline;
  • click on the cropping icon and select “Remove black bars”. They will disappear immediately;
  • save the changes and adjust the conversion parameters.

★ Manual way

This method removes black bands on the sides, top, and bottom using Crop. Work is done on each video fragment separately. In this case, even if parts of the film will be filmed with different aspect ratios, by editing the video, you can bring them to a single standard.

To perform manual cropping, you must adhere to the following algorithm of action:

  • start “Video Montage”;
  • add files for editing by dragging and dropping them from the viewer to the artboard;
  • click on the “Crop clip” icon and select “Crop” in the drop-down list;
  • set the aspect ratio to 16: 9 and adjust the frame so that the black lines remain outside its borders;
  • save changes.

The frame can be moved, stretched or shrunk with the mouse. The aspect ratio will automatically change. Manual sizing is good because many movies already have a base projection of 16: 9, so to remove empty areas, you just need to select an arbitrary aspect ratio and stretch the frame to the size of the actual image. Similar manipulations are performed in the case of removing the side frames.

Manual cropping allows you to edit video for viewing on devices with a resolution of 4: 3, if the original fragment has a resolution of 16: 9 or higher. For this, fragments of the picture that have no value are deleted. As a rule, these are the extreme parts of the shooting location - landscape, studio, scenery.
Sizes of the sides can be set both in manual mode, moving the borders with the mouse and focusing on the values ​​located in the “Crop parameters” line, or using the semi-automatic mode. In this case, the user can choose to set the proportions:

  • source file;
  • 16: 9 screen;
  • 4: 3 screen.

If auto clear isn’t working for you than it might be the size of your video file. I had a 7GB movie file that was doing this and when I compressed it to 1GB it looped fine.

So I spent like a day looking into this for work and here is what I learned:

-You will never have seamless looping video in UE4.26 in preview mode
-You can only achieve seamless loops through a built game or a game running in standalone
-For this to work you need use a media source internal to the uproject (creating a file in the content folder called “Movies” putting your mp4 file directly in the uproject file from your file explore [not in ue4] and then creating the media source to that)

This is what worked for me using an H.264 codec at a Highbitrate with footage that was 15.4mb.

Can you share the graph please as text? I’m having trouble finding these nodes.