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"

MP4 not importing as media player

So, I've been trying to import an example video into my level, but I cannot get the video to import. I have tried using .wmv, .avi, and .mp4 with mpeg4 encoding but all of them show up as grey in the content browser and do not play when I click on them.

alt text

As you can see, the video (the example I screenshot was the .mp4 mpeg4 encoded one) shows up as a grey icon instead of the Video Player one. So, I decided to create a video player file and clicked it, and it allows me to play the source file but it doesn't do so automatically.

alt text

I'm currently trying to get it so that I can make a texture and material out of the video, but I cannot with it being a source file.

Product Version: UE 4.14
2016-12-01 (6).png (504.4 kB)
2016-12-01 (7).png (589.4 kB)
more ▼

asked Dec 02 '16 at 12:07 AM in Using UE4

avatar image

16 2 2 5

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

1 answer: sort voted first

Starting with 4.13, media players (the thing that plays media) and media sources (the media being played, i.e. files, streams, capture hardware) are two separate asset types. The former is represented by a MediaPlayer asset, the latter by MediaSource assets. There are different types of media source assets. For playing an MP4 file, you want to create a FileMediaSource.

Another change since 4.13 is that media sources (formerly media URLs) are no longer stored and automatically played in the player. Instead you have to open a media source and initiate playback from Blueprint. While this is more work than before, it gives you more fine control over when media sources should be loaded and played, and it prevents people from shooting themselves in the foot by unintentionally playing lots of videos even though they're not even used anywhere.

You can find detailed instructions on how to set this up in our Media Framework How-To.

more ▼

answered Dec 02 '16 at 01:03 AM

avatar image Earl Reaves Oct 07 '17 at 04:55 PM

I'm using 4.16 and when I go to right click and create a new asset in the content browser I don't even have a "media" section to choose a FileMediaSource or anything else for that matter (MediaPlayer, playlist, etc.). Still shows up if I go to create a new C++ class, can't do that yet though, I'm currently trying to get Visual Studio installed first to see if I can create it that way. But it seems to be a pretty big bug if I can't create one through the normal menu. Also doesn't work by dragging it in from the Content/Movies folder, says mp4 is unrecognized. If I go to Import there are also no options in the available file types that include .mp4 or anything like that for that matter, for some reason. I'm having the same issue in 4.17; I do have a "media" section though, but it only listed "layers" and no MediaPlayers or FileMediaSource assets. Any ideas?

(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