So, I’ve been paying around a little bit trying to get a URI to stream that just contains a video file, but UE4 doesn’t seem to recognize any URL that doesn’t have an extension on it, regardless of whether or not the actual media is in the correct format.
Am I overlooking something here? Every time I enter the URL, it just says “Please pick a media source in the Details Panel!”
Or do I need to start working on a plug-in to handle this?
This should be fixed in 4.8. Originally, the Media Framework determined the player plug-in using the file extension. Since not all media sources have a file extension, this has been changed. The URL protocol identifier is now also taken into account. For example, the WMF player plug-in will be able to recognize rtsp://foo.com/bleh
hi,gmpreussner.
i use the UE4.8.0-preview-4,when i use MediaPlayer,and set url is rtsp://192.168.0.xx:8888/1,it will show “please pick a media source in the Details panel!”.
How should I use it correctly.
thank you very much
Hmmm, I see the URI streaming listed in the update notes, but I still seem to be unable to get a URI link to work. Are there any specific requirements of the URI scheme? (I can stream the exact same video file from a different website that uses a .mp4 extension on the URL, so I know the video is encoded properly)
Windows Media Foundation does not support the RTSP protocol as far as I know, and hence it is not enabled.
I will probably wrap up work on a VLC based player plug-in today, which will support RTSP.
The WMF plug-in does not currently filter for URIs. I believe that WMF always requires a file extension. Does Windows Media Player play your URI? Do you have a link that I can try for testing this?
Alright, I checked in a change that will add URI filtering to the WMF player plug-in, and that will play your sample video in-Engine on Windows: GitHub Commit
I’m a little bit uncomfortable about it, because the way it’s setup right now, it does not allow for verification whether the media source can actually be played. Really, the only way to check that is to actually try and load the video in the plug-in. I might do this in the future; will think about it some more as part of the upcoming ‘media sources’ refactor.
I added support for the following URI schemes:
http://, httpd://, https://
mms://
rtsp://, rtspt://, rtspu://
This list is based on Microsoft’s documentation, but I have not actually tested any other than https://
It should play H.264. I haven’t tested rtsp:// yet, but http:// works. This plug-in still has a lot of issues and is not finished yet (subtitles and audio are missing, etc). I do not recommend using it in production yet, but if you want to mess around with it, please do not hesitate to send pull requests
Please note that VlcMedia includes pre-compiled VideoLAN binaries that are licensed under LGPL. It is important that you consider the implications of this when distributing your game. Check the repository’s readme file details, and definitely also check out the LGPL license in the /ThirdParty/vlc directory.
I trying for months already to get it work on streaming.
In 4.8.1 i can add a http link but it only shows the playtime in the media player it does not do anything.
Can you post some blueprints on how to set it up ? As the ones current exist are only for when you import and that works fine for me.
My project is depending on streaming media.
Out of the box Unreal does not support network streaming of video. You will have to implement that yourself. I implemented a media plugin for realtime streaming of H.264 video from a GoPro camera using rtsp. I’m still trying to get permission to release that code as open source!
Max is working on a vlc plugin, I’m not sure what state that’s in right now.
VLC is more than just a player, it also can be used as a media streamer and it can decode in several kind of streams, i want to use it as streaming server but that’s aside of UE4, UE4 only need to be able to play the stream not encode it.
As the strenght of UE4 should be making games not coding by using blueprint system. UE4 is leading in that at the moment as unity has not such a thing even near it.
For coding Unity is much more easy in C# at least if you organize files good enough. I can only moderate code in C#, c++ is not my thing.
I just found this thread and am encouraged by what I’m hearing. I am wanting to use streaming video in a project as well. It is a bit misleading that the media player says “file or URL” and it doesn’t work. I’d be willing to pay for a plugin that makes this possible. @ what permissions are you having to get to release your code?
The fix for streaming URLs made it into the 4.8.1 hotfix. It should work in both the WmfMedia and the VlcMedia plug-in now.
To use the VlcMedia plug-in you will have to compile the Engine from the Master branch on GitHub though, because it requires code changes that are not yet in the official release.
Thanks for the update Max! Is there a timeline for when the Vlc plugin will be in the official release? I don’t have any experience with compiling from source, though I may try it if official release is far out on the roadmap.
That is not likely to happen anytime soon, if ever, because we currently don’t have time to support it, and it also adds almost 250 MB to UE, which most people don’t need. It is also not really supported on Linux out of the box yet. I’m hoping that someone in the community will have a chance to try it out.
I will probably add the plug-in to the Marketplace once it has support for code plug-ins (which should be later this year). If you feel very serious about it, please add new issues for it on the GitHub project page, and I will try to provide pre-compiled builds for specific UE4 binary releases on request.