I’m wondering if this is a known issue or if I’m doing something wrong.
When I go to package my project, I’m getting this error:
Could not find a native player for [...]4.13/Content/Movies/Tutorial.wmv
I tried with mp4 file and wmv and they both throw the same error.
I was trying to get to the Media Framework Technical Reference but that page seems to be down and I can’t see where the issue is happening. Technical reference is supposed to be here
I noticed a ‘default player’ option though I don’t know what I should be putting in there.
Everything works fine in the editor, it’s just failing on package.
What does your media player setup look like? I’ve tested this with a simple media player that plays a video on Begin Play, and deliberately left the Native Player section blank and it seems to package without error.
Could you also provide the full output log please?
I’ve put the file in Content/Movies (as mentioned, i tried both an mp4 and a wmv).
RIght Clicked in editor-> create new FileMediaSource. Browsed to file.
Media Texture created on top of it.
::EDIT:: As a small update, I just built from source from the 4.13 branch on github and experienced the same result.
::EDIT 2::
Just noticed on hot reloads im getting this error:
LogWmfMedia:Error: Failed to set topology in media session (A stream descriptor was set on a source stream node but it was not selected on the presentation descriptor.)
Any idea what this means?
This seems like it could be the culprit; though I am unsure what this means
I’ve been doing some testing and it’s definitely the C++ code. I think when creating a filemediasource from c++ it’s not setting a default native player ?
Thanks for continuing to look into it. I’m doing the same on my end. Would you be able to provide the full code for the relevant class(es) so that I can compare what we have?
The DefaultPlayer and PlatformPlayers fields on the MediaSource assets are not implemented yet.
You do not need to set a DesiredPlayerName on the MediaPlayer. If you leave it empty, the MediaPlayer will try to find a suitable player plug-in automatically. In 99% of use cases you should leave empty. Only set it if you absolutely have a reason to enforce a particular native player.
If the MediaPlayer cannot find a player (as your error message suggests), then that means that the WmfMedia plug-in hasn’t been loaded in your packaged game. Please verify that the WmfMedia plug-in is enabled in your project, and that it is actually in your packaged build.
Please attach the log file of your packaged build.
LogWmfMedia:Error: Failed to set topology in media session (A stream
descriptor was set on a source stream node but it was not selected on the
presentation descriptor.)
This means that your file contains multiple audio and/or video tracks. This is not supported until 4.14. Please make sure you have at most one video and one audio track for now.
You are opening media in ATutorialVideoWindow::ATutorialVideoWindow. This is very bad, because this code will be executed whenever an instance of ATutorialVideoWindow is created. You must know that the UObject sub-system will always create at least one instance of your class, the Class Default Object (CDO). This is why you’re seeing the error during the cooking.
Do not open media (or perform any other game relevant tasks) in UObject constructors. You are probably looking to implement BeginPlay() instead.
Please always post complete error messages and Engine version number, otherwise it’s impossible to say what’s happening. In your case, either AvfMedia is not enabled, or the file extension of your file is not supported. You can find the list of supported file extensions in AvfMediaFactoryModule.cpp, StartupModule(). In 4.14 it currently is:
I updated to 4.14 (the latest version) and recreated the sample project, according to the tutorial.
I’ve tried with player set to auto, and error is the same:
LogMediaAssets:Error: Could not find a native player for http:\\file.pm4
Then I’ve tried to set manually default player for mac to AvfMedia.
Now the error message is is:
LogAvfMedia:Warning: Failed to load video tracks. [The operation couldn’t be completed. (OSStatus error -12936.)]
I’ve tried both mp4 and mov. No luck.
And I also get a weird crash, when I push Stop button. The Editor crashes with the log: THE LOG