Media Texture not functioning

Hello,

I am trying to take a .mp4 file and have it play on a BSP brush or static mesh inside of my game. It does not appear to be working, despite following a few tutorials.

Steps I am doing:

  • Bring video file into /Movies/ folder
    
  • Create Media Texture from movie file
    
  • Create Material from Media Texture
    
  • Check AutoPlay and Loop options, click Play
    
  • Launch game, video is just still image of video
    

Thanks for any help!





I had similar problems.
It seems that different video editing toolsets use different encoding schemes. On a high level they are both the same format, but some optional/omitted/not implemented datafields in the header render the file unplayable for UE4.
So far I was lucky with the AVS video editor.
Vegas, Premiere and even the Windows movie maker fail to create UE4 compatible video files. They play however well in the media player.

My assumption is that the UE4 media framework does not handle all possible file headers properly.
Unfortunately I dont have enough C++ knowledge to look into the responsible code…

Are you saying that, as far as you’re concerned, my process is correct but the file handle might not be fully integrating? Perhaps I should take the file and convert it to a bunch of file types and test

Indeed. And also use different software packages to produce the files.

I’ve tried several different filetypes and it’s still not working. Perhaps it doesn’t work properly on MAC? Not sure what to do. Anyone else have this problem? I really need to have videos in my game

I just created a short testvideo and verified that it playbacks in UE4:
31afb686cc071e9beba220e15d696bdeb588eb5b.jpeg

You can download it here: http://s000.tinyupload.com/?file_id=57711271966408611839

Just try and let me know if this file works for you.
If so, let me know how you import it and how you create the media player/texture/material assets…

Cheers,
Klaus

I tried importing this file into Unreal Engine and it literally broke Finder on OS X and I had to make a new user account and move all my files over using Terminal…
Am going to try again with a new user account and report back.

Thanks Klaus :wink:

This doesn’t work for me. Did I mention I’m on a Mac? I imported the file into unreal, made a media texture, then a material (from the media texture) and applied it to the BSP. It does nothing.




Screen Shot 2015-06-18 at 12.04.44 PM.png

Hmmm, I never laid hands on a Mac, so Im not sure. But it seems to be a matter of video codecs.
Does the video playback in your normal media player, or does it not decode at all?

Well when I try and play it just normally it converts it into a .mp4 then plays it. When I bring either the .mp4 conversion or your .avi codec into Unreal, neither of them play in the video playback box.

In this case, maybe you should post on AnswerHub about this. You can include both videos for reference.
Maybe Epic staff will have a chance to look into thisone…

I solved it with the big help of this video. But I used another program to cut the frames out of video, for me the VLC was not working.