Media Player: packaged project only working on packaging machine?

Hi,

Seems the media player only support absolute path, cause copy the packaged project to another machine the media player won’t work, only see a blank black…

How to fix this?

Thanks.

Howdy alonezhby,

Thank you for reporting this issue. Can you please attach your DXdiag and your project log files to this post? Also, would there be a step by step way that I may be able to reproduce this issue internally?

Any information would be greatly appreciated.

Thanks and have a great day!

Hi Sean Gribbin,

Thank you.

The step is:

  1. Use the “Import” button in CB to import a video(seems only .wmv file can work), then add it to level UMG UI or a mesh, it can play in editor, but packaged the project, it won’t work.
  2. Use windows explore to drag and drop a video to CB, then add it to level UMG UI or a mesh, it can be played in editor, packaged the project , it will work too, but when you copy it to another machine, it won’t work again.

Here is the logs:
link text

btw, I seems found another bug: if you reimport the same video from another folder into CB, the previously created Media Texture won’t update anymore, you have to select the Media Player recreate it…

Thanks and have a great day!

Howdy alonezhby,

So I have dug deeper into this issue and have found that at this is currently not a bug. It just has not been implemented into the Engine yet. Here is a link to he forum post of where I found this information: Media Framework Documentation for 4.5 Preview - Audio - Unreal Engine Forums.

In the first post on this thread, in the very last section, this should clear up any issues that you may be seeing.

Thanks and have a great day!

Did you put your media files into the /Content/Movies directory? If they’re not in there, the game won’t package correctly and require absolute paths. I’ve managed to package a game with video files without problems when the videos were contained in the correct directory! :slight_smile:

Yes, I did.
Did the packaged game work well on another computer?

But, seems it require absolute path.

I’ve had the same problem. It is an absolute path even in 4.7.1. Hopefully we will get a fix for this soon.

Hello all,

I was looking into this issue not long ago for some other users as well, and created a bug report. Have a look over the post to see if there is some additional information you might be able to pull from there as well.

I have created a bug report that is related to this issue of Relative and Absolute paths in a packaged project.

Media Asset Post

We are working to have this issue resolved in upcoming versions of the Engine. We appreciate your patience with this issue as it is a fairly new feature and is still being improved.

Cheers,

It works in 4.7.2! Thank you!

We’re still having trouble in 4.7.5 - works in editor but not in cooked standalone. Are you using relative or absolute path? What movie format? Any details appreciated. Thanks!

I resolved this problem on my project. open Media Player asset and in Source> File or URL path, check do you have ONLY ONE DOT at the beginning. like example “./Movies/examplemovie.mp4”. Hope this helps.
Works on 4.9.1

After a million years UE still not working with media texture, when exactly you will be able to make this thing working? UE cant import a ■■■■ movie and play it. Will there be any solution soon?

What type of media file are you using?

I have solved it for me, first i converted my movies to mpeg4 (not mp4 ore wmv) then i put them in the map Movies if you dont have a videomap just make one in content. then open the level bleuprint,make a variable mediaplayer reference then compile,then in the details of the variable choos your mediaplayer asset that you made in the moviefolder,insert the variable to the event graph (Get) and then drag of from the variable and type in play then connect it to event begin play and your done it wil cook now with your game.

I hope this will help it did for me Sry for the bad english.

Thanks for the info 2forallgames,

Could you provide us with some screenshots accompanying your steps to better help users visualize and understand your process.

Cheers,

I’m having the same issue. I ad originally imported my media files to a folder named “Videos” I since used the move command to move them into “movies” along with my start up videos that work fine and they still won’t show on another system.

If I try to change the path inside the media player it does not let you. It always adds an absolute path. How did you change yours?

I discovered a work around to fix the paths.
Firstly make sure your video is 1280x720p mp4 video encoded with .h264. Any other format will not work properly.

Add the video to your Movies list under project settings.You will see a warning in the bottom right that says “Processing source file changes”. This will import the video to the Movies folder (and create the folder for you) and you will see a Media Player file with the same name as your video inside the content browser.

Next click on the down arrow to the right of the newly added movie and choose delete - the reason for this is it will play as a startup video when you launch the game if you don’t delete it.

Now open Windows Explorer and copy and paste the mp4 into your newly created Movies folder in the Content directory. Example C:\MyDocuments\Unreal Projects\YourProjectName\Content\Movies
Make sure you do not rename the video otherwise the file linking won’t work.

After manually copying the video into the Movies directory, you can double click on the Media Player file in the Content Browser and you should see that the file name now looks like “./Movies/NameOfYourVideo.mp4”

Your video will now show up when you build your project and will play correctly on every computer.