x

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"

Media Player not saving Media Texture after closing window

Hello,

I've looked all over and I can't find anyone who has had the same issue with media files. I technically have a few issues, all related to the same thing, but the main issue is in bold below (Problem 1 c after the picture).

Problem 1.a. When I import video files into the Content > Movies folder, they appear as a File Media Source as expected, as long as I click and drag them directly into UE4. If I try to bring them in via File Explorer, they do not appear in UE4, however, other files, like JPGs will.

Problem 1.b When I click on the File Media Source, I am not able to see the video, but I can see that the File Media Source is linking to the file name. Not sure if this is an issue, but after watching countless tutorials, and looking into the UE4 docs, it seems like I should see the video play here. I have added a pic below to show what I mean.

alt text

Problem 1 c (The main problem): After bringing in the File Media Source, I create a Media Player, which I open. I then double click the media file in the section below the video, wait a few seconds, and then can see the video showing in the Output section next to Video Texture. That media texture will also show the video, and I can add it to a material and watch the Video display on any 3D mesh.

But, if I close out of the Media Player window, even after saving everything, the Media Texture goes black, and the Material goes black as well.

What I've tried: - AVI, MP4, MOV, WMV files. The results are always the same, no matter what file type, codec, etc. - Both PC and Mac computers

Here is a link to a video I uploaded showing the problem: https://www.youtube.com/watch?v=Ga9TZb5sBm0&feature=youtu.be.

Any advice would be greatly appreciated.

Thanks in advance.

Product Version: UE 4.14
Tags:
more ▼

asked Mar 04 '17 at 05:18 AM in Using UE4

avatar image

KevinMurphy
11 1 2 2

avatar image funkish Mar 10 '17 at 05:20 PM

I use UE4.15 and have same problem. On close window - material cleared.

avatar image KevinMurphy Mar 10 '17 at 07:10 PM

I figured out the issue, at least for my problem.The Media Textures only display when the media player is open, BUT that is intended, because you have to add a simple blueprint.

What you need to do is this:

  1. After opening the Media Player and verifying that the Media texture is showing the video (while the media player is open), save the media texture

  2. Once done, create a blueprint following this guide from Unreal https://docs.unrealengine.com/latest/INT/Engine/MediaFramework/HowTo/FileMediaSource/ . [Skip to the blueprint section].

As it turns out, the Media texture will only play when the Media Player is open, but the blueprint accesses the Media player and plays the video when you preview the game.

How to edit a material with a media texture (since the blueprint works on play:

  1. Open the material with the media texture (or add it if you haven't)

  2. Open the Media Player (and select the correct video, and hit play). Also, check loop, so the video will keep looping.

You can now edit your material, as long as the Media Player window is open.

avatar image Leotrap Mar 30 '17 at 08:54 AM

Really Helpful! Thanks...

avatar image funkish Mar 10 '17 at 07:20 PM

I using another way. See link https://www.youtube.com/watch?v=W_nSACYTIvY

avatar image Leotrap Mar 30 '17 at 08:55 AM

Thanks for sharing!

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

0 answers: sort voted first
Be the first one to answer this question
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