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.
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.
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.
asked Dec 02 '16 at 12:07 AM in Using UE4
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.
answered Dec 02 '16 at 01:03 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here