Heres a new for the windows guys. Allows you to play AVI and WMV movies on textures. This is only for Windows as it uses the media foundation to load and play the video. It bridges off existing code in the engine (UTextureMovie, UCodecMovie, etc.). I added a factory to allow importing of AVI and WMV file formats and codecs and a video player for the rendering of the movie. MP4 support had been temporarily disabled due to some missing attribute.
Heres a video of it in action (The movie is some random NVidia movie showing off SSAO): WindowsTextureMovie example
Can be found under /Engine/Plugins/Runtime/WindowsTextureMovie
You will have to build the yourself for the time being. This is considered an alpha release, so there may be some issues (I did not experience any myself).
As per 's advise. I have moved the code to a new repository, it can now be located at https://.com//TextureMoviePlugin. All future updates will be to here.
There’s a pretty neat tutorial directly on the page. It should get you from downloading to compiling without any issue if you follow the steps there. Are you on Win/VS?
Please update your plugins to make them work with 4.2 preview build and the upcoming 4.2. Putting plugins in 4.2 preview build makes viewport all black.
Have you had any issues trying to package a build that uses the ? I am compiling this as a Game , but haven’t had luck getting it to be included in the package.
please forgive my n00bness, but if i just copy only the folder into the /Engine/Plugins/Runtime that doesn’t work…what do i need to do next? Do i need the source of UE4 to be able to compile it or is there something i’ve missed.
thanks
I had done that, but it was failing to compile because it couldn’t find the base class for the TextureFactory. I am attempting to build and package the Development configuration just to test, and the WITH_EDITOR define that guards against including TextureFactory is enabled for both DevelopmentEditor and Development. I’m sure there’s a better way around it, but I ended up just commenting out the include of TextureMovieFactory.h in WindowsTextureMoviePrivatePCH.h to build Development. It just feels like I have something misconfigured.
Thanks for pointing that out, i wasn’t sure if it would actually work the way I did it. I haven’t tried building outside the editor as of yet. I will do some investigations at my end and see if I can come up with a decent solution.
i get instant crash no matter what movie I choose. I’ve tried a few codecs for avi and wmv…any particulars that you know to work. Once I choose import file from the content browser and pick my movie it causes a crash.