Questions this article answers:
How to make a video texture in Unreal Engine
How to use media texture in Unreal Engine
Media Texture not animating in level sequencer

How to make a video texture in UE:



1. Make folder in content browser called "Movies"
2. Create Folder inside Movies for a png sequence (each video gets its own folder)
3. Export video as png sequence from software of choice into the folder

Unreal engine will slow down as it detects changes from imported image sequence, when the import is complete click DON'T IMPORT in the bottom right of the engine


4. Create a folder for your media textures and players in your project
5. Create a "Img Media Source
   recommended naming convention "video_img_src"




6. Open the img media source and in the details panel, under Sequence Path select the first img from the img sequence you imported to the Movies folder.
Save and close



7. Create a "Media Player" and  click the check box on "Video output MediaTexture asset" this will create a media texture that is linked to your media player
recommended naming convention  "video_m"


 


8. Open the media player and select your created "img media source" ("videoname_img_src" if you are following the naming conventions) Save and close

  After these steps you will have THREE  linked objects: an Img Media Source, Media Player, and Media Texture


  You can use this Media texture in almost any instance where you use a typical texture

   Immediately you will now notice that the video texture is NOT playing in your viewport / render.
Follow the next steps to get the video to play


How to play the video texture:


YOU WILL NEED TO DO THIS FOR EVERY VIDEO TEXTURE YOU WANT TO PLAY
THE MORE VIDEOS PLAYING AT ONCE, THE SLOWER YOUR PERFORMANCE


1. In your level sequencer  add a media track




2. Click the + and add a media source. Click the Img Media Source you created earlier.



3. Right click the new video track, go to properties, then under Media Texture; select the corresponding Media Texture




This is why having a good naming convention is important. 
If you followed along, then every linked media item has the same name, followed by the type of object it is, for example:
  • videoName_img_src = Image Media Source
  • videoName_m = Media Player
  • videoName_m_video = Media Texture






4.  With your new track added, you can click and drag the sequence to where you would like the video to start and end.

Dont forget to turn off the media texures when working in the viewport to save memory.




©2022—’24

contact